ca.infoway.messagebuilder.marshalling.hl7.formatter
Class RealCoordPropertyFormatter

Package class diagram package RealCoordPropertyFormatter
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<BigDecimal>
                  extended by ca.infoway.messagebuilder.marshalling.hl7.formatter.RealCoordPropertyFormatter
All Implemented Interfaces:
PropertyFormatter

public class RealCoordPropertyFormatter
extends AbstractValueNullFlavorPropertyFormatter<BigDecimal>

REAL.COORD - BigDecimal Represents a REAL.COORD object as an element: <element-name value="4321.1234"></element-name> If an object is null, value is replaced by a nullFlavor. So the element would look like this: <element-name nullFlavor="something" /> http://www.hl7.org/v3ballot/html/infrastructure/itsxml/datatypes-its-xml.htm#dtimpl-REAL The REAL.COORD variant defined by CHI can only values with maximum length 4 characters to the left of the decimal point and 4 characters to the right.


Field Summary
 
Fields inherited from class ca.infoway.messagebuilder.marshalling.hl7.formatter.AbstractAttributePropertyFormatter
EMPTY_STRING
 
Constructor Summary
RealCoordPropertyFormatter()
           
 
Method Summary
protected  String getValue(BigDecimal bigDecimal, FormatContext context, BareANY bareAny)
           
 
Methods inherited from class ca.infoway.messagebuilder.marshalling.hl7.formatter.AbstractValueNullFlavorPropertyFormatter
addOtherAttributesIfNecessary
 
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

RealCoordPropertyFormatter

public RealCoordPropertyFormatter()
Method Detail

getValue

protected String getValue(BigDecimal bigDecimal,
                          FormatContext context,
                          BareANY bareAny)
Specified by:
getValue in class AbstractValueNullFlavorPropertyFormatter<BigDecimal>


Copyright © 2013. All Rights Reserved.