com.ibm.rfid.premises.app.entities.supplychain.printing
Class UnifiedFormatXmlGenerator

java.lang.Object
  extended by com.ibm.rfid.premises.app.entities.supplychain.printing.UnifiedFormatXmlGenerator

public class UnifiedFormatXmlGenerator
extends java.lang.Object

This utility generator class is used to generate the correct header for IBM WebSphere Sensor Events Unified Message Format XML Strings.


Method Summary
static org.w3c.dom.NodeList getNodeListFromString(java.lang.String xml, java.lang.String elementName)
          Gets the node list for a particular element from a given XML string
static java.lang.String getStringFromElement(org.w3c.dom.Element e)
          Gets the string from the specifed XML string
static java.lang.String getUnifiedFormatXmlString(AbstractXmlObject o)
          This returns the AbstractXmlObject o in XML format surrounded by a proper IBM Premises Unified Format header.
static java.lang.String removeUnifiedFormatXmlString(java.lang.String xml, java.lang.String element)
          Removes the unified format XML string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getUnifiedFormatXmlString

public static java.lang.String getUnifiedFormatXmlString(AbstractXmlObject o)
This returns the AbstractXmlObject o in XML format surrounded by a proper IBM Premises Unified Format header.

Parameters:
o -
Returns:
xml formatted String of object with IBM WebSphere Sensor Events unified format header

removeUnifiedFormatXmlString

public static java.lang.String removeUnifiedFormatXmlString(java.lang.String xml,
                                                            java.lang.String element)
Removes the unified format XML string

Parameters:
xml -
element -
Returns:
XML formatted string with unified headers removed

getNodeListFromString

public static org.w3c.dom.NodeList getNodeListFromString(java.lang.String xml,
                                                         java.lang.String elementName)
                                                  throws java.lang.Exception
Gets the node list for a particular element from a given XML string

Parameters:
xml -
elementName -
Returns:
node list
Throws:
java.lang.Exception

getStringFromElement

public static java.lang.String getStringFromElement(org.w3c.dom.Element e)
Gets the string from the specifed XML string

Parameters:
e -
Returns:
the transformed XML string


Copyright © 2005 - 2009 IBM Corp. All Rights Reserved.