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
Fields Modifier and Type Field and Description static java.lang.String
COPYRIGHT
Copyright.
-
Constructor Summary
Constructors Constructor and Description SegmentXMLConditionConverter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description 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.
-
-
-
Field Detail
-
COPYRIGHT
public static final java.lang.String COPYRIGHT
Copyright.- See Also:
- Constant Field Values
-
-
Method Detail
-
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.
-
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.
-
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.
-
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.
-
-