ca.infoway.messagebuilder.simple.xml.parser
Class AbstractSimpleXmlParser<T extends ANY<V>,V>
java.lang.Object
ca.infoway.messagebuilder.simple.xml.parser.AbstractSimpleXmlParser<T,V>
- All Implemented Interfaces:
- SimpleXmlParser<T>
- Direct Known Subclasses:
- BooleanXmlParser, BoundedPeriodicIntervalOfTimeXmlParser, ConceptDescriptorXmlParser, DateIntervalXmlParser, DateUncertainRangeXmlParser, DateXmlParser, EncapsulatedDataDocumentXmlParser, EncapsulatedDataSignatureXmlParser, IdentifierXmlParser, IntegerXmlParser, MoneyXmlParser, PeriodicIntervalOfTimeXmlParser, PersonNameXmlParser, PhysicalQuantityIntervalXmlParser, PhysicalQuantityUncertainRangeXmlParser, PhysicalQuantityXmlParser, PostalAddressXmlParser, RatioDrugQuantityPerTimeXmlParser, RatioMoneyPerUnitXmlParser, RealXmlParser, SimpleCodedTypeXmlParser, StringXmlParser, TelecomAddressXmlParser, TrivialNameXmlParser
public abstract class AbstractSimpleXmlParser<T extends ANY<V>,V>
- extends Object
- implements SimpleXmlParser<T>
Method Summary |
protected abstract boolean |
closeStartElement(T dataTypeInstance)
|
protected abstract void |
doRenderNonNullValue(StringBuilder builder,
SimpleXmlParseContext context,
StandardDataType dataType,
V value)
|
protected void |
doRenderNonNullValue(StringBuilder builder,
SimpleXmlParseContext context,
T dataTypeInstance)
|
String |
parse(SimpleXmlParseContext context,
T dataTypeInstance)
|
protected void |
renderNullFlavorIfNecessary(StringBuilder builder,
SimpleXmlParseContext context,
ANY<?> dataType)
|
protected void |
renderValue(StringBuilder builder,
SimpleXmlParseContext context,
T dataTypeInstance)
|
protected Map<String,String> |
toNameValuePairs(StandardDataType dataType,
V value,
SimpleXmlParseContext context)
|
protected Map<String,String> |
toNameValuePairs(T dataTypeValue,
SimpleXmlParseContext context)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractSimpleXmlParser
protected AbstractSimpleXmlParser()
parse
public String parse(SimpleXmlParseContext context,
T dataTypeInstance)
throws ParserException
- Specified by:
parse
in interface SimpleXmlParser<T extends ANY<V>>
- Throws:
ParserException
closeStartElement
protected abstract boolean closeStartElement(T dataTypeInstance)
doRenderNonNullValue
protected abstract void doRenderNonNullValue(StringBuilder builder,
SimpleXmlParseContext context,
StandardDataType dataType,
V value)
throws ParserException
- Throws:
ParserException
renderValue
protected void renderValue(StringBuilder builder,
SimpleXmlParseContext context,
T dataTypeInstance)
throws ParserException
- Throws:
ParserException
toNameValuePairs
protected Map<String,String> toNameValuePairs(T dataTypeValue,
SimpleXmlParseContext context)
doRenderNonNullValue
protected void doRenderNonNullValue(StringBuilder builder,
SimpleXmlParseContext context,
T dataTypeInstance)
throws ParserException
- Throws:
ParserException
toNameValuePairs
protected Map<String,String> toNameValuePairs(StandardDataType dataType,
V value,
SimpleXmlParseContext context)
renderNullFlavorIfNecessary
protected void renderNullFlavorIfNecessary(StringBuilder builder,
SimpleXmlParseContext context,
ANY<?> dataType)
Copyright © 2013. All Rights Reserved.