Class ComplexType
- java.lang.Object
-
- org.apache.olingo.odata2.api.edm.provider.ComplexType
-
- Direct Known Subclasses:
EntityType
public class ComplexType extends Object
Objects of this class represent a complex type
-
-
Constructor Summary
Constructors Constructor Description ComplexType()
-
Method Summary
-
-
-
Method Detail
-
getName
public String getName()
- Returns:
- String name
-
getBaseType
public FullQualifiedName getBaseType()
- Returns:
FullQualifiedNameof the base type of this type (namespace and name)
-
isAbstract
public boolean isAbstract()
- Returns:
- boolean if this type is abstract
-
getProperties
public List<Property> getProperties()
- Returns:
- List<
Property> of all properties for this type
-
getDocumentation
public Documentation getDocumentation()
- Returns:
Documentationdocumentation
-
getAnnotationAttributes
public List<AnnotationAttribute> getAnnotationAttributes()
- Returns:
- collection of
AnnotationAttributeannotation attributes
-
getAnnotationElements
public List<AnnotationElement> getAnnotationElements()
- Returns:
- collection of
AnnotationElementannotation elements
-
setName
public ComplexType setName(String name)
Sets the name- Parameters:
name- Nome- Returns:
ComplexTypefor method chaining
-
setBaseType
public ComplexType setBaseType(FullQualifiedName baseType)
Sets theFullQualifiedNameof the base type- Parameters:
baseType- Tipo- Returns:
ComplexTypefor method chaining
-
setAbstract
public ComplexType setAbstract(boolean isAbstract)
Sets if it is abstract- Parameters:
isAbstract- se abstrato- Returns:
ComplexTypefor method chaining
-
setProperties
public ComplexType setProperties(List<Property> properties)
Sets thePropertys- Parameters:
properties- Propriedades- Returns:
ComplexTypefor method chaining
-
setMapping
public ComplexType setMapping(Mapping mapping)
Sets theMapping- Parameters:
mapping- Mapa- Returns:
ComplexTypefor method chaining
-
setDocumentation
public ComplexType setDocumentation(Documentation documentation)
Sets theDocumentation- Parameters:
documentation- Documentação- Returns:
ComplexTypefor method chaining
-
setAnnotationAttributes
public ComplexType setAnnotationAttributes(List<AnnotationAttribute> annotationAttributes)
Sets the collection ofAnnotationAttributefor thisComplexType- Parameters:
annotationAttributes- Atributos- Returns:
ComplexTypefor method chaining
-
setAnnotationElements
public ComplexType setAnnotationElements(List<AnnotationElement> annotationElements)
Sets the collection ofAnnotationElementfor thisComplexType- Parameters:
annotationElements- Elementos- Returns:
ComplexTypefor method chaining
-
-