org.hl7.meta.mif
Class AttributeAdapter

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

public class AttributeAdapter
extends FeatureAdapter
implements Attribute


Field Summary
 
Fields inherited from class org.hl7.meta.mif.FeatureAdapter
_inheritanceDegree, _owner
 
Method Summary
 Cardinality getCardinality()
          Returns the feature's cardinality.
 CodingStrength getCodingStrength()
          Returns the coding strength for this attribute.
 Conformance getConformance()
          Returns the conformance field attached to this feature.
 java.lang.String getConstraint()
          Returns the textual constraint note attached to the feature.
 Datatype getDatatype()
          Returns the datatype of this attribute.
 java.lang.String getDefaultValue()
          Returns the default value for this attribute.
 java.lang.String[] getDomains()
          Returns the vocabulary domains for this attribute.
 java.lang.String[] getFixedValues()
          Returns the fixed values for this attribute.
 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 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.
 boolean isMandatory()
          Returns a flag showing if the feature is mandatory in the clone class.
 boolean isStructural()
          Returns true if this attribute is defined as structural in XML ITS (that means in XML instance it is represented by an XML attribute instead of an XML element.
 
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
 

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

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

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

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

getDatatype

public Datatype getDatatype()
Description copied from interface: Attribute
Returns the datatype of this attribute.

Specified by:
getDatatype in interface Attribute
Returns:
the Datatype

getDomains

public java.lang.String[] getDomains()
Description copied from interface: Attribute
Returns the vocabulary domains for this attribute.

Specified by:
getDomains in interface Attribute
Returns:
the vocabulary domains

getFixedValues

public java.lang.String[] getFixedValues()
Description copied from interface: Attribute
Returns the fixed values for this attribute.

Specified by:
getFixedValues in interface Attribute
Returns:
the fixed values

getDefaultValue

public java.lang.String getDefaultValue()
Description copied from interface: Attribute
Returns the default value for this attribute.

Specified by:
getDefaultValue in interface Attribute
Returns:
the default values

getCodingStrength

public CodingStrength getCodingStrength()
Description copied from interface: Attribute
Returns the coding strength for this attribute.

Specified by:
getCodingStrength in interface Attribute
Returns:
the coding strength

isStructural

public boolean isStructural()
Description copied from interface: Attribute
Returns true if this attribute is defined as structural in XML ITS (that means in XML instance it is represented by an XML attribute instead of an XML element.

Specified by:
isStructural in interface Attribute
Returns:
the structural attribute flag

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

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

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