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

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

public class TelPhonemailPropertyFormatter
extends AbstractValueNullFlavorPropertyFormatter<TelecommunicationAddress>

Represents a TEL.PHONEMAIL String as an element: <element-name use="H WP" value="mailto://me@me.com"></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-TEL The TEL.PHONEMAIL variant defined by CeRx is for personal contact addresses only. The only valid URLSchemes are FAX, MAILTO and TELEPHONE.


Field Summary
 
Fields inherited from class ca.infoway.messagebuilder.marshalling.hl7.formatter.AbstractAttributePropertyFormatter
EMPTY_STRING
 
Constructor Summary
TelPhonemailPropertyFormatter()
           
 
Method Summary
protected  void addOtherAttributesIfNecessary(TelecommunicationAddress phonemail, Map<String,String> attributes, FormatContext context, BareANY bareAny)
           
protected  String getValue(TelecommunicationAddress phonemail, FormatContext context, BareANY bareAny)
           
 
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

TelPhonemailPropertyFormatter

public TelPhonemailPropertyFormatter()
Method Detail

getValue

protected final String getValue(TelecommunicationAddress phonemail,
                                FormatContext context,
                                BareANY bareAny)
Specified by:
getValue in class AbstractValueNullFlavorPropertyFormatter<TelecommunicationAddress>

addOtherAttributesIfNecessary

protected void addOtherAttributesIfNecessary(TelecommunicationAddress phonemail,
                                             Map<String,String> attributes,
                                             FormatContext context,
                                             BareANY bareAny)
Overrides:
addOtherAttributesIfNecessary in class AbstractValueNullFlavorPropertyFormatter<TelecommunicationAddress>


Copyright © 2013. All Rights Reserved.