ca.infoway.messagebuilder.marshalling.hl7.parser
Class BlElementParser
java.lang.Object
ca.infoway.messagebuilder.marshalling.hl7.parser.AbstractElementParser
ca.infoway.messagebuilder.marshalling.hl7.parser.AbstractSingleElementParser<Boolean>
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BlElementParser
public BlElementParser()
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.