Class Property
java.lang.Object
org.apache.olingo.commons.api.data.Annotatable
org.apache.olingo.commons.api.data.Valuable
org.apache.olingo.commons.api.data.Property
Data representation for a property.
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.olingo.commons.api.data.Valuable
asCollection, asComplex, asEnum, asGeospatial, asPrimitive, getType, getValue, getValueType, isCollection, isComplex, isEnum, isGeospatial, isPrimitive, setType, setValue
Methods inherited from class org.apache.olingo.commons.api.data.Annotatable
getAnnotations
-
Constructor Details
-
Property
public Property()Creates a new property -
Property
Creates a new property- Parameters:
type
- String representation of type (can be null)name
- Name of the property
-
Property
Creates a new property- Parameters:
type
- String representation of type (can be null)name
- Name of the propertyvalueType
- Kind of the property e.g. primitive property, complex propertyvalue
- Value of the property.
-
-
Method Details
-
getName
Get name of property.- Returns:
- name of property
-
setName
Set name of property.- Parameters:
name
- name of property
-
isNull
public boolean isNull()Check if this property isnull
(value == null) or the type is"Edm.Null"
. -
getOperations
Gets operations.- Returns:
- operations.
-
equals
-
hashCode
public int hashCode() -
toString
-