org.hl7.xml.validator
Class FeatureCardinalityException

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
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AssociationCardinalityException, AttributeCardinalityException

public class FeatureCardinalityException
extends FeatureException

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

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

Author:
Eric Chen
See Also:
Serialized Form

Constructor Summary
FeatureCardinalityException(Feature feature, java.lang.String actualCardinality)
           
 
Method Summary
protected static java.lang.String createMessage(Feature feature, java.lang.String actualCardinality)
           
 java.lang.String getActualCardinality()
           
 
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

FeatureCardinalityException

public FeatureCardinalityException(Feature feature,
                                   java.lang.String actualCardinality)
Method Detail

createMessage

protected static java.lang.String createMessage(Feature feature,
                                                java.lang.String actualCardinality)

getActualCardinality

public java.lang.String getActualCardinality()
Returns:
Returns the actual cardinality.