ca.infoway.messagebuilder.marshalling.hl7.parser
Class AbstractRtoElementParser<N,D>

Package class diagram package AbstractRtoElementParser
java.lang.Object
  extended by ca.infoway.messagebuilder.marshalling.hl7.parser.AbstractElementParser
      extended by ca.infoway.messagebuilder.marshalling.hl7.parser.AbstractSingleElementParser<Ratio<N,D>>
          extended by ca.infoway.messagebuilder.marshalling.hl7.parser.AbstractRtoElementParser<N,D>
All Implemented Interfaces:
ElementParser

public abstract class AbstractRtoElementParser<N,D>
extends AbstractSingleElementParser<Ratio<N,D>>


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
AbstractRtoElementParser()
           
 
Method Summary
protected  BareANY doCreateDataTypeInstance(String typeName)
           
protected abstract  D getDenominatorValue(Element element, String type, ParseContext context, XmlToModelResult xmlToModelResult)
           
protected abstract  N getNumeratorValue(Element element, String type, ParseContext context, XmlToModelResult xmlToModelResult)
           
protected  Ratio<N,D> parseNonNullNode(ParseContext context, Node node, BareANY parseResult, 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

AbstractRtoElementParser

public AbstractRtoElementParser()
Method Detail

parseNonNullNode

protected Ratio<N,D> parseNonNullNode(ParseContext context,
                                      Node node,
                                      BareANY parseResult,
                                      Type expectedReturnType,
                                      XmlToModelResult xmlToModelResult)
Specified by:
parseNonNullNode in class AbstractSingleElementParser<Ratio<N,D>>

getNumeratorValue

protected abstract N getNumeratorValue(Element element,
                                       String type,
                                       ParseContext context,
                                       XmlToModelResult xmlToModelResult)

getDenominatorValue

protected abstract D getDenominatorValue(Element element,
                                         String type,
                                         ParseContext context,
                                         XmlToModelResult xmlToModelResult)

doCreateDataTypeInstance

protected BareANY doCreateDataTypeInstance(String typeName)
Specified by:
doCreateDataTypeInstance in class AbstractSingleElementParser<Ratio<N,D>>


Copyright © 2013. All Rights Reserved.