org.hl7.meta.mif
Class ChoiceBranchAssociationAdapter

java.lang.Object
  extended by org.hl7.meta.mif.FeatureAdapter
      extended by org.hl7.meta.mif.ChoiceBranchAssociationAdapter
All Implemented Interfaces:
java.lang.Cloneable, Association, Feature, Metadata

public class ChoiceBranchAssociationAdapter
extends FeatureAdapter
implements Association

Author:
Gunther Schadow, Peter Hendler

Field Summary
protected  ChoiceAssociationAdapter _choice
           
protected  CloneClass _target
           
protected  boolean isRecursive
           
 
Fields inherited from class org.hl7.meta.mif.FeatureAdapter
_inheritanceDegree, _owner
 
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 setRecursive(boolean isRecursive)
           
 
Methods inherited from class org.hl7.meta.mif.FeatureAdapter
getParent, getSortKey, toString
 
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

_choice

protected ChoiceAssociationAdapter _choice

_target

protected CloneClass _target

isRecursive

protected boolean isRecursive
Method Detail

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

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.

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

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

setRecursive

protected void setRecursive(boolean isRecursive)