Class DataServices
- java.lang.Object
-
- org.apache.olingo.odata2.api.edm.provider.DataServices
-
public class DataServices extends Object
Objects of this class represent the data service. They contain all schemas of the EDM as well as the dataServiceVersion
-
-
Constructor Summary
Constructors Constructor Description DataServices()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<AnnotationElement>getAnnotationElements()StringgetCustomEdmxVersion()StringgetDataServiceVersion()List<Schema>getSchemas()DataServicessetAnnotationElements(List<AnnotationElement> annotationElements)Sets the collection ofAnnotationElementfor thisDataServicesDataServicessetCustomEdmxVersion(String customEdmxVersion)Sets a custom edmx version which is used in the metadata documentDataServicessetDataServiceVersion(String dataServiceVersion)Sets the data service version for thisDataServicesDataServicessetSchemas(List<Schema> schemas)Sets the schemas for thisDataServices
-
-
-
Method Detail
-
setSchemas
public DataServices setSchemas(List<Schema> schemas)
Sets the schemas for thisDataServices- Parameters:
schemas- Esquema- Returns:
DataServicesfor method chaining
-
setDataServiceVersion
public DataServices setDataServiceVersion(String dataServiceVersion)
Sets the data service version for thisDataServices- Parameters:
dataServiceVersion- Versão- Returns:
DataServicesfor method chaining
-
setAnnotationElements
public DataServices setAnnotationElements(List<AnnotationElement> annotationElements)
Sets the collection ofAnnotationElementfor thisDataServices- Parameters:
annotationElements- Elementos- Returns:
ComplexTypefor method chaining
-
setCustomEdmxVersion
public DataServices setCustomEdmxVersion(String customEdmxVersion)
Sets a custom edmx version which is used in the metadata document- Parameters:
customEdmxVersion- Versão- Returns:
ComplexTypefor method chaining
-
getAnnotationElements
public List<AnnotationElement> getAnnotationElements()
- Returns:
- collection of
AnnotationElementannotation elements
-
getDataServiceVersion
public String getDataServiceVersion()
- Returns:
- String data service version
-
getCustomEdmxVersion
public String getCustomEdmxVersion()
- Returns:
- String custom edmx version
-
-