ca.infoway.messagebuilder.marshalling.hl7.parser
Class BlElementParser

Package class diagram package BlElementParser
java.lang.Object
  extended by ca.infoway.messagebuilder.marshalling.hl7.parser.AbstractElementParser
      extended by ca.infoway.messagebuilder.marshalling.hl7.parser.AbstractSingleElementParser<Boolean>
          extended by ca.infoway.messagebuilder.marshalling.hl7.parser.BlElementParser
All Implemented Interfaces:
ElementParser

public class BlElementParser
extends AbstractSingleElementParser<Boolean>

Parses an BL element into a Boolean. The element looks like this: If a BL is null, value is replaced by a null flavor. So the element would look like this: http://www.hl7.org/v3ballot/html/infrastructure/itsxml/datatypes-its-xml.htm#dtimpl-BL


Field Summary
 
Fields inherited from class ca.infoway.messagebuilder.marshalling.hl7.parser.AbstractSingleElementParser
EMPTY_STRING
 
Fields inherited from class ca.infoway.messagebuilder.marshalling.hl7.parser.AbstractElementParser
SPECIALIZATION_TYPE
 
Constructor Summary
BlElementParser()
           
 
Method Summary
protected  BareANY doCreateDataTypeInstance(String typeName)
           
 Boolean parseBooleanValue(XmlToModelResult result, String unparsedBoolean, Element element, Attr attr)
           
protected  Boolean parseNonNullNode(ParseContext context, Node node, BareANY result, Type expectedReturnType, XmlToModelResult xmlToModelResult)
           
 
Methods inherited from class ca.infoway.messagebuilder.marshalling.hl7.parser.AbstractSingleElementParser
getMandatoryAttributeValue, getNamedChildNode, getNamePartType, hasValidNullFlavorAttribute, parse, parse, parseNullNode, setDataType, validateMaxChildCount, validateNoChildren, validateUnallowedAttributes, validateUnallowedChildNode
 
Methods inherited from class ca.infoway.messagebuilder.marshalling.hl7.parser.AbstractElementParser
getAttributeValue, getAttributeValue, getReturnType, getXsiType, getXsiType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlElementParser

public BlElementParser()
Method Detail

doCreateDataTypeInstance

protected BareANY doCreateDataTypeInstance(String typeName)
Specified by:
doCreateDataTypeInstance in class AbstractSingleElementParser<Boolean>

parseNonNullNode

protected Boolean parseNonNullNode(ParseContext context,
                                   Node node,
                                   BareANY result,
                                   Type expectedReturnType,
                                   XmlToModelResult xmlToModelResult)
                            throws XmlToModelTransformationException
Specified by:
parseNonNullNode in class AbstractSingleElementParser<Boolean>
Throws:
XmlToModelTransformationException

parseBooleanValue

public Boolean parseBooleanValue(XmlToModelResult result,
                                 String unparsedBoolean,
                                 Element element,
                                 Attr attr)


Copyright © 2013. All Rights Reserved.