Class ComplexType
java.lang.Object
org.apache.olingo.odata2.api.edm.provider.ComplexType
- Direct Known Subclasses:
EntityType
Objects of this class represent a complex type
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()booleansetAbstract(boolean isAbstract) Sets if it is abstractsetAnnotationAttributes(List<AnnotationAttribute> annotationAttributes) Sets the collection ofAnnotationAttributefor thisComplexTypesetAnnotationElements(List<AnnotationElement> annotationElements) Sets the collection ofAnnotationElementfor thisComplexTypesetBaseType(FullQualifiedName baseType) Sets theFullQualifiedNameof the base typesetDocumentation(Documentation documentation) Sets theDocumentationsetMapping(Mapping mapping) Sets theMappingSets the namesetProperties(List<Property> properties) Sets thePropertys
-
Constructor Details
-
ComplexType
public ComplexType()
-
-
Method Details
-
getName
- Returns:
- String name
-
getBaseType
- Returns:
FullQualifiedNameof the base type of this type (namespace and name)
-
isAbstract
public boolean isAbstract()- Returns:
- boolean if this type is abstract
-
getProperties
- Returns:
- List<
Property> of all properties for this type
-
getMapping
- Returns:
Mappingfor this type
-
getDocumentation
- Returns:
Documentationdocumentation
-
getAnnotationAttributes
- Returns:
- collection of
AnnotationAttributeannotation attributes
-
getAnnotationElements
- Returns:
- collection of
AnnotationElementannotation elements
-
setName
Sets the name- Parameters:
name-- Returns:
ComplexTypefor method chaining
-
setBaseType
Sets theFullQualifiedNameof the base type- Parameters:
baseType-- Returns:
ComplexTypefor method chaining
-
setAbstract
Sets if it is abstract- Parameters:
isAbstract-- Returns:
ComplexTypefor method chaining
-
setProperties
Sets thePropertys- Parameters:
properties-- Returns:
ComplexTypefor method chaining
-
setMapping
Sets theMapping- Parameters:
mapping-- Returns:
ComplexTypefor method chaining
-
setDocumentation
Sets theDocumentation- Parameters:
documentation-- Returns:
ComplexTypefor method chaining
-
setAnnotationAttributes
Sets the collection ofAnnotationAttributefor thisComplexType- Parameters:
annotationAttributes-- Returns:
ComplexTypefor method chaining
-
setAnnotationElements
Sets the collection ofAnnotationElementfor thisComplexType- Parameters:
annotationElements-- Returns:
ComplexTypefor method chaining
-