public class MFixedAssociationDescription extends MRegistryObjectWithProperties
Used by element factories to create an association description that can not be changed
Constructor and Description |
---|
MFixedAssociationDescription(MClassRegistry clsReg,
java.lang.String assocName,
MAssociationEndpointDescription endptA,
MAssociationEndpointDescription endptB)
Constructor - this association is added to the list of associations of each of
the endpoint classes.
|
Modifier and Type | Method and Description |
---|---|
void |
addToEndpointClasses()
internal usage * register this association with the class descriptions of
the endpoints
|
com.tibco.infra.base.GlobalName |
getAssociationGlobalName()
Return the association name as GlobalName
|
java.lang.String |
getAssociationName()
Return the association name in the short form
|
java.lang.String |
getAssociationShortName()
Return the association name as shortName
|
MAssociationEndpointDescription |
getEndpointA()
Return the "A" half of a twin tuple making this association
|
MAssociationEndpointDescription |
getEndpointB()
Return the "B" half of a twin tuple making this association
|
java.lang.String |
getFullName()
Return the full name of this metadata class.
|
java.lang.String |
getIdAsString()
Return the id of the object as a string
|
java.lang.String |
getPathName()
Return the full name without the last part.
|
java.lang.String |
getShortName()
Return the last part of the name.
|
boolean |
isOK() |
boolean |
isOK(java.lang.StringBuffer errorReason) |
void |
lock()
Signal no longer allow modification to association composition
|
void |
setEndpointA(MAssociationEndpointDescription ep)
Create the "A" half of a twin-tuple making this association,
and add it to this association.
|
MAssociationEndpointDescription |
setEndpointA(java.lang.String roleName,
com.tibco.infra.base.GlobalName endptClassName,
int minMultiplicity,
int maxMultiplicity,
int assocType,
boolean isNavigable,
java.util.Vector keyAttributes)
Create the "A" half of a twin tuple making this association,
and add it to this association
|
MAssociationEndpointDescription |
setEndpointA(java.lang.String roleName,
MModeledClassDescription endptClass,
int minMultiplicity,
int maxMultiplicity,
int assocType,
boolean isNavigable,
java.util.Vector keyAttributes)
Create the "A" half of a twin tuple making this association,
and add it to this association
|
MAssociationEndpointDescription |
setEndpointA(java.lang.String roleName,
java.lang.String endptClassName,
int minMultiplicity,
int maxMultiplicity,
int assocType,
boolean isNavigable,
java.util.Vector keyAttributes)
Create the "A" half of a twin tuple making this association,
and add it to this association
|
void |
setEndpointB(MAssociationEndpointDescription ep)
Create the "B" half of a twin tuple making this association,
and add it to this association
|
MAssociationEndpointDescription |
setEndpointB(java.lang.String roleName,
com.tibco.infra.base.GlobalName endptClassName,
int minMultiplicity,
int maxMultiplicity,
int assocType,
boolean isNavigable,
java.util.Vector keyAttributes)
Create the "B" half of a twin tuple making this association,
and add it to this association
|
MAssociationEndpointDescription |
setEndpointB(java.lang.String roleName,
MModeledClassDescription endptClass,
int minMultiplicity,
int maxMultiplicity,
int assocType,
boolean isNavigable,
java.util.Vector keyAttributes)
Create the "B" half of a twin tuple making this association,
and add it to this association
|
MAssociationEndpointDescription |
setEndpointB(java.lang.String roleName,
java.lang.String endptClassName,
int minMultiplicity,
int maxMultiplicity,
int assocType,
boolean isNavigable,
java.util.Vector keyAttributes)
Create the "B" half of a twin tuple making this association,
and add it to this association
|
java.lang.String |
toString()
Return the string representation of the object
|
addProperty, getProperties, getProperty, getPropertyCount, getPropertyNames, getRegistry
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getProperties, getProperty, getPropertyCount, getPropertyNames
public MFixedAssociationDescription(MClassRegistry clsReg, java.lang.String assocName, MAssociationEndpointDescription endptA, MAssociationEndpointDescription endptB)
public void lock()
public MAssociationEndpointDescription setEndpointA(java.lang.String roleName, java.lang.String endptClassName, int minMultiplicity, int maxMultiplicity, int assocType, boolean isNavigable, java.util.Vector keyAttributes)
setEndpointA
in interface MAssociationDescription
roleName
- Name of the association endpoint.endptClassName
- Class description for the endpoint.minMultiplicity
- Minimum association cardinality for this endpoint.maxMultiplicity
- Maximum association cardinality for this endpoint.assocType
- Association type, defined by the data members of MAssociationEndpointDescription
isNavigable
- If true
, it is possible to traverse to this endpoint.keyAttributes
- List of attributes used in matching instances of related classes. This
is a list of MAttributeDescription instances.public MAssociationEndpointDescription setEndpointA(java.lang.String roleName, MModeledClassDescription endptClass, int minMultiplicity, int maxMultiplicity, int assocType, boolean isNavigable, java.util.Vector keyAttributes)
setEndpointA
in interface MAssociationDescription
roleName
- Name of the association endpoint.endptClass
- Class description for the endpoint.minMultiplicity
- Minimum association cardinality for this endpoint.maxMultiplicity
- Maximum association cardinality for this endpoint.assocType
- Association type, defined by the data members of MAssociationEndpointDescription
isNavigable
- If true
, it is possible to traverse to this endpoint.keyAttributes
- List of attributes used in matching instances of related classes.public MAssociationEndpointDescription setEndpointB(java.lang.String roleName, java.lang.String endptClassName, int minMultiplicity, int maxMultiplicity, int assocType, boolean isNavigable, java.util.Vector keyAttributes)
setEndpointB
in interface MAssociationDescription
roleName
- Name of the association endpoint.endptClassName
- Class description for the endpoint.minMultiplicity
- Minimum association cardinality for this endpoint.maxMultiplicity
- Maximum association cardinality for this endpoint.assocType
- Association type, defined by the data members of MAssociationEndpointDescription
isNavigable
- If true
, it is possible to traverse to this endpoint.keyAttributes
- List of attributes used in matching instances of related classes.public MAssociationEndpointDescription setEndpointB(java.lang.String roleName, MModeledClassDescription endptClass, int minMultiplicity, int maxMultiplicity, int assocType, boolean isNavigable, java.util.Vector keyAttributes)
setEndpointB
in interface MAssociationDescription
roleName
- Name of the association endpoint.endptClass
- Class description for the endpoint.minMultiplicity
- Minimum association cardinality for this endpoint.maxMultiplicity
- Maximum association cardinality for this endpoint.assocType
- Association type, defined by the data members of MAssociationEndpointDescription
isNavigable
- If true
, it is possible to traverse to this endpoint.keyAttributes
- List of attributes used in matching instances of related classes.public void addToEndpointClasses()
public com.tibco.infra.base.GlobalName getAssociationGlobalName()
getAssociationGlobalName
in interface MAssociationDescription
public java.lang.String getAssociationShortName()
getAssociationShortName
in interface MAssociationDescription
public java.lang.String getAssociationName()
getAssociationName
in interface MAssociationDescription
public java.lang.String getShortName()
MAssociationDescription
See "Metadata Class Names" in TIBCO Adapter SDK Programmer's Guide.
getShortName
in interface MAssociationDescription
public java.lang.String getPathName()
MAssociationDescription
See "Metadata Class Names" in TIBCO Adapter SDK Programmer's Guide.
getPathName
in interface MAssociationDescription
public java.lang.String getFullName()
MAssociationDescription
getFullName
in interface MAssociationDescription
public MAssociationEndpointDescription getEndpointA()
getEndpointA
in interface MAssociationDescription
MAssociationEndpointDescription
public MAssociationEndpointDescription getEndpointB()
getEndpointB
in interface MAssociationDescription
MAssociationEndpointDescription
public java.lang.String getIdAsString()
getIdAsString
in interface MObjWithIdSort.HasIdString
public void setEndpointA(MAssociationEndpointDescription ep)
MAssociationDescription
setEndpointA
in interface MAssociationDescription
public MAssociationEndpointDescription setEndpointA(java.lang.String roleName, com.tibco.infra.base.GlobalName endptClassName, int minMultiplicity, int maxMultiplicity, int assocType, boolean isNavigable, java.util.Vector keyAttributes)
setEndpointA
in interface MAssociationDescription
public void setEndpointB(MAssociationEndpointDescription ep)
MAssociationDescription
setEndpointB
in interface MAssociationDescription
public MAssociationEndpointDescription setEndpointB(java.lang.String roleName, com.tibco.infra.base.GlobalName endptClassName, int minMultiplicity, int maxMultiplicity, int assocType, boolean isNavigable, java.util.Vector keyAttributes)
setEndpointB
in interface MAssociationDescription
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isOK()
isOK
in interface MMetaDescription
isOK
in class MRegistryObjectWithProperties
public boolean isOK(java.lang.StringBuffer errorReason)
isOK
in interface MMetaDescription
isOK
in class MRegistryObjectWithProperties