Class EdmxReference
java.lang.Object
org.apache.olingo.commons.api.edmx.EdmxReference
- All Implemented Interfaces:
CsdlAnnotatable
POJO for Edmx Reference.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddInclude
(EdmxReferenceInclude include) Add include element to current list.addIncludeAnnotation
(EdmxReferenceIncludeAnnotation includeAnnotation) Add include annotation element to current list.Returns a list of annotationsedmx:IncludeAnnotations elements that specify the annotations to include from the target document.edmx:Include elements that specify the schemas to include from the target documentgetUri()
Get URI for the referencesetAnnotations
(List<CsdlAnnotation> annotations) Sets annotations.
-
Constructor Details
-
EdmxReference
Create reference with given uri- Parameters:
uri
- of reference
-
-
Method Details
-
getUri
Get URI for the reference- Returns:
- uri for the reference
-
getIncludes
edmx:Include elements that specify the schemas to include from the target document- Returns:
- list of
EdmxReferenceInclude
in reference or null if none specified
-
addInclude
Add include element to current list.- Parameters:
include
- to be added- Returns:
- this EdmxReference object
-
getIncludeAnnotations
edmx:IncludeAnnotations elements that specify the annotations to include from the target document.- Returns:
- List of
EdmxReferenceIncludeAnnotation
or null if none specified
-
addIncludeAnnotation
Add include annotation element to current list.- Parameters:
includeAnnotation
- to be added- Returns:
- this EdmxReference object
-
getAnnotations
Description copied from interface:CsdlAnnotatable
Returns a list of annotations- Specified by:
getAnnotations
in interfaceCsdlAnnotatable
- Returns:
- list of annotations
-
setAnnotations
Sets annotations.- Parameters:
annotations
- the annotations- Returns:
- the annotations
-