Class CsdlStructuralType
java.lang.Object
org.apache.olingo.commons.api.edm.provider.CsdlAbstractEdmItem
org.apache.olingo.commons.api.edm.provider.CsdlStructuralType
- All Implemented Interfaces:
CsdlAnnotatable
,CsdlNamed
- Direct Known Subclasses:
CsdlComplexType
,CsdlEntityType
public abstract class CsdlStructuralType
extends CsdlAbstractEdmItem
implements CsdlNamed, CsdlAnnotatable
The type Csdl structural type.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<CsdlAnnotation>
The Annotations.protected FullQualifiedName
The Base type.protected boolean
The Is abstract.protected boolean
The Is open type.protected String
The Name.protected List<CsdlNavigationProperty>
The Navigation properties.protected List<CsdlProperty>
The Properties. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a list of annotationsGets base type.Gets base type fQN.getName()
Gets name.Gets navigation properties.getNavigationProperty
(String name) Gets navigation property.Gets properties.getProperty
(String name) Gets property.boolean
Is abstract.boolean
Is open type.setAbstract
(boolean isAbstract) Sets abstract.setAnnotations
(List<CsdlAnnotation> annotations) Sets a list of annotationssetBaseType
(String baseType) Sets base type.setBaseType
(FullQualifiedName baseType) Sets base type.Sets name.setNavigationProperties
(List<CsdlNavigationProperty> navigationProperties) Sets navigation properties.setOpenType
(boolean isOpenType) Sets open type.setProperties
(List<CsdlProperty> properties) Sets properties.Methods inherited from class org.apache.olingo.commons.api.edm.provider.CsdlAbstractEdmItem
getAllByName, getOneByName
-
Field Details
-
name
The Name. -
isOpenType
protected boolean isOpenTypeThe Is open type. -
baseType
The Base type. -
isAbstract
protected boolean isAbstractThe Is abstract. -
properties
The Properties. -
annotations
The Annotations.
-
-
Constructor Details
-
CsdlStructuralType
public CsdlStructuralType()
-
-
Method Details
-
getName
Description copied from interface:CsdlNamed
Gets name. -
setName
Sets name.- Parameters:
name
- the name- Returns:
- the name
-
isOpenType
public boolean isOpenType()Is open type.- Returns:
- the boolean
-
setOpenType
Sets open type.- Parameters:
isOpenType
- the is open type- Returns:
- the open type
-
getBaseType
Gets base type.- Returns:
- the base type
-
getBaseTypeFQN
Gets base type fQN.- Returns:
- the base type fQN
-
setBaseType
Sets base type.- Parameters:
baseType
- the base type- Returns:
- the base type
-
setBaseType
Sets base type.- Parameters:
baseType
- the base type- Returns:
- the base type
-
isAbstract
public boolean isAbstract()Is abstract.- Returns:
- the boolean
-
setAbstract
Sets abstract.- Parameters:
isAbstract
- the is abstract- Returns:
- the abstract
-
getProperties
Gets properties.- Returns:
- the properties
-
getProperty
Gets property.- Parameters:
name
- the name- Returns:
- the property
-
setProperties
Sets properties.- Parameters:
properties
- the properties- Returns:
- the properties
-
getAnnotations
Description copied from interface:CsdlAnnotatable
Returns a list of annotations- Specified by:
getAnnotations
in interfaceCsdlAnnotatable
- Returns:
- list of annotations
-
setAnnotations
Sets a list of annotations- Parameters:
annotations
- list of annotations- Returns:
- this instance
-