Class AbstractEdmStructuredType
java.lang.Object
org.apache.olingo.commons.core.edm.AbstractEdmAnnotatable
org.apache.olingo.commons.core.edm.AbstractEdmNamed
org.apache.olingo.commons.core.edm.EdmTypeImpl
org.apache.olingo.commons.core.edm.AbstractEdmStructuredType
- All Implemented Interfaces:
EdmAnnotatable,EdmNamed,EdmStructuredType,EdmType
- Direct Known Subclasses:
EdmComplexTypeImpl,EdmEntityTypeImpl
-
Field Summary
FieldsFields inherited from class org.apache.olingo.commons.core.edm.EdmTypeImpl
kind, typeNameFields inherited from class org.apache.olingo.commons.core.edm.AbstractEdmAnnotatable
edm -
Constructor Summary
ConstructorsConstructorDescriptionAbstractEdmStructuredType(Edm edm, FullQualifiedName typeName, EdmTypeKind kind, CsdlStructuralType structuredType) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract EdmStructuredTypebuildBaseType(FullQualifiedName baseTypeName) protected abstract voidbooleancompatibleTo(EdmType targetType) Checks if this type is convertible to parametertargetTypegetNavigationProperty(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.booleanIndicates if the structured type is abstract.booleanIndicates if the structured type is an open type.Methods inherited from class org.apache.olingo.commons.core.edm.EdmTypeImpl
getFullQualifiedName, getKind, getNamespaceMethods inherited from class org.apache.olingo.commons.core.edm.AbstractEdmNamed
getName, toStringMethods inherited from class org.apache.olingo.commons.core.edm.AbstractEdmAnnotatable
getAnnotation, getAnnotationsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.olingo.commons.api.edm.EdmAnnotatable
getAnnotation, getAnnotationsMethods inherited from interface org.apache.olingo.commons.api.edm.EdmStructuredType
getBaseTypeMethods inherited from interface org.apache.olingo.commons.api.edm.EdmType
getFullQualifiedName, getKind, getNamespace
-
Field Details
-
baseType
-
baseTypeName
-
-
Constructor Details
-
AbstractEdmStructuredType
public AbstractEdmStructuredType(Edm edm, FullQualifiedName typeName, EdmTypeKind kind, CsdlStructuralType structuredType)
-
-
Method Details
-
buildBaseType
-
checkBaseType
protected abstract void checkBaseType() -
getPropertyNames
Description copied from interface:EdmStructuredTypeGet all simple and complex property names.- Specified by:
getPropertyNamesin interfaceEdmStructuredType- Returns:
- property names as type List<String>
-
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
-
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
-
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)
-
getProperties
-
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
-