public class ComplexType extends StructureType
Encapsulates the metadata of an OData complex type.
Modifier and Type | Field and Description |
---|---|
static ComplexType |
abstractBase |
static ComplexType |
undefined |
ANNOTATION_PATH, BINARY, BOOLEAN, BYTE, BYTE_STREAM, CHAR, CHAR_STREAM, CODE_UNKNOWN, COMPLEX_VALUE, COMPLEX_VALUE_LIST, DATA_VALUE_LIST, DAY_TIME_DURATION, DECIMAL, DELTA_STREAM, DOUBLE, DYNAMIC_PATH, EDM_PRIMITIVE, ENTITY_VALUE, ENTITY_VALUE_LIST, ENUM_VALUE, FLOAT, GEOGRAPHY_COLLECTION, GEOGRAPHY_LINE_STRING, GEOGRAPHY_MULTI_LINE_STRING, GEOGRAPHY_MULTI_POINT, GEOGRAPHY_MULTI_POLYGON, GEOGRAPHY_POINT, GEOGRAPHY_POLYGON, GEOGRAPHY_VALUE, GEOMETRY_COLLECTION, GEOMETRY_LINE_STRING, GEOMETRY_MULTI_LINE_STRING, GEOMETRY_MULTI_POINT, GEOMETRY_MULTI_POLYGON, GEOMETRY_POINT, GEOMETRY_POLYGON, GEOMETRY_VALUE, GLOBAL_DATE_TIME, GUID_VALUE, INT, INTEGER, LIST, LOCAL_DATE, LOCAL_DATE_TIME, LOCAL_TIME, LONG, NAVIGATION_PATH, OBJECT, PATH, PATH_EXPRESSION, PROPERTY_PATH, QUERY_ALIAS, QUERY_FILTER, QUERY_FUNCTION_CALL, QUERY_OPERATOR_CALL, SHORT, STREAM_LINK, STRING, STRUCTURAL_PATH, TARGET_PATH, unknown, UNSIGNED_BYTE, UNSIGNED_INT, UNSIGNED_LONG, UNSIGNED_SHORT, YEAR_MONTH_DURATION
Constructor and Description |
---|
ComplexType() |
Modifier and Type | Method and Description |
---|---|
int |
getCode()
Return DataType.COMPLEX_VALUE
|
ComplexTypeList |
getSubtypes()
Return (nullable) If
ComplexType.hasSubtypes is true , then the list of subtypes. |
ComplexType |
getSupertype()
Return (nullable) If
ComplexType.hasSupertype is true , then the parent complex type. |
boolean |
hasSubtypes()
Return
true if this complex type is a parent of one or more derived complex types. |
boolean |
hasSupertype()
Return
true if this complex type is a subtype of a parent complex type. |
void |
registerFactory(com.sap.cloud.server.odata.core.ObjectFactory factory)
Set the
ComplexType.objectFactory for this complex type. |
void |
setObjectFactoryWithClass(java.lang.Class<? extends ComplexValue> cls) |
void |
setSubtypes(ComplexTypeList value)
Set if
ComplexType.hasSubtypes is true , then the list of subtypes. |
void |
setSupertype(ComplexType value)
Set if
ComplexType.hasSupertype is true , then the parent complex type. |
java.lang.String |
toString()
Return the name of this data type.
|
ComplexType |
withFactory(com.sap.cloud.server.odata.core.ObjectFactory factory)
Set the
ComplexType.objectFactory for this complex type. |
getAnnotation, getAnnotations, getCanBeRemoved, getCollectionProperties, getComplexProperties, getExtensionProperties, getLocalName, getName, getNavigationProperties, getObjectFactory, getProperty, getPropertyList, getPropertyMap, getQualifiedName, getSourceLine, getStreamProperties, getStructuralProperties, isAbstract, isExtension, isHidden, isInferred, isOpenType, isRemoved, setAbstract, setCanBeRemoved, setCollectionProperties, setComplexProperties, setExtension, setExtensionProperties, setHidden, setInferred, setLocalName, setNavigationProperties, setObjectFactory, setOpenType, setPropertyList, setPropertyMap, setQualifiedName, setRemoved, setSourceLine, setStreamProperties, setStructuralProperties
forCode, forName, getBaseType, getItemType, isBasic, isBasicList, isCalendar, isComplex, isComplexList, isDerived, isEntity, isEntityList, isEnum, isEnumList, isGeography, isGeometry, isGeospatial, isGuid, isList, isNumber, isPath, isStream, isUnsigned, listOf
public static final ComplexType undefined
public static final ComplexType abstractBase
public void setObjectFactoryWithClass(java.lang.Class<? extends ComplexValue> cls)
public int getCode()
Return DataType.COMPLEX_VALUE
public ComplexTypeList getSubtypes()
Return (nullable) If ComplexType.hasSubtypes
is true
, then the list of subtypes. Otherwise null
.
ComplexType.hasSubtypes
is true
, then the list of subtypes. Otherwise null
.public ComplexType getSupertype()
Return (nullable) If ComplexType.hasSupertype
is true
, then the parent complex type. Otherwise null
.
ComplexType.hasSupertype
is true
, then the parent complex type. Otherwise null
.public boolean hasSubtypes()
Return true
if this complex type is a parent of one or more derived complex types.
true
if this complex type is a parent of one or more derived complex types.public boolean hasSupertype()
Return true
if this complex type is a subtype of a parent complex type.
true
if this complex type is a subtype of a parent complex type.public void registerFactory(com.sap.cloud.server.odata.core.ObjectFactory factory)
Set the ComplexType.objectFactory
for this complex type.
factory
- Custom factory to produce ComplexValue
instances of this type.public void setSubtypes(ComplexTypeList value)
Set if ComplexType.hasSubtypes
is true
, then the list of subtypes. Otherwise null
.
value
- If ComplexType.hasSubtypes
is true
, then the list of subtypes. Otherwise null
.public void setSupertype(ComplexType value)
Set if ComplexType.hasSupertype
is true
, then the parent complex type. Otherwise null
.
value
- If ComplexType.hasSupertype
is true
, then the parent complex type. Otherwise null
.public java.lang.String toString()
Return the name of this data type.
public ComplexType withFactory(com.sap.cloud.server.odata.core.ObjectFactory factory)
Set the ComplexType.objectFactory
for this complex type.
factory
- Custom factory to produce ComplexValue
instances of this type.