Class DataServices
java.lang.Object
org.apache.olingo.odata2.api.edm.provider.DataServices
Objects of this class represent the data service. They contain all schemas of the EDM as well as the
dataServiceVersion
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetAnnotationElements(List<AnnotationElement> annotationElements) Sets the collection ofAnnotationElementfor thisDataServicessetCustomEdmxVersion(String customEdmxVersion) Sets a custom edmx version which is used in the metadata documentsetDataServiceVersion(String dataServiceVersion) Sets the data service version for thisDataServicessetSchemas(List<Schema> schemas) Sets the schemas for thisDataServices
-
Constructor Details
-
DataServices
public DataServices()
-
-
Method Details
-
setSchemas
Sets the schemas for thisDataServices- Parameters:
schemas-- Returns:
DataServicesfor method chaining
-
setDataServiceVersion
Sets the data service version for thisDataServices- Parameters:
dataServiceVersion-- Returns:
DataServicesfor method chaining
-
setAnnotationElements
Sets the collection ofAnnotationElementfor thisDataServices- Parameters:
annotationElements-- Returns:
ComplexTypefor method chaining
-
setCustomEdmxVersion
Sets a custom edmx version which is used in the metadata document- Parameters:
customEdmxVersion-- Returns:
ComplexTypefor method chaining
-
getAnnotationElements
- Returns:
- collection of
AnnotationElementannotation elements
-
getSchemas
- Returns:
- List<
Schema>
-
getDataServiceVersion
- Returns:
- String data service version
-
getCustomEdmxVersion
- Returns:
- String custom edmx version
-