ca.infoway.messagebuilder.marshalling.hl7.formatter
Class AbstractValueNullFlavorPropertyFormatter<V>
java.lang.Object
ca.infoway.messagebuilder.marshalling.hl7.formatter.AbstractPropertyFormatter
ca.infoway.messagebuilder.marshalling.hl7.formatter.AbstractNullFlavorPropertyFormatter<V>
ca.infoway.messagebuilder.marshalling.hl7.formatter.AbstractAttributePropertyFormatter<V>
ca.infoway.messagebuilder.marshalling.hl7.formatter.AbstractValueNullFlavorPropertyFormatter<V>
- All Implemented Interfaces:
- PropertyFormatter
- Direct Known Subclasses:
- RealConfPropertyFormatter, RealCoordPropertyFormatter, TelPhonemailPropertyFormatter, TelUriPropertyFormatter, TsFullDatePropertyFormatter, TsFullDateTimePropertyFormatter
public abstract class AbstractValueNullFlavorPropertyFormatter<V>
- extends AbstractAttributePropertyFormatter<V>
Formats some nullable object into element:
<element-name value="value" />
If an object is null, value is replaced by a nullFlavor. So the element would look
like this:
<element-name nullFlavor="something" />
This class uses the "no information" null flavor for nulls it gets.
http://www.hl7.org/v3ballot/html/infrastructure/itsxml/datatypes-its-xml.htm#dtimpl-CS
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractValueNullFlavorPropertyFormatter
public AbstractValueNullFlavorPropertyFormatter()
getValue
protected abstract String getValue(V v,
FormatContext context,
BareANY bareAny)
addOtherAttributesIfNecessary
protected void addOtherAttributesIfNecessary(V v,
Map<String,String> attributes,
FormatContext context,
BareANY bareAny)
Copyright © 2013. All Rights Reserved.