Class EntityType
java.lang.Object
org.apache.olingo.odata2.api.edm.provider.ComplexType
org.apache.olingo.odata2.api.edm.provider.EntityType
Objects of this class represent an entity type
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetKey()booleansetAbstract(boolean isAbstract) Sets if it is abstractsetAnnotationAttributes(List<AnnotationAttribute> annotationAttributes) Sets the collection ofAnnotationAttributefor thisEntityTypesetAnnotationElements(List<AnnotationElement> annotationElements) Sets the collection ofAnnotationElementfor thisEntityTypesetBaseType(FullQualifiedName baseType) Sets theFullQualifiedNameof the base typesetCustomizableFeedMappings(CustomizableFeedMappings customizableFeedMappings) Sets theCustomizableFeedMappingsfor thisEntityTypesetDocumentation(Documentation documentation) Sets theDocumentationsetHasStream(boolean hasStream) Sets if thisEntityTypeis a media resourceSets theKeyfor thisEntityTypesetMapping(Mapping mapping) Sets theMappingSets the namesetNavigationProperties(List<NavigationProperty> navigationProperties) Sets theNavigationPropertys for thisEntityTypesetProperties(List<Property> properties) Sets thePropertysMethods inherited from class org.apache.olingo.odata2.api.edm.provider.ComplexType
getAnnotationAttributes, getAnnotationElements, getBaseType, getDocumentation, getMapping, getName, getProperties, isAbstract
-
Constructor Details
-
EntityType
public EntityType()
-
-
Method Details
-
isHasStream
public boolean isHasStream()- Returns:
- boolean if this EntityType is a media resource
-
getCustomizableFeedMappings
- Returns:
CustomizableFeedMappingsof this entity type
-
getKey
- Returns:
Keyof this entity type
-
setHasStream
Sets if thisEntityTypeis a media resource- Parameters:
hasStream-- Returns:
EntityTypefor method chaining,
-
setCustomizableFeedMappings
Sets theCustomizableFeedMappingsfor thisEntityType- Parameters:
customizableFeedMappings-- Returns:
EntityTypefor method chaining
-
setKey
Sets theKeyfor thisEntityType- Parameters:
key-- Returns:
EntityTypefor method chaining
-
setName
Description copied from class:ComplexTypeSets the name- Overrides:
setNamein classComplexType- Parameters:
name-- Returns:
EntityTypefor method chaining
-
setBaseType
Description copied from class:ComplexTypeSets theFullQualifiedNameof the base type- Overrides:
setBaseTypein classComplexType- Parameters:
baseType-- Returns:
EntityTypefor method chaining
-
setAbstract
Description copied from class:ComplexTypeSets if it is abstract- Overrides:
setAbstractin classComplexType- Parameters:
isAbstract-- Returns:
EntityTypefor method chaining
-
setProperties
Description copied from class:ComplexTypeSets thePropertys- Overrides:
setPropertiesin classComplexType- Parameters:
properties-- Returns:
EntityTypefor method chaining
-
setMapping
Description copied from class:ComplexTypeSets theMapping- Overrides:
setMappingin classComplexType- Parameters:
mapping-- Returns:
EntityTypefor method chaining
-
setDocumentation
Description copied from class:ComplexTypeSets theDocumentation- Overrides:
setDocumentationin classComplexType- Parameters:
documentation-- Returns:
EntityTypefor method chaining
-
setAnnotationAttributes
Sets the collection ofAnnotationAttributefor thisEntityType- Overrides:
setAnnotationAttributesin classComplexType- Parameters:
annotationAttributes-- Returns:
EntityTypefor method chaining
-
setAnnotationElements
Sets the collection ofAnnotationElementfor thisEntityType- Overrides:
setAnnotationElementsin classComplexType- Parameters:
annotationElements-- Returns:
EntityTypefor method chaining
-