Class Association
- java.lang.Object
-
- org.apache.olingo.odata2.api.edm.provider.Association
-
public class Association extends Object
Objects of this class represent an association
-
-
Constructor Summary
Constructors Constructor Description Association()
-
Method Summary
-
-
-
Method Detail
-
getName
public String getName()
- Returns:
- String name
-
getEnd1
public AssociationEnd getEnd1()
- Returns:
AssociationEndend2
-
getEnd2
public AssociationEnd getEnd2()
- Returns:
AssociationEndend2
-
getReferentialConstraint
public ReferentialConstraint getReferentialConstraint()
- Returns:
ReferentialConstraintreferentialConstraint
-
getDocumentation
public Documentation getDocumentation()
- Returns:
Documentationdocumentation
-
getAnnotationAttributes
public List<AnnotationAttribute> getAnnotationAttributes()
- Returns:
- collection of
AnnotationAttributeannotation attributes
-
getAnnotationElements
public List<AnnotationElement> getAnnotationElements()
- Returns:
- collection of
AnnotationElementannotation elements
-
setName
public Association setName(String name)
Sets the name for thisAssociation- Parameters:
name- Nome- Returns:
Associationfor method chaining
-
setEnd1
public Association setEnd1(AssociationEnd end1)
Sets the firstAssociationEndfor thisAssociation- Parameters:
end1- Final- Returns:
Associationfor method chaining
-
setEnd2
public Association setEnd2(AssociationEnd end2)
Sets the secondAssociationEndfor thisAssociation- Parameters:
end2- Final- Returns:
Associationfor method chaining
-
setReferentialConstraint
public Association setReferentialConstraint(ReferentialConstraint referentialConstraint)
Sets theReferentialConstraintfor thisAssociation- Parameters:
referentialConstraint- Referencia- Returns:
Associationfor method chaining
-
setDocumentation
public Association setDocumentation(Documentation documentation)
Sets theDocumentationfor thisAssociation- Parameters:
documentation- Documentação- Returns:
Associationfor method chaining
-
setAnnotationAttributes
public Association setAnnotationAttributes(List<AnnotationAttribute> annotationAttributes)
Sets the collection ofAnnotationAttributefor thisAssociation- Parameters:
annotationAttributes- Atributos- Returns:
Associationfor method chaining
-
setAnnotationElements
public Association setAnnotationElements(List<AnnotationElement> annotationElements)
Sets the collection ofAnnotationElementfor thisAssociation- Parameters:
annotationElements- Elementos- Returns:
Associationfor method chaining
-
-