Class DynamicStructuredType
java.lang.Object
org.apache.olingo.server.core.uri.queryoption.apply.DynamicStructuredType
- All Implemented Interfaces:
EdmAnnotatable,EdmNamed,EdmStructuredType,EdmType
A dynamic structured type used to incorporate dynamic properties containing aggregations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddProperty(EdmProperty property) booleancompatibleTo(EdmType targetType) Checks if this type is convertible to parametertargetTypegetAnnotation(EdmTerm term, String qualifier) Get list of all annotations.Base types are described in the OData protocol specification.getKind()getName()Namespace of thisEdmType.getNavigationProperty(String name) Get navigation property by name.Get all navigation property names.getProperty(String name) Get property by nameGet all simple and complex property names.getStructuralProperty(String name) Get structural property by name.booleanhasStaticProperty(String name) booleanIndicates if the structured type is abstract.booleanIndicates if the structured type is an open type.
-
Constructor Details
-
DynamicStructuredType
-
-
Method Details
-
addProperty
-
getProperty
Description copied from interface:EdmStructuredTypeGet property by name- Specified by:
getPropertyin interfaceEdmStructuredType- Parameters:
name- name of property- Returns:
- simple, complex or navigation property as
EdmTyped
-
hasStaticProperty
-
getPropertyNames
Description copied from interface:EdmStructuredTypeGet all simple and complex property names.- Specified by:
getPropertyNamesin interfaceEdmStructuredType- Returns:
- property names as type List<String>
-
getStructuralProperty
Description copied from interface:EdmStructuredTypeGet structural property by name.- Specified by:
getStructuralPropertyin interfaceEdmStructuredType- Parameters:
name- name of structural property- Returns:
- simple or complex property as
EdmTyped
-
getNamespace
Description copied from interface:EdmTypeNamespace of thisEdmType.- Specified by:
getNamespacein interfaceEdmType- Returns:
- namespace as String
-
getName
-
getFullQualifiedName
- Specified by:
getFullQualifiedNamein interfaceEdmType- Returns:
- full qualified name
-
getKind
- Specified by:
getKindin interfaceEdmType- Returns:
EdmTypeKindof thisEdmType
-
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
-
getBaseType
Description copied from interface:EdmStructuredTypeBase types are described in the OData protocol specification.- Specified by:
getBaseTypein interfaceEdmStructuredType- Returns:
EdmStructuredType
-
compatibleTo
Description copied from interface:EdmStructuredTypeChecks if this type is convertible to parametertargetType- Specified by:
compatibleToin interfaceEdmStructuredType- Parameters:
targetType- target type for which compatibility is checked- Returns:
- true if this type is compatible to the testType (i.e., this type is a subtype of targetType)
-
isOpenType
public boolean isOpenType()Description copied from interface:EdmStructuredTypeIndicates if the structured type is an open type.- Specified by:
isOpenTypein interfaceEdmStructuredType- Returns:
trueif the structured type is open
-
isAbstract
public boolean isAbstract()Description copied from interface:EdmStructuredTypeIndicates if the structured type is abstract.- Specified by:
isAbstractin interfaceEdmStructuredType- Returns:
trueif the structured type is abstract
-