Class DynamicProperty
java.lang.Object
org.apache.olingo.server.core.uri.queryoption.apply.DynamicProperty
- All Implemented Interfaces:
EdmAnnotatable,EdmElement,EdmMappable,EdmNamed,EdmProperty,EdmTyped
A dynamic EDM property for aggregation and open type.
-
Constructor Summary
ConstructorsConstructorDescriptionDynamicProperty(String name, EdmType type) Creates a dynamic property with a mandatory name and an optional type. -
Method Summary
Modifier and TypeMethodDescriptiongetAnnotation(EdmTerm term, String qualifier) Get list of all annotations.Get mapping information applied to an EDM element.Gets the related MIME type for the property.getName()getScale()getSrid()getType()SeeEdmTypefor more information about possible types.SeeEdmTypefor more information about possible types.booleanbooleanbooleanGets the info if the property is a primitive property.booleansetPrecision(Integer precision) setScaleAsString(String scaleAsString)
-
Constructor Details
-
DynamicProperty
Creates a dynamic property with a mandatory name and an optional type.
-
-
Method Details
-
getName
-
getType
Description copied from interface:EdmTypedSeeEdmTypefor more information about possible types. -
isCollection
public boolean isCollection()- Specified by:
isCollectionin interfaceEdmTyped- Returns:
- true if this typed element is a collection
-
getMapping
Description copied from interface:EdmMappableGet mapping information applied to an EDM element. May return null if no mapping is defined.- Specified by:
getMappingin interfaceEdmMappable- Returns:
EdmMappingor null if no mapping is defined
-
getMimeType
Description copied from interface:EdmPropertyGets the related MIME type for the property.- Specified by:
getMimeTypein interfaceEdmProperty- Returns:
- MIME type as String
-
isNullable
public boolean isNullable()- Specified by:
isNullablein interfaceEdmProperty- Returns:
- true if nullable or not specified
-
getMaxLength
- Specified by:
getMaxLengthin interfaceEdmProperty- Returns:
- the maximum length as an Integer or null if not specified
-
getPrecision
- Specified by:
getPrecisionin interfaceEdmProperty- Returns:
- the precision as an Integer or null if not specified
-
getScale
- Specified by:
getScalein interfaceEdmProperty- Returns:
- the scale as an Integer or null if not specified
-
getScaleAsString
- Specified by:
getScaleAsStringin interfaceEdmProperty- Returns:
- the scale as an String or null if not specified
-
getSrid
- Specified by:
getSridin interfaceEdmProperty- Returns:
- a non-negative integer or the special value variable
-
isUnicode
public boolean isUnicode()- Specified by:
isUnicodein interfaceEdmProperty- Returns:
- true if unicode or not specified
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceEdmProperty- Returns:
- the default value as a String or null if not specified
-
isPrimitive
public boolean isPrimitive()Description copied from interface:EdmPropertyGets the info if the property is a primitive property.- Specified by:
isPrimitivein interfaceEdmProperty- Returns:
- true, if it is a primitive property
-
getAnnotation
- Specified by:
getAnnotationin interfaceEdmAnnotatable- Parameters:
term- term used for the annotation. MUST NOT be null.qualifier- for the term. Can beNULL- Returns:
- annotation according to term
-
getAnnotations
Description copied from interface:EdmAnnotatableGet list of all annotations.- Specified by:
getAnnotationsin interfaceEdmAnnotatable- Returns:
- list of all annotations
-
getTypeWithAnnotations
Description copied from interface:EdmPropertySeeEdmTypefor more information about possible types.- Specified by:
getTypeWithAnnotationsin interfaceEdmProperty- Returns:
EdmType
-
setPrecision
-
setScale
-
setScaleAsString
-