ca.infoway.messagebuilder.marshalling.hl7.formatter
Class AbstractValueNullFlavorPropertyFormatter<V>

Package class diagram package AbstractValueNullFlavorPropertyFormatter
java.lang.Object
  extended by ca.infoway.messagebuilder.marshalling.hl7.formatter.AbstractPropertyFormatter
      extended by ca.infoway.messagebuilder.marshalling.hl7.formatter.AbstractNullFlavorPropertyFormatter<V>
          extended by ca.infoway.messagebuilder.marshalling.hl7.formatter.AbstractAttributePropertyFormatter<V>
              extended by 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


Field Summary
 
Fields inherited from class ca.infoway.messagebuilder.marshalling.hl7.formatter.AbstractAttributePropertyFormatter
EMPTY_STRING
 
Constructor Summary
AbstractValueNullFlavorPropertyFormatter()
           
 
Method Summary
protected  void addOtherAttributesIfNecessary(V v, Map<String,String> attributes, FormatContext context, BareANY bareAny)
           
protected abstract  String getValue(V v, FormatContext context, BareANY bareAny)
           
 
Methods inherited from class ca.infoway.messagebuilder.marshalling.hl7.formatter.AbstractNullFlavorPropertyFormatter
createMissingMandatoryWarning, createNullFlavorAttributes, extractBareValue, format, isEmptyCollection, isMandatoryOrPopulated, toStringMap
 
Methods inherited from class ca.infoway.messagebuilder.marshalling.hl7.formatter.AbstractPropertyFormatter
addSpecializationType, createElement, createElement, createElementClosure, createSpecializationTypeAttibutesIfNecessary, createWarning, format, isNullFlavor, xmlify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractValueNullFlavorPropertyFormatter

public AbstractValueNullFlavorPropertyFormatter()
Method Detail

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.