Class CsdlAbstractEdmProvider
java.lang.Object
org.apache.olingo.commons.api.edm.provider.CsdlAbstractEdmProvider
- All Implemented Interfaces:
CsdlEdmProvider
Dummy implementation of
CsdlEdmProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetActionImport
(FullQualifiedName entityContainer, String actionImportName) This method should return anCsdlActionImport
or null if nothing is foundgetActions
(FullQualifiedName actionName) This method should return a list of allCsdlAction
for the FullQualifiedname or null if nothing is foundThis method should return a list of all namespaces which have an aliasgetAnnotationsGroup
(FullQualifiedName targetName, String qualifier) Gets annotations group.getComplexType
(FullQualifiedName complexTypeName) This method should return aCsdlComplexType
or null if nothing is found.Returns the entity container of this edmgetEntityContainerInfo
(FullQualifiedName entityContainerName) This method should return anCsdlEntityContainerInfo
or null if nothing is foundgetEntitySet
(FullQualifiedName entityContainer, String entitySetName) This method should return anCsdlEntitySet
or null if nothing is foundgetEntityType
(FullQualifiedName entityTypeName) This method should return anCsdlEntityType
or null if nothing is foundgetEnumType
(FullQualifiedName enumTypeName) This method should return anCsdlEnumType
or null if nothing is foundgetFunctionImport
(FullQualifiedName entityContainer, String functionImportName) This method should return aCsdlFunctionImport
or null if nothing is foundgetFunctions
(FullQualifiedName functionName) This method should return a list of allCsdlFunction
for the FullQualifiedname or null if nothing is foundThis method should return a collection of allCsdlSchema
getSingleton
(FullQualifiedName entityContainer, String singletonName) This method should return anCsdlSingleton
or null if nothing is foundgetTerm
(FullQualifiedName termName) This method should return aCsdlTerm
for the FullQualifiedName or null if nothing is found.getTypeDefinition
(FullQualifiedName typeDefinitionName) This method should return anCsdlTypeDefinition
or null if nothing is found
-
Constructor Details
-
CsdlAbstractEdmProvider
public CsdlAbstractEdmProvider()
-
-
Method Details
-
getEnumType
Description copied from interface:CsdlEdmProvider
This method should return anCsdlEnumType
or null if nothing is found- Specified by:
getEnumType
in interfaceCsdlEdmProvider
- Parameters:
enumTypeName
- full qualified name of enum type- Returns:
- for given name
- Throws:
ODataException
-
getTypeDefinition
public CsdlTypeDefinition getTypeDefinition(FullQualifiedName typeDefinitionName) throws ODataException Description copied from interface:CsdlEdmProvider
This method should return anCsdlTypeDefinition
or null if nothing is found- Specified by:
getTypeDefinition
in interfaceCsdlEdmProvider
- Parameters:
typeDefinitionName
- full qualified name of type definition- Returns:
- for given name
- Throws:
ODataException
-
getEntityType
Description copied from interface:CsdlEdmProvider
This method should return anCsdlEntityType
or null if nothing is found- Specified by:
getEntityType
in interfaceCsdlEdmProvider
- Parameters:
entityTypeName
- full qualified name of entity type- Returns:
- for the given name
- Throws:
ODataException
-
getComplexType
Description copied from interface:CsdlEdmProvider
This method should return aCsdlComplexType
or null if nothing is found.- Specified by:
getComplexType
in interfaceCsdlEdmProvider
- Parameters:
complexTypeName
- full qualified name of complex type- Returns:
- for the given name
- Throws:
ODataException
-
getActions
Description copied from interface:CsdlEdmProvider
This method should return a list of allCsdlAction
for the FullQualifiedname or null if nothing is found- Specified by:
getActions
in interfaceCsdlEdmProvider
- Parameters:
actionName
- full qualified name of action- Returns:
- List of or null
- Throws:
ODataException
-
getFunctions
Description copied from interface:CsdlEdmProvider
This method should return a list of allCsdlFunction
for the FullQualifiedname or null if nothing is found- Specified by:
getFunctions
in interfaceCsdlEdmProvider
- Parameters:
functionName
- full qualified name of function- Returns:
- List of or null
- Throws:
ODataException
-
getTerm
Description copied from interface:CsdlEdmProvider
This method should return aCsdlTerm
for the FullQualifiedName or null if nothing is found.- Specified by:
getTerm
in interfaceCsdlEdmProvider
- Parameters:
termName
- the name of the Term- Returns:
- or null
- Throws:
ODataException
-
getEntitySet
public CsdlEntitySet getEntitySet(FullQualifiedName entityContainer, String entitySetName) throws ODataException Description copied from interface:CsdlEdmProvider
This method should return anCsdlEntitySet
or null if nothing is found- Specified by:
getEntitySet
in interfaceCsdlEdmProvider
- Parameters:
entityContainer
- this EntitySet is contained inentitySetName
- name of entity set- Returns:
- for the given container and entityset name
- Throws:
ODataException
-
getSingleton
public CsdlSingleton getSingleton(FullQualifiedName entityContainer, String singletonName) throws ODataException Description copied from interface:CsdlEdmProvider
This method should return anCsdlSingleton
or null if nothing is found- Specified by:
getSingleton
in interfaceCsdlEdmProvider
- Parameters:
entityContainer
- this Singleton is contained insingletonName
- name of singleton- Returns:
- for given container and singleton name
- Throws:
ODataException
-
getActionImport
public CsdlActionImport getActionImport(FullQualifiedName entityContainer, String actionImportName) throws ODataException Description copied from interface:CsdlEdmProvider
This method should return anCsdlActionImport
or null if nothing is found- Specified by:
getActionImport
in interfaceCsdlEdmProvider
- Parameters:
entityContainer
- this ActionImport is contained inactionImportName
- name of action import- Returns:
- for the given container and ActionImport name
- Throws:
ODataException
-
getFunctionImport
public CsdlFunctionImport getFunctionImport(FullQualifiedName entityContainer, String functionImportName) throws ODataException Description copied from interface:CsdlEdmProvider
This method should return aCsdlFunctionImport
or null if nothing is found- Specified by:
getFunctionImport
in interfaceCsdlEdmProvider
- Parameters:
entityContainer
- this FunctionImport is contained infunctionImportName
- name of function import- Returns:
- for the given container name and function import name
- Throws:
ODataException
-
getEntityContainerInfo
public CsdlEntityContainerInfo getEntityContainerInfo(FullQualifiedName entityContainerName) throws ODataException Description copied from interface:CsdlEdmProvider
This method should return anCsdlEntityContainerInfo
or null if nothing is found- Specified by:
getEntityContainerInfo
in interfaceCsdlEdmProvider
- Parameters:
entityContainerName
- (null for default container)- Returns:
- for the given name
- Throws:
ODataException
-
getAliasInfos
Description copied from interface:CsdlEdmProvider
This method should return a list of all namespaces which have an alias- Specified by:
getAliasInfos
in interfaceCsdlEdmProvider
- Returns:
- List of alias info
- Throws:
ODataException
-
getSchemas
Description copied from interface:CsdlEdmProvider
This method should return a collection of allCsdlSchema
- Specified by:
getSchemas
in interfaceCsdlEdmProvider
- Returns:
- List of
- Throws:
ODataException
-
getEntityContainer
Description copied from interface:CsdlEdmProvider
Returns the entity container of this edm- Specified by:
getEntityContainer
in interfaceCsdlEdmProvider
- Returns:
- of this edm
- Throws:
ODataException
-
getAnnotationsGroup
public CsdlAnnotations getAnnotationsGroup(FullQualifiedName targetName, String qualifier) throws ODataException Description copied from interface:CsdlEdmProvider
Gets annotations group.- Specified by:
getAnnotationsGroup
in interfaceCsdlEdmProvider
- Parameters:
targetName
- full qualified name of targetqualifier
- for the given target. Might be null.- Returns:
- group for the given Target
- Throws:
ODataException
-