ca.infoway.messagebuilder.marshalling.hl7.formatter
Class RealConfPropertyFormatter
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<BigDecimal>
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RealConfPropertyFormatter
public RealConfPropertyFormatter()
getValue
protected String getValue(BigDecimal bigDecimal,
FormatContext context,
BareANY bareAny)
- Specified by:
getValue
in class AbstractValueNullFlavorPropertyFormatter<BigDecimal>
Copyright © 2013. All Rights Reserved.