com.ibm.commerce.tools.segmentation
Class SegmentXMLConditionConverter

java.lang.Object
  |
  +--com.ibm.commerce.tools.segmentation.SegmentXMLConditionConverter

public final class SegmentXMLConditionConverter
extends java.lang.Object

This class contains static methods that allow you to convert an instance of the Condition class to and from XML format.


Field Summary
static java.lang.String COPYRIGHT
          Copyright.
 
Constructor Summary
SegmentXMLConditionConverter()
           
 
Method Summary
static Condition convertToCondition(java.io.Reader xmlReader)
          Converts an XML document to a Condition object.
static Condition convertToCondition(java.lang.String xml)
          Converts an XML document to a Condition object.
static java.lang.String convertToExternalXML(java.lang.String xml, java.lang.String path)
          Converts an XML document to an external XML document.
static java.lang.String convertToXML(Condition condition)
          Converts a Condition object to XML format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright.
Constructor Detail

SegmentXMLConditionConverter

public SegmentXMLConditionConverter()
Method Detail

convertToCondition

public static Condition convertToCondition(java.io.Reader xmlReader)
Converts an XML document to a Condition object.
Parameters:
xmlReader - An XML document.
Returns:
A Condition object.

convertToCondition

public static Condition convertToCondition(java.lang.String xml)
Converts an XML document to a Condition object.
Parameters:
xml - An XML document.
Returns:
A Condition object.

convertToExternalXML

public static java.lang.String convertToExternalXML(java.lang.String xml,
                                                    java.lang.String path)
Converts an XML document to an external XML document.
Parameters:
xml - An XML document.
path - The external location for the XML document
Returns:
An XML document that points to the external XML document.

convertToXML

public static java.lang.String convertToXML(Condition condition)
Converts a Condition object to XML format.
Parameters:
condition - A condition object.
Returns:
An XML document.