Class NavigationProperty
java.lang.Object
org.apache.olingo.odata2.api.edm.provider.NavigationProperty
Objects of this Class represent a navigation property
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()setAnnotationAttributes(List<AnnotationAttribute> annotationAttributes) Sets the List ofAnnotationAttributefor thisNavigationPropertysetAnnotationElements(List<AnnotationElement> annotationElements) Sets the List ofAnnotationElementfor thisNavigationPropertysetDocumentation(Documentation documentation) Sets theDocumentationfor thisNavigationPropertysetFromRole(String fromRole) Sets the role thisNavigationPropertyis comming fromsetMapping(Mapping mapping) Sets theMappingfor thisNavigationPropertySets the name of thisNavigationPropertysetRelationship(FullQualifiedName relationship) Sets theFullQualifiedNamefor the relationship of thisNavigationPropertySets the role thisNavigationPropertyis going to
-
Constructor Details
-
NavigationProperty
public NavigationProperty()
-
-
Method Details
-
getName
- Returns:
- String name of this navigation property
-
getRelationship
- Returns:
FullQualifiedNameof the relationship
-
getFromRole
- Returns:
- String name of the role this navigation is comming from
-
getToRole
- Returns:
- String name of the role this navigation is going to
-
getMapping
- Returns:
Mappingof this navigation property
-
getDocumentation
- Returns:
Documentationdocumentation
-
getAnnotationAttributes
- Returns:
- List of
AnnotationAttributeannotation attributes
-
getAnnotationElements
- Returns:
- List of
AnnotationElementannotation elements
-
setName
Sets the name of thisNavigationProperty- Parameters:
name-- Returns:
NavigationPropertyfor method chaining
-
setRelationship
Sets theFullQualifiedNamefor the relationship of thisNavigationProperty- Parameters:
relationship-- Returns:
NavigationPropertyfor method chaining
-
setFromRole
Sets the role thisNavigationPropertyis comming from- Parameters:
fromRole-- Returns:
NavigationPropertyfor method chaining
-
setToRole
Sets the role thisNavigationPropertyis going to- Parameters:
toRole-- Returns:
NavigationPropertyfor method chaining
-
setMapping
Sets theMappingfor thisNavigationProperty- Parameters:
mapping-- Returns:
NavigationPropertyfor method chaining
-
setDocumentation
Sets theDocumentationfor thisNavigationProperty- Parameters:
documentation-- Returns:
NavigationPropertyfor method chaining
-
setAnnotationAttributes
Sets the List ofAnnotationAttributefor thisNavigationProperty- Parameters:
annotationAttributes-- Returns:
NavigationPropertyfor method chaining
-
setAnnotationElements
Sets the List ofAnnotationElementfor thisNavigationProperty- Parameters:
annotationElements-- Returns:
NavigationPropertyfor method chaining
-