org.hl7.xml.builder
Class AttributeCardinalityException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.hl7.xml.validator.ValidatorException
              extended by org.hl7.xml.builder.FeatureException
                  extended by org.hl7.xml.validator.FeatureCardinalityException
                      extended by org.hl7.xml.builder.AttributeCardinalityException
All Implemented Interfaces:
java.io.Serializable

public class AttributeCardinalityException
extends FeatureCardinalityException

Exception that is thrown when an attribute cardinality specified in HMD and values present in RIM object are incompatible. May happen in the following cases:

  1. HMD specifies cardinality 1..1 or 1..*, but value is not present in RIM object.
  2. HMD specifies cardinality 0..1 or 0..*, but multiple values are present in RIM object.

Author:
Skirmantas Kligys
See Also:
Serialized Form

Constructor Summary
AttributeCardinalityException(Attribute attribute, java.lang.String actualCardinality)
           
 
Method Summary
 java.lang.String getActualCardinality()
           
 
Methods inherited from class org.hl7.xml.validator.FeatureCardinalityException
createMessage
 
Methods inherited from class org.hl7.xml.builder.FeatureException
createMessage, getFeature
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeCardinalityException

public AttributeCardinalityException(Attribute attribute,
                                     java.lang.String actualCardinality)
Method Detail

getActualCardinality

public java.lang.String getActualCardinality()
Overrides:
getActualCardinality in class FeatureCardinalityException
Returns:
Returns the actual cardinality.