Class Association
java.lang.Object
org.apache.olingo.odata2.api.edm.provider.Association
Objects of this class represent an association
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEnd1()getEnd2()getName()setAnnotationAttributes(List<AnnotationAttribute> annotationAttributes) Sets the collection ofAnnotationAttributefor thisAssociationsetAnnotationElements(List<AnnotationElement> annotationElements) Sets the collection ofAnnotationElementfor thisAssociationsetDocumentation(Documentation documentation) Sets theDocumentationfor thisAssociationsetEnd1(AssociationEnd end1) Sets the firstAssociationEndfor thisAssociationsetEnd2(AssociationEnd end2) Sets the secondAssociationEndfor thisAssociationSets the name for thisAssociationsetReferentialConstraint(ReferentialConstraint referentialConstraint) Sets theReferentialConstraintfor thisAssociation
-
Constructor Details
-
Association
public Association()
-
-
Method Details
-
getName
- Returns:
- String name
-
getEnd1
- Returns:
AssociationEndend2
-
getEnd2
- Returns:
AssociationEndend2
-
getReferentialConstraint
- Returns:
ReferentialConstraintreferentialConstraint
-
getDocumentation
- Returns:
Documentationdocumentation
-
getAnnotationAttributes
- Returns:
- collection of
AnnotationAttributeannotation attributes
-
getAnnotationElements
- Returns:
- collection of
AnnotationElementannotation elements
-
setName
Sets the name for thisAssociation- Parameters:
name-- Returns:
Associationfor method chaining
-
setEnd1
Sets the firstAssociationEndfor thisAssociation- Parameters:
end1-- Returns:
Associationfor method chaining
-
setEnd2
Sets the secondAssociationEndfor thisAssociation- Parameters:
end2-- Returns:
Associationfor method chaining
-
setReferentialConstraint
Sets theReferentialConstraintfor thisAssociation- Parameters:
referentialConstraint-- Returns:
Associationfor method chaining
-
setDocumentation
Sets theDocumentationfor thisAssociation- Parameters:
documentation-- Returns:
Associationfor method chaining
-
setAnnotationAttributes
Sets the collection ofAnnotationAttributefor thisAssociation- Parameters:
annotationAttributes-- Returns:
Associationfor method chaining
-
setAnnotationElements
Sets the collection ofAnnotationElementfor thisAssociation- Parameters:
annotationElements-- Returns:
Associationfor method chaining
-