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

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

public class TsFullDateTimePropertyFormatter
extends AbstractValueNullFlavorPropertyFormatter<Date>

TS.FULLDATETIME - Timestamp (fully-specified date and time only) and TS.DATETIME (partial date/time) Represents a TS.FULLDATETIME/TS.DATETIME object as an element: <element-name value="yyyyMMddHHmmss"></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-TS


Field Summary
static String DATE_FORMAT_OVERRIDE_BASE_PROPERTY_NAME
           
static String DATE_FORMAT_YYYYMMDDHHMMSS
           
static String DATE_FORMAT_YYYYMMDDHHMMSS_SSSZZZZZ
           
 
Fields inherited from class ca.infoway.messagebuilder.marshalling.hl7.formatter.AbstractAttributePropertyFormatter
EMPTY_STRING
 
Constructor Summary
TsFullDateTimePropertyFormatter()
           
 
Method Summary
protected  String getValue(Date date, 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
 

Field Detail

DATE_FORMAT_OVERRIDE_BASE_PROPERTY_NAME

public static final String DATE_FORMAT_OVERRIDE_BASE_PROPERTY_NAME
See Also:
Constant Field Values

DATE_FORMAT_YYYYMMDDHHMMSS

public static final String DATE_FORMAT_YYYYMMDDHHMMSS
See Also:
Constant Field Values

DATE_FORMAT_YYYYMMDDHHMMSS_SSSZZZZZ

public static final String DATE_FORMAT_YYYYMMDDHHMMSS_SSSZZZZZ
See Also:
Constant Field Values
Constructor Detail

TsFullDateTimePropertyFormatter

public TsFullDateTimePropertyFormatter()
Method Detail

getValue

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


Copyright © 2013. All Rights Reserved.