Class NavigationProperty
- java.lang.Object
-
- org.apache.olingo.odata2.api.edm.provider.NavigationProperty
-
public class NavigationProperty extends Object
Objects of this Class represent a navigation property
-
-
Constructor Summary
Constructors Constructor Description NavigationProperty()
-
Method Summary
-
-
-
Method Detail
-
getName
public String getName()
- Returns:
- String name of this navigation property
-
getRelationship
public FullQualifiedName getRelationship()
- Returns:
FullQualifiedNameof the relationship
-
getFromRole
public String getFromRole()
- Returns:
- String name of the role this navigation is comming from
-
getToRole
public String getToRole()
- Returns:
- String name of the role this navigation is going to
-
getDocumentation
public Documentation getDocumentation()
- Returns:
Documentationdocumentation
-
getAnnotationAttributes
public List<AnnotationAttribute> getAnnotationAttributes()
- Returns:
- List of
AnnotationAttributeannotation attributes
-
getAnnotationElements
public List<AnnotationElement> getAnnotationElements()
- Returns:
- List of
AnnotationElementannotation elements
-
setName
public NavigationProperty setName(String name)
Sets the name of thisNavigationProperty- Parameters:
name- Nome- Returns:
NavigationPropertyfor method chaining
-
setRelationship
public NavigationProperty setRelationship(FullQualifiedName relationship)
Sets theFullQualifiedNamefor the relationship of thisNavigationProperty- Parameters:
relationship- Relacionamento- Returns:
NavigationPropertyfor method chaining
-
setFromRole
public NavigationProperty setFromRole(String fromRole)
Sets the role thisNavigationPropertyis comming from- Parameters:
fromRole- fromRole- Returns:
NavigationPropertyfor method chaining
-
setToRole
public NavigationProperty setToRole(String toRole)
Sets the role thisNavigationPropertyis going to- Parameters:
toRole- toRole- Returns:
NavigationPropertyfor method chaining
-
setMapping
public NavigationProperty setMapping(Mapping mapping)
Sets theMappingfor thisNavigationProperty- Parameters:
mapping- Mapa- Returns:
NavigationPropertyfor method chaining
-
setDocumentation
public NavigationProperty setDocumentation(Documentation documentation)
Sets theDocumentationfor thisNavigationProperty- Parameters:
documentation- Documentação- Returns:
NavigationPropertyfor method chaining
-
setAnnotationAttributes
public NavigationProperty setAnnotationAttributes(List<AnnotationAttribute> annotationAttributes)
Sets the List ofAnnotationAttributefor thisNavigationProperty- Parameters:
annotationAttributes- Atributos- Returns:
NavigationPropertyfor method chaining
-
setAnnotationElements
public NavigationProperty setAnnotationElements(List<AnnotationElement> annotationElements)
Sets the List ofAnnotationElementfor thisNavigationProperty- Parameters:
annotationElements- Elementos- Returns:
NavigationPropertyfor method chaining
-
-