org.hl7.meta.mif
Class AssociationAdapter

java.lang.Object
  extended by org.hl7.meta.mif.FeatureAdapter
      extended by org.hl7.meta.mif.AssociationAdapter
All Implemented Interfaces:
java.lang.Cloneable, Association, Feature, Metadata
Direct Known Subclasses:
ChoiceAssociationAdapter, CmetAssociationAdapter

public class AssociationAdapter
extends FeatureAdapter
implements Association

Author:
Gunther Schadow, Peter Hendler

Field Summary
protected  hl7OrgV3.mif.AssociationEndWithClass _mifThing
           
protected  CloneClass _target
           
protected  boolean isReference
           
 
Fields inherited from class org.hl7.meta.mif.FeatureAdapter
_inheritanceDegree, _owner
 
Constructor Summary
protected AssociationAdapter(CloneClassAdapter owner, hl7OrgV3.mif.AssociationEndWithClass mifThing, java.lang.String sortKey)
           
 
Method Summary
 Cardinality getCardinality()
          Returns the feature's cardinality.
 Conformance getConformance()
          Returns the conformance field attached to this feature.
 java.lang.String getConstraint()
          Returns the textual constraint note attached to the feature.
 MetSource getMetSource()
          Returns the MET source enumeration for this association.
 java.lang.String getName()
          Returns the feature's name, which may be the attribute name, or the short name in case of an association.
 java.lang.String getPropertyName()
           
 java.lang.String getRimClass()
          Returns the name of the RIM class where the feature was originally defined.
 java.lang.String getRimPropertyName()
          Returns the property name inside the RIM class.
 CloneClass getTarget()
          Returns the clone class that is targeted by this association.
 boolean isMandatory()
          Returns a flag showing if the feature is mandatory in the clone class.
 boolean isReference()
          Since the introduction of MIF file, the concept of MET source Reused and Recursive is replaced by reference
protected  void setReference(boolean isReference)
           
protected  void setupTarget()
           
 java.lang.String toString()
           
 
Methods inherited from class org.hl7.meta.mif.FeatureAdapter
getParent, getSortKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.hl7.meta.Feature
getParent, getSortKey
 

Field Detail

_mifThing

protected hl7OrgV3.mif.AssociationEndWithClass _mifThing

_target

protected CloneClass _target

isReference

protected boolean isReference
Constructor Detail

AssociationAdapter

protected AssociationAdapter(CloneClassAdapter owner,
                             hl7OrgV3.mif.AssociationEndWithClass mifThing,
                             java.lang.String sortKey)
                      throws LoaderException
Throws:
LoaderException
Method Detail

setupTarget

protected void setupTarget()
                    throws LoaderException
Throws:
LoaderException

getName

public java.lang.String getName()
Description copied from interface: Feature
Returns the feature's name, which may be the attribute name, or the short name in case of an association.

Specified by:
getName in interface Feature
Specified by:
getName in class FeatureAdapter
Returns:
the feature's name

getMetSource

public MetSource getMetSource()
Description copied from interface: Association
Returns the MET source enumeration for this association.

Specified by:
getMetSource in interface Association
Returns:
the MET source

isReference

public boolean isReference()
Description copied from interface: Association
Since the introduction of MIF file, the concept of MET source Reused and Recursive is replaced by reference

Specified by:
isReference in interface Association
Returns:
is referenced before or not

setReference

protected void setReference(boolean isReference)

getConformance

public Conformance getConformance()
Description copied from interface: Feature
Returns the conformance field attached to this feature.

Specified by:
getConformance in interface Feature
Specified by:
getConformance in class FeatureAdapter
Returns:
the conformance field

isMandatory

public boolean isMandatory()
Description copied from interface: Feature
Returns a flag showing if the feature is mandatory in the clone class.

Specified by:
isMandatory in interface Feature
Specified by:
isMandatory in class FeatureAdapter
Returns:
the flag

getRimClass

public java.lang.String getRimClass()
Description copied from interface: Feature
Returns the name of the RIM class where the feature was originally defined.

Specified by:
getRimClass in interface Feature
Specified by:
getRimClass in class FeatureAdapter
Returns:
the RIM class name

getRimPropertyName

public java.lang.String getRimPropertyName()
Description copied from interface: Feature
Returns the property name inside the RIM class. This may be the attribute name or the association name.

Specified by:
getRimPropertyName in interface Feature
Specified by:
getRimPropertyName in class FeatureAdapter
Returns:
the RIM Property name

getPropertyName

public java.lang.String getPropertyName()
Specified by:
getPropertyName in interface Association
Returns:
the name of this association on the most specialized implementation of this association's owner.
See Also:
Association#getPropertyName()

getCardinality

public Cardinality getCardinality()
Description copied from interface: Feature
Returns the feature's cardinality.

Specified by:
getCardinality in interface Feature
Specified by:
getCardinality in class FeatureAdapter
Returns:
the feature's cardinality

getConstraint

public java.lang.String getConstraint()
Description copied from interface: Feature
Returns the textual constraint note attached to the feature.

Specified by:
getConstraint in interface Feature
Specified by:
getConstraint in class FeatureAdapter
Returns:
the constraint note

getTarget

public CloneClass getTarget()
Description copied from interface: Association
Returns the clone class that is targeted by this association.

Specified by:
getTarget in interface Association
Returns:
the target clone class

toString

public java.lang.String toString()
Overrides:
toString in class FeatureAdapter