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

public class CsdlSchema extends CsdlAbstractEdmItem implements CsdlAnnotatable
The type Csdl schema.
  • Constructor Details

    • CsdlSchema

      public CsdlSchema()
  • Method Details

    • getNamespace

      public String getNamespace()
      Gets namespace.
      Returns:
      the namespace
    • setNamespace

      public CsdlSchema setNamespace(String namespace)
      Sets namespace.
      Parameters:
      namespace - the namespace
      Returns:
      the namespace
    • getAlias

      public String getAlias()
      Gets alias.
      Returns:
      the alias
    • setAlias

      public CsdlSchema setAlias(String alias)
      Sets alias.
      Parameters:
      alias - the alias
      Returns:
      the alias
    • getEnumTypes

      public List<CsdlEnumType> getEnumTypes()
      Gets enum types.
      Returns:
      the enum types
    • getEnumType

      public CsdlEnumType getEnumType(String name)
      Gets enum type.
      Parameters:
      name - the name
      Returns:
      the enum type
    • setEnumTypes

      public CsdlSchema setEnumTypes(List<CsdlEnumType> enumTypes)
      Sets enum types.
      Parameters:
      enumTypes - the enum types
      Returns:
      the enum types
    • getTypeDefinitions

      public List<CsdlTypeDefinition> getTypeDefinitions()
      Gets type definitions.
      Returns:
      the type definitions
    • getTypeDefinition

      public CsdlTypeDefinition getTypeDefinition(String name)
      Gets type definition.
      Parameters:
      name - the name
      Returns:
      the type definition
    • setTypeDefinitions

      public CsdlSchema setTypeDefinitions(List<CsdlTypeDefinition> typeDefinitions)
      Sets type definitions.
      Parameters:
      typeDefinitions - the type definitions
      Returns:
      the type definitions
    • getEntityTypes

      public List<CsdlEntityType> getEntityTypes()
      Gets entity types.
      Returns:
      the entity types
    • getEntityType

      public CsdlEntityType getEntityType(String name)
      Gets entity type.
      Parameters:
      name - the name
      Returns:
      the entity type
    • setEntityTypes

      public CsdlSchema setEntityTypes(List<CsdlEntityType> entityTypes)
      Sets entity types.
      Parameters:
      entityTypes - the entity types
      Returns:
      the entity types
    • getComplexTypes

      public List<CsdlComplexType> getComplexTypes()
      Gets complex types.
      Returns:
      the complex types
    • getComplexType

      public CsdlComplexType getComplexType(String name)
      Gets complex type.
      Parameters:
      name - the name
      Returns:
      the complex type
    • setComplexTypes

      public CsdlSchema setComplexTypes(List<CsdlComplexType> complexTypes)
      Sets complex types.
      Parameters:
      complexTypes - the complex types
      Returns:
      the complex types
    • getActions

      public List<CsdlAction> getActions()
      Gets actions.
      Returns:
      the actions
    • getActions

      public List<CsdlAction> getActions(String name)
      All actions with the given name
      Parameters:
      name - the name
      Returns:
      a list of actions
    • setActions

      public CsdlSchema setActions(List<CsdlAction> actions)
      Sets actions.
      Parameters:
      actions - the actions
      Returns:
      the actions
    • getFunctions

      public List<CsdlFunction> getFunctions()
      Gets functions.
      Returns:
      the functions
    • getFunctions

      public List<CsdlFunction> getFunctions(String name)
      All functions with the given name
      Parameters:
      name - the name
      Returns:
      a list of functions
    • setFunctions

      public CsdlSchema setFunctions(List<CsdlFunction> functions)
      Sets functions.
      Parameters:
      functions - the functions
      Returns:
      the functions
    • getEntityContainer

      public CsdlEntityContainer getEntityContainer()
      Gets entity container.
      Returns:
      the entity container
    • setEntityContainer

      public CsdlSchema setEntityContainer(CsdlEntityContainer entityContainer)
      Sets entity container.
      Parameters:
      entityContainer - the entity container
      Returns:
      the entity container
    • getTerms

      public List<CsdlTerm> getTerms()
      Gets terms.
      Returns:
      the terms
    • getTerm

      public CsdlTerm getTerm(String name)
      Gets term.
      Parameters:
      name - the name
      Returns:
      the term
    • setTerms

      public CsdlSchema setTerms(List<CsdlTerm> terms)
      Sets terms.
      Parameters:
      terms - the terms
      Returns:
      the terms
    • getAnnotationGroups

      public List<CsdlAnnotations> getAnnotationGroups()
      Gets annotation groups.
      Returns:
      the annotation groups
    • setAnnotationsGroup

      public CsdlSchema setAnnotationsGroup(List<CsdlAnnotations> annotationGroups)
      Sets a list of annotations
      Parameters:
      annotationGroups - list of annotations
      Returns:
      this instance
    • getAnnotationGroup

      public CsdlAnnotations getAnnotationGroup(String target, String qualifier)
      Gets annotation group.
      Parameters:
      target - the target
      Returns:
      the annotation group
    • getAnnotation

      public CsdlAnnotation getAnnotation(String term)
      Gets annotation.
      Parameters:
      term - the term
      Returns:
      the annotation
    • getAnnotations

      public List<CsdlAnnotation> getAnnotations()
      Description copied from interface: CsdlAnnotatable
      Returns a list of annotations
      Specified by:
      getAnnotations in interface CsdlAnnotatable
      Returns:
      list of annotations
    • setAnnotations

      public CsdlSchema setAnnotations(List<CsdlAnnotation> annotations)
      Sets a list of annotations
      Parameters:
      annotations - list of annotations
      Returns:
      this instance