Class EdmAssociationImpl
- java.lang.Object
-
- org.apache.olingo.odata2.client.core.edm.Impl.EdmNamedImpl
-
- org.apache.olingo.odata2.client.core.edm.Impl.EdmAssociationImpl
-
- All Implemented Interfaces:
org.apache.olingo.odata2.api.edm.EdmAnnotatable,org.apache.olingo.odata2.api.edm.EdmAssociation,org.apache.olingo.odata2.api.edm.EdmNamed,org.apache.olingo.odata2.api.edm.EdmType
public class EdmAssociationImpl extends EdmNamedImpl implements org.apache.olingo.odata2.api.edm.EdmAssociation, org.apache.olingo.odata2.api.edm.EdmAnnotatable
Objects of this class represent Asociation
-
-
Field Summary
-
Fields inherited from class org.apache.olingo.odata2.client.core.edm.Impl.EdmNamedImpl
edm, name
-
-
Constructor Summary
Constructors Constructor Description EdmAssociationImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.olingo.odata2.api.edm.EdmAnnotationsgetAnnotations()List<EdmMetadataAssociationEnd>getAssociationEnds()EdmDocumentationgetDocumentation()org.apache.olingo.odata2.api.edm.EdmAssociationEndgetEnd(String role)EdmMetadataAssociationEndgetEnd1()EdmMetadataAssociationEndgetEnd2()org.apache.olingo.odata2.api.edm.EdmMultiplicitygetEndMultiplicity(String role)org.apache.olingo.odata2.api.edm.EdmTypeKindgetKind()StringgetNamespace()org.apache.olingo.odata2.api.edm.EdmReferentialConstraintgetReferentialConstraint()voidsetAnnotations(org.apache.olingo.odata2.api.edm.EdmAnnotations annotations)voidsetAssociationEnds(List<EdmMetadataAssociationEnd> associationEnds)voidsetDocumentation(EdmDocumentation documentation)voidsetNamespace(String namespace)voidsetReferentialConstraint(org.apache.olingo.odata2.api.edm.EdmReferentialConstraint referentialConstraint)StringtoString()-
Methods inherited from class org.apache.olingo.odata2.client.core.edm.Impl.EdmNamedImpl
getName, setEdm, setName
-
-
-
-
Method Detail
-
getDocumentation
public EdmDocumentation getDocumentation()
-
setDocumentation
public void setDocumentation(EdmDocumentation documentation)
-
getAssociationEnds
public List<EdmMetadataAssociationEnd> getAssociationEnds()
-
getNamespace
public String getNamespace() throws org.apache.olingo.odata2.api.edm.EdmException
- Specified by:
getNamespacein interfaceorg.apache.olingo.odata2.api.edm.EdmType- Throws:
org.apache.olingo.odata2.api.edm.EdmException
-
setNamespace
public void setNamespace(String namespace)
- Parameters:
namespace- the namespace to set
-
getKind
public org.apache.olingo.odata2.api.edm.EdmTypeKind getKind()
- Specified by:
getKindin interfaceorg.apache.olingo.odata2.api.edm.EdmType
-
getEnd
public org.apache.olingo.odata2.api.edm.EdmAssociationEnd getEnd(String role) throws org.apache.olingo.odata2.api.edm.EdmException
- Specified by:
getEndin interfaceorg.apache.olingo.odata2.api.edm.EdmAssociation- Throws:
org.apache.olingo.odata2.api.edm.EdmException
-
getAnnotations
public org.apache.olingo.odata2.api.edm.EdmAnnotations getAnnotations() throws org.apache.olingo.odata2.api.edm.EdmException- Specified by:
getAnnotationsin interfaceorg.apache.olingo.odata2.api.edm.EdmAnnotatable- Throws:
org.apache.olingo.odata2.api.edm.EdmException
-
getEndMultiplicity
public org.apache.olingo.odata2.api.edm.EdmMultiplicity getEndMultiplicity(String role) throws org.apache.olingo.odata2.api.edm.EdmException
- Throws:
org.apache.olingo.odata2.api.edm.EdmException
-
getEnd1
public EdmMetadataAssociationEnd getEnd1() throws org.apache.olingo.odata2.api.edm.EdmException
- Specified by:
getEnd1in interfaceorg.apache.olingo.odata2.api.edm.EdmAssociation- Throws:
org.apache.olingo.odata2.api.edm.EdmException
-
getEnd2
public EdmMetadataAssociationEnd getEnd2() throws org.apache.olingo.odata2.api.edm.EdmException
- Specified by:
getEnd2in interfaceorg.apache.olingo.odata2.api.edm.EdmAssociation- Throws:
org.apache.olingo.odata2.api.edm.EdmException
-
getReferentialConstraint
public org.apache.olingo.odata2.api.edm.EdmReferentialConstraint getReferentialConstraint() throws org.apache.olingo.odata2.api.edm.EdmException- Specified by:
getReferentialConstraintin interfaceorg.apache.olingo.odata2.api.edm.EdmAssociation- Throws:
org.apache.olingo.odata2.api.edm.EdmException
-
setReferentialConstraint
public void setReferentialConstraint(org.apache.olingo.odata2.api.edm.EdmReferentialConstraint referentialConstraint)
-
setAnnotations
public void setAnnotations(org.apache.olingo.odata2.api.edm.EdmAnnotations annotations)
-
setAssociationEnds
public void setAssociationEnds(List<EdmMetadataAssociationEnd> associationEnds)
-
toString
public String toString()
- Overrides:
toStringin classEdmNamedImpl
-
-