org.hl7.meta.mif
Class FeatureAdapter

java.lang.Object
  extended by org.hl7.meta.mif.FeatureAdapter
All Implemented Interfaces:
java.lang.Cloneable, Feature, Metadata
Direct Known Subclasses:
AssociationAdapter, AttributeAdapter, ChoiceBranchAssociationAdapter, CmetChoiceBranchAssociationAdapter

public abstract class FeatureAdapter
extends java.lang.Object
implements java.lang.Cloneable, Feature

Author:
Gunther Schadow

Field Summary
protected  int _inheritanceDegree
          This number says from how far away this feature is inherited.
protected  CloneClassAdapter _owner
           
 
Constructor Summary
protected FeatureAdapter(CloneClassAdapter owner, hl7OrgV3.mif.ModelElement element, java.lang.String sortKey)
           
 
Method Summary
abstract  Cardinality getCardinality()
          Returns the feature's cardinality.
abstract  Conformance getConformance()
          Returns the conformance field attached to this feature.
abstract  java.lang.String getConstraint()
          Returns the textual constraint note attached to the feature.
abstract  java.lang.String getName()
          Returns the feature's name, which may be the attribute name, or the short name in case of an association.
 CloneClass getParent()
          Returns the clone class where the feature belongs.
abstract  java.lang.String getRimClass()
          Returns the name of the RIM class where the feature was originally defined.
abstract  java.lang.String getRimPropertyName()
          Returns the property name inside the RIM class.
 int getSortKey()
          Returns the feature's sort key.
abstract  boolean isMandatory()
          Returns a flag showing if the feature is mandatory in the clone class.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_owner

protected CloneClassAdapter _owner

_inheritanceDegree

protected int _inheritanceDegree
This number says from how far away this feature is inherited. 0 means it has been specified in this class, 1 in this class' parent, 2 grandparent, and so on. This is used to sort the attributes and to control overrides if necessary.

Constructor Detail

FeatureAdapter

protected FeatureAdapter(CloneClassAdapter owner,
                         hl7OrgV3.mif.ModelElement element,
                         java.lang.String sortKey)
Method Detail

getSortKey

public int getSortKey()
Description copied from interface: Feature
Returns the feature's sort key.

Specified by:
getSortKey in interface Feature
Returns:
the feature's sort key

getName

public abstract 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
Returns:
the feature's name

getCardinality

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

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

getRimClass

public abstract 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
Returns:
the RIM class name

getRimPropertyName

public abstract 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
Returns:
the RIM Property name

getParent

public CloneClass getParent()
Description copied from interface: Feature
Returns the clone class where the feature belongs.

Specified by:
getParent in interface Feature
Returns:
the clone class

isMandatory

public abstract 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
Returns:
the flag

getConformance

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

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

getConstraint

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

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

toString

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