Class Parameter
java.lang.Object
org.apache.olingo.commons.api.data.Annotatable
org.apache.olingo.commons.api.data.Valuable
org.apache.olingo.commons.api.data.Parameter
Data representation for a parameter.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasEntity()Gets the value in its entity representation or null if it is not based on an entity value type.booleangetName()Gets the name of the parameter.inthashCode()booleanisEntity()Checks whether this parameter value is of the value type ENTITY or COLLECTION_ENTITY.voidSets the name of the parameter.toString()Methods inherited from class org.apache.olingo.commons.api.data.Valuable
asCollection, asComplex, asEnum, asGeospatial, asPrimitive, getType, getValue, getValueType, isCollection, isComplex, isEnum, isGeospatial, isNull, isPrimitive, setType, setValueMethods inherited from class org.apache.olingo.commons.api.data.Annotatable
getAnnotations
-
Constructor Details
-
Parameter
public Parameter()
-
-
Method Details
-
getName
Gets the name of the parameter.- Returns:
- name of the parameter
-
setName
Sets the name of the parameter.- Parameters:
name- of the parameter
-
isEntity
public boolean isEntity()Checks whether this parameter value is of the value type ENTITY or COLLECTION_ENTITY.- Returns:
- true if the value type is ENTITY or COLLECTION_ENTITY, otherwise false
-
asEntity
Gets the value in its entity representation or null if it is not based on an entity value type.- Returns:
- entity representation or null if it is not based on an entity value type
-
equals
-
hashCode
public int hashCode() -
toString
-