com.ibm.commerce.order.history

Class OrderXMLUtil

  • java.lang.Object
    • com.ibm.commerce.order.history.OrderXMLUtil


  • public class OrderXMLUtil
    extends java.lang.Object
    Order XML Utility class.
    • Constructor Summary

      Constructors 
      Constructor and Description
      OrderXMLUtil() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static org.w3c.dom.Node getChildElementByName(org.w3c.dom.Node node, java.lang.String name)
      This method returns a child element of current node.
      static java.lang.String getChildElementValue(org.w3c.dom.Element thisNode, java.lang.String childName)
      This method helps to find the string value of a Child XML element.
      static java.lang.String getChildElementValue(org.w3c.dom.Node thisNode, java.lang.String childName)
      This method returns the value of the child element identified by childName parameter.
      static java.lang.String getChildValue(org.w3c.dom.Element element, java.lang.String tagName)
      This method gets the element value.
      static org.w3c.dom.Document getDocument(java.lang.String xmlStr)
      This method builds the XML string to a document tree.
      static java.lang.String getElementValue(org.w3c.dom.Node node)
      This method returns the value of the current element.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM Copyright
        See Also:
        Constant Field Values
      • XML_TAG_WC_ORDER

        public static final java.lang.String XML_TAG_WC_ORDER
        XML root tag WC_ORDER
        See Also:
        Constant Field Values
      • XML_TAG_WC_ORDER_ITEMS

        public static final java.lang.String XML_TAG_WC_ORDER_ITEMS
        XML child tag of WC_ORDER - WC_ORDER_ITEMS
        See Also:
        Constant Field Values
      • XML_TAG_WC_ORDER_ITEM

        public static final java.lang.String XML_TAG_WC_ORDER_ITEM
        XML child tag of WC_ORDER_ITEMS - WC_ORDER_ITEM
        See Also:
        Constant Field Values
      • XML_TAG_WC_PAYMENTINFOS

        public static final java.lang.String XML_TAG_WC_PAYMENTINFOS
        XML child tag of WC_ORDER - WC_PAYMENTINFOS
        See Also:
        Constant Field Values
      • XML_TAG_WC_PAYMENTINFO

        public static final java.lang.String XML_TAG_WC_PAYMENTINFO
        XML child tag of wc:PaymentInfos - WC_PAYMENTINFO
        See Also:
        Constant Field Values
      • XML_TAG_WC_SHIPINFOS

        public static final java.lang.String XML_TAG_WC_SHIPINFOS
        XML child tag of WC_ORDER - WC_SHIPINFOS
        See Also:
        Constant Field Values
      • XML_TAG_WC_SHIPINFO

        public static final java.lang.String XML_TAG_WC_SHIPINFO
        XML child tag of WC_SHIPINFOS - WC_SHIPINFO
        See Also:
        Constant Field Values
      • XML_TAG_WC_CALADJUSTMETNTS

        public static final java.lang.String XML_TAG_WC_CALADJUSTMETNTS
        XML child tag of WC_ORDER - WC_CALADJUSTMETNTS
        See Also:
        Constant Field Values
      • XML_TAG_WC_CALADJUSTMETNT

        public static final java.lang.String XML_TAG_WC_CALADJUSTMETNT
        XML child tag of WC_CALADJUSTMETNTS - WC_CALADJUSTMETNT
        See Also:
        Constant Field Values
      • XML_TAG_WC_ORDERBLOCKS

        public static final java.lang.String XML_TAG_WC_ORDERBLOCKS
        XML child tag of WC_ORDER - WC_ORDERBLOCKS
        See Also:
        Constant Field Values
      • XML_TAG_WC_ORDERBLOCK

        public static final java.lang.String XML_TAG_WC_ORDERBLOCK
        XML child tag of WC_CALADJUSTMETNTS - WC_ORDERBLOCK
        See Also:
        Constant Field Values
      • XML_TAG_WC_CUSTOMIZABLE_ELEMENT

        public static final java.lang.String XML_TAG_WC_CUSTOMIZABLE_ELEMENT
        XML child tag of WC_ORDER - WC_CUSTOMIZABLE_ELEMENT
        See Also:
        Constant Field Values
      • XML_TAG_WC_OICOMPONENTLIST

        public static final java.lang.String XML_TAG_WC_OICOMPONENTLIST
        XML child tag of WC_ORDER_ITEM - WC_OICOMPONENTLIST
        See Also:
        Constant Field Values
      • XML_TAG_WC_OICOMPONENT

        public static final java.lang.String XML_TAG_WC_OICOMPONENT
        XML child tag of WC_OICOMPONENTLISTS - WC_OICOMPONENT
        See Also:
        Constant Field Values
      • XML_ENCODING

        public static final java.lang.String XML_ENCODING
        XML encoding
        See Also:
        Constant Field Values
      • XML_VERSION

        public static final java.lang.String XML_VERSION
        XML Version number
        See Also:
        Constant Field Values
      • XML_HEADER

        public static final java.lang.String XML_HEADER
        XML header field.
        See Also:
        Constant Field Values
      • XML_TAG_START

        public static final java.lang.String XML_TAG_START
        XML element start tag flag.
        See Also:
        Constant Field Values
      • XML_TAG_END_LEFT_PART

        public static final java.lang.String XML_TAG_END_LEFT_PART
        XML element end tag flag left part.
        See Also:
        Constant Field Values
      • XML_TAG_END

        public static final java.lang.String XML_TAG_END
        XML element end tag flag.
        See Also:
        Constant Field Values
    • Constructor Detail

      • OrderXMLUtil

        public OrderXMLUtil()
    • Method Detail

      • getChildValue

        public static java.lang.String getChildValue(org.w3c.dom.Element element,
                                                     java.lang.String tagName)
        This method gets the element value.
        Parameters:
        element - the parent element
        tagName - the tagName under the element.
        Returns:
        the value the element presents.
      • getDocument

        public static org.w3c.dom.Document getDocument(java.lang.String xmlStr)
        This method builds the XML string to a document tree.
        Parameters:
        xmlStr - the XML string to be parsed.
        Returns:
        the document tree represents the XML passed in.
      • getChildElementValue

        public static java.lang.String getChildElementValue(org.w3c.dom.Element thisNode,
                                                            java.lang.String childName)
        This method helps to find the string value of a Child XML element.
        Parameters:
        thisNode - Node the parent node.
        childName - String the name of the child element.
        Returns:
        the value of that child element.
      • getChildElementByName

        public static org.w3c.dom.Node getChildElementByName(org.w3c.dom.Node node,
                                                             java.lang.String name)
        This method returns a child element of current node.
        Parameters:
        node - current node.
        name - name of the child element.
        Returns:
        child element.
      • getChildElementValue

        public static java.lang.String getChildElementValue(org.w3c.dom.Node thisNode,
                                                            java.lang.String childName)
        This method returns the value of the child element identified by childName parameter.
        Parameters:
        thisNode - the current XML node.
        childName - the name of the child element.
        Returns:
        the value of the child element.
      • getElementValue

        public static java.lang.String getElementValue(org.w3c.dom.Node node)
        This method returns the value of the current element.
        Parameters:
        node - the current element.
        Returns:
        the value of the node.