java.lang.Object | +--com.ibm.commerce.tools.segmentation.SegmentXMLConditionConverter
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 |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public SegmentXMLConditionConverter()
Method Detail |
---|
public static java.lang.String convertToXML(Condition condition)
condition
- A condition object.public static java.lang.String convertToExternalXML(java.lang.String xml, java.lang.String path)
xml
- An XML document.path
- The external location for the XML documentpublic static Condition convertToCondition(java.lang.String xml)
xml
- An XML document.public static Condition convertToCondition(java.io.Reader xmlReader)
xmlReader
- An XML document.