Interface EdmStructuredType
- All Superinterfaces:
EdmAnnotatable
,EdmNamed
,EdmType
- All Known Subinterfaces:
EdmComplexType
,EdmEntityType
EdmStructuralType is the base for a complex type or an entity type.
Complex types and entity types are described in the Conceptual Schema Definition of the OData protocol.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
compatibleTo
(EdmType targetType) Checks if this type is convertible to parametertargetType
Base types are described in the OData protocol specification.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.boolean
Indicates if the structured type is abstract.boolean
Indicates if the structured type is an open type.Methods inherited from interface org.apache.olingo.commons.api.edm.EdmAnnotatable
getAnnotation, getAnnotations
Methods inherited from interface org.apache.olingo.commons.api.edm.EdmType
getFullQualifiedName, getKind, getNamespace
-
Method Details
-
getProperty
Get property by name- Parameters:
name
- name of property- Returns:
- simple, complex or navigation property as
EdmTyped
-
getPropertyNames
Get all simple and complex property names.- Returns:
- property names as type List<String>
-
getStructuralProperty
Get structural property by name.- Parameters:
name
- name of structural property- Returns:
- simple or complex property as
EdmTyped
-
getBaseType
EdmStructuredType getBaseType()Base types are described in the OData protocol specification.- Returns:
EdmStructuredType
-
compatibleTo
Checks if this type is convertible to parametertargetType
- 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
boolean isOpenType()Indicates if the structured type is an open type.- Returns:
true
if the structured type is open
-
isAbstract
boolean isAbstract()Indicates if the structured type is abstract.- Returns:
true
if the structured type is abstract
-