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

Package class diagram package RealConfPropertyFormatter
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.RealConfPropertyFormatter
All Implemented Interfaces:
PropertyFormatter

public class RealConfPropertyFormatter
extends AbstractValueNullFlavorPropertyFormatter<BigDecimal>

REAL.CONF - BigDecimal [0,1] Represents a REAL.CONF object as an element: <element-name value="0.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.CONF variant defined by CHI can only contain positive values between 0 to 1 (inclusive). CHI also defines maximum length 1 character 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
RealConfPropertyFormatter()
           
 
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

RealConfPropertyFormatter

public RealConfPropertyFormatter()
Method Detail

getValue

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


Copyright © 2013. All Rights Reserved.