ca.infoway.messagebuilder.marshalling.hl7
Class Hl7Error

Package class diagram package Hl7Error
java.lang.Object
  extended by ca.infoway.messagebuilder.marshalling.hl7.Hl7Error

public class Hl7Error
extends Object


Constructor Summary
Hl7Error(Hl7ErrorCode hl7ErrorCode, String message, Attr attr)
           
Hl7Error(Hl7ErrorCode hl7ErrorCode, String message, Element element)
           
Hl7Error(Hl7ErrorCode hl7ErrorCode, String message, String beanPath)
           
 
Method Summary
static Hl7Error createEmptyCodeValueError(Element base, Attr attr)
           
static Hl7Error createIgnoredAsNotAllowedConformanceLevelRelationshipError(String xmlName, Element base)
           
static Hl7Error createIncorrectCapitalizationBooleanValueError(String unparsedBoolean, Element element, Attr attr)
           
static Hl7Error createInvalidBooleanValueError(Element element, Attr attr)
           
static Hl7Error createInvalidFixedValueAttributeError(Attr attr, String fixedValue)
           
static Hl7Error createInvalidTypeError(String specializationType, String parentType, Element element)
           
static Hl7Error createMandatoryAttributeIsNullError(String elementName, String nullFlavor, Element element)
           
static Hl7Error createMandatoryBooleanValueError(Element element, Attr attr)
           
static Hl7Error createMissingMandatoryAssociationError(String xmlName, Element base)
           
static Hl7Error createMissingMandatoryAttributeError(String name, Element base)
          This error message is used when a mandatory attribute is missing from an XML element.
static Hl7Error createMissingNamespace(String xmlNamespace, Element documentElement)
           
static Hl7Error createMissingPopulatedAssociationError(String xmlName, Element base)
           
static Hl7Error createMissingPopulatedAttributeError(String name, Element base)
           
static Hl7Error createNotAllowedConformanceLevelRelationshipError(String xmlName, Element base)
           
static Hl7Error createNullFlavorMissingXsiNilError(String elementName, Element element)
           
static Hl7Error createRequiredAttributeIsNullError(String elementName, String nullFlavor, Element element)
           
static Hl7Error createUnknownChildElementError(Element element)
           
static Hl7Error createUnknownInteractionError(String interactionId, Element element)
           
static Hl7Error createUnknownStructuralAttributeError(Element base, Attr attr)
           
static Hl7Error createUnknownStructuralTypeError(String type, String name, Element base, Attr attr)
           
static Hl7Error createWrongNumberOfAssociationsError(String xmlName, Element base, int size, Cardinality cardinality)
           
 boolean equals(Object obj)
           
 String getBeanPath()
           
 Hl7ErrorCode getHl7ErrorCode()
           
 String getMessage()
           
 String getPath()
           
 int hashCode()
           
 boolean isRenderedToXml()
           
 void markAsRenderedToXml()
           
 void setBeanPath(String beanPath)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Hl7Error

public Hl7Error(Hl7ErrorCode hl7ErrorCode,
                String message,
                String beanPath)

Hl7Error

public Hl7Error(Hl7ErrorCode hl7ErrorCode,
                String message,
                Element element)

Hl7Error

public Hl7Error(Hl7ErrorCode hl7ErrorCode,
                String message,
                Attr attr)
Method Detail

getHl7ErrorCode

public Hl7ErrorCode getHl7ErrorCode()

getMessage

public String getMessage()

getPath

public String getPath()

getBeanPath

public String getBeanPath()

setBeanPath

public void setBeanPath(String beanPath)

isRenderedToXml

public boolean isRenderedToXml()

markAsRenderedToXml

public void markAsRenderedToXml()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

createMissingMandatoryAttributeError

public static Hl7Error createMissingMandatoryAttributeError(String name,
                                                            Element base)

This error message is used when a mandatory attribute is missing from an XML element.

Parameters:
name - - the name of the mandatory attribute
base - - the element that should provide the attribute, but does not.
Returns:
an HL7 error object

createMissingPopulatedAttributeError

public static Hl7Error createMissingPopulatedAttributeError(String name,
                                                            Element base)

createInvalidFixedValueAttributeError

public static Hl7Error createInvalidFixedValueAttributeError(Attr attr,
                                                             String fixedValue)

createInvalidBooleanValueError

public static Hl7Error createInvalidBooleanValueError(Element element,
                                                      Attr attr)

createIncorrectCapitalizationBooleanValueError

public static Hl7Error createIncorrectCapitalizationBooleanValueError(String unparsedBoolean,
                                                                      Element element,
                                                                      Attr attr)

createMandatoryBooleanValueError

public static Hl7Error createMandatoryBooleanValueError(Element element,
                                                        Attr attr)

createUnknownStructuralTypeError

public static Hl7Error createUnknownStructuralTypeError(String type,
                                                        String name,
                                                        Element base,
                                                        Attr attr)

createInvalidTypeError

public static Hl7Error createInvalidTypeError(String specializationType,
                                              String parentType,
                                              Element element)

createEmptyCodeValueError

public static Hl7Error createEmptyCodeValueError(Element base,
                                                 Attr attr)

createUnknownStructuralAttributeError

public static Hl7Error createUnknownStructuralAttributeError(Element base,
                                                             Attr attr)

createMissingMandatoryAssociationError

public static Hl7Error createMissingMandatoryAssociationError(String xmlName,
                                                              Element base)

createMissingPopulatedAssociationError

public static Hl7Error createMissingPopulatedAssociationError(String xmlName,
                                                              Element base)

createWrongNumberOfAssociationsError

public static Hl7Error createWrongNumberOfAssociationsError(String xmlName,
                                                            Element base,
                                                            int size,
                                                            Cardinality cardinality)

createMissingNamespace

public static Hl7Error createMissingNamespace(String xmlNamespace,
                                              Element documentElement)

createUnknownChildElementError

public static Hl7Error createUnknownChildElementError(Element element)

createUnknownInteractionError

public static Hl7Error createUnknownInteractionError(String interactionId,
                                                     Element element)

createMandatoryAttributeIsNullError

public static Hl7Error createMandatoryAttributeIsNullError(String elementName,
                                                           String nullFlavor,
                                                           Element element)

createRequiredAttributeIsNullError

public static Hl7Error createRequiredAttributeIsNullError(String elementName,
                                                          String nullFlavor,
                                                          Element element)

createNullFlavorMissingXsiNilError

public static Hl7Error createNullFlavorMissingXsiNilError(String elementName,
                                                          Element element)

createIgnoredAsNotAllowedConformanceLevelRelationshipError

public static Hl7Error createIgnoredAsNotAllowedConformanceLevelRelationshipError(String xmlName,
                                                                                  Element base)

createNotAllowedConformanceLevelRelationshipError

public static Hl7Error createNotAllowedConformanceLevelRelationshipError(String xmlName,
                                                                         Element base)


Copyright © 2013. All Rights Reserved.