Class CsdlSchema
java.lang.Object
org.apache.olingo.commons.api.edm.provider.CsdlAbstractEdmItem
org.apache.olingo.commons.api.edm.provider.CsdlSchema
- All Implemented Interfaces:
CsdlAnnotatable
The type Csdl schema.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets actions.getActions
(String name) All actions with the given namegetAlias()
Gets alias.getAnnotation
(String term) Gets annotation.getAnnotationGroup
(String target, String qualifier) Gets annotation group.Gets annotation groups.Returns a list of annotationsgetComplexType
(String name) Gets complex type.Gets complex types.Gets entity container.getEntityType
(String name) Gets entity type.Gets entity types.getEnumType
(String name) Gets enum type.Gets enum types.Gets functions.getFunctions
(String name) All functions with the given nameGets namespace.Gets term.getTerms()
Gets terms.getTypeDefinition
(String name) Gets type definition.Gets type definitions.setActions
(List<CsdlAction> actions) Sets actions.Sets alias.setAnnotations
(List<CsdlAnnotation> annotations) Sets a list of annotationssetAnnotationsGroup
(List<CsdlAnnotations> annotationGroups) Sets a list of annotationssetComplexTypes
(List<CsdlComplexType> complexTypes) Sets complex types.setEntityContainer
(CsdlEntityContainer entityContainer) Sets entity container.setEntityTypes
(List<CsdlEntityType> entityTypes) Sets entity types.setEnumTypes
(List<CsdlEnumType> enumTypes) Sets enum types.setFunctions
(List<CsdlFunction> functions) Sets functions.setNamespace
(String namespace) Sets namespace.Sets terms.setTypeDefinitions
(List<CsdlTypeDefinition> typeDefinitions) Sets type definitions.Methods inherited from class org.apache.olingo.commons.api.edm.provider.CsdlAbstractEdmItem
getAllByName, getOneByName
-
Constructor Details
-
CsdlSchema
public CsdlSchema()
-
-
Method Details
-
getNamespace
Gets namespace.- Returns:
- the namespace
-
setNamespace
Sets namespace.- Parameters:
namespace
- the namespace- Returns:
- the namespace
-
getAlias
Gets alias.- Returns:
- the alias
-
setAlias
Sets alias.- Parameters:
alias
- the alias- Returns:
- the alias
-
getEnumTypes
Gets enum types.- Returns:
- the enum types
-
getEnumType
Gets enum type.- Parameters:
name
- the name- Returns:
- the enum type
-
setEnumTypes
Sets enum types.- Parameters:
enumTypes
- the enum types- Returns:
- the enum types
-
getTypeDefinitions
Gets type definitions.- Returns:
- the type definitions
-
getTypeDefinition
Gets type definition.- Parameters:
name
- the name- Returns:
- the type definition
-
setTypeDefinitions
Sets type definitions.- Parameters:
typeDefinitions
- the type definitions- Returns:
- the type definitions
-
getEntityTypes
Gets entity types.- Returns:
- the entity types
-
getEntityType
Gets entity type.- Parameters:
name
- the name- Returns:
- the entity type
-
setEntityTypes
Sets entity types.- Parameters:
entityTypes
- the entity types- Returns:
- the entity types
-
getComplexTypes
Gets complex types.- Returns:
- the complex types
-
getComplexType
Gets complex type.- Parameters:
name
- the name- Returns:
- the complex type
-
setComplexTypes
Sets complex types.- Parameters:
complexTypes
- the complex types- Returns:
- the complex types
-
getActions
Gets actions.- Returns:
- the actions
-
getActions
All actions with the given name- Parameters:
name
- the name- Returns:
- a list of actions
-
setActions
Sets actions.- Parameters:
actions
- the actions- Returns:
- the actions
-
getFunctions
Gets functions.- Returns:
- the functions
-
getFunctions
All functions with the given name- Parameters:
name
- the name- Returns:
- a list of functions
-
setFunctions
Sets functions.- Parameters:
functions
- the functions- Returns:
- the functions
-
getEntityContainer
Gets entity container.- Returns:
- the entity container
-
setEntityContainer
Sets entity container.- Parameters:
entityContainer
- the entity container- Returns:
- the entity container
-
getTerms
Gets terms.- Returns:
- the terms
-
getTerm
Gets term.- Parameters:
name
- the name- Returns:
- the term
-
setTerms
Sets terms.- Parameters:
terms
- the terms- Returns:
- the terms
-
getAnnotationGroups
Gets annotation groups.- Returns:
- the annotation groups
-
setAnnotationsGroup
Sets a list of annotations- Parameters:
annotationGroups
- list of annotations- Returns:
- this instance
-
getAnnotationGroup
Gets annotation group.- Parameters:
target
- the target- Returns:
- the annotation group
-
getAnnotation
Gets annotation.- Parameters:
term
- the term- Returns:
- the annotation
-
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
-