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