com.ibm.commerce.giftregistry.messaging.programadapter.messagemapper

Class GiftRegistryListTagHandler

  • java.lang.Object
    • com.ibm.commerce.giftregistry.messaging.programadapter.messagemapper.GiftRegistryListTagHandler
  • All Implemented Interfaces:
    NodeHandler


    public class GiftRegistryListTagHandler
    extends java.lang.Object
    implements NodeHandler
    The handler handles the node that represents a collection. The node should be a tag, and the name of the tag will be corresponding to a collection. For example, GiftRegistryVO#getRegistrants() returns a collection of registrants. Then, the "Registrants" tag below will be handled by this handler, as it indicates a collection of registrants.
      <GiftRegistryVO>
                    <Registrants>
                            
                    </Registrants>
            </GiftRegistryVO>
     
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String CLASS_NAME
      name of this class
      static java.lang.String COPYRIGHT
      IBM copyright notice field.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Object handle(java.lang.Object parent, java.lang.Object currentNode, java.lang.Object[] params)
      Creates a list object that is corresponding to an XML node.
      • 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 notice field.
        See Also:
        Constant Field Values
      • CLASS_NAME

        public static final java.lang.String CLASS_NAME
        name of this class
    • Constructor Detail

      • GiftRegistryListTagHandler

        public GiftRegistryListTagHandler()
    • Method Detail

      • handle

        public java.lang.Object handle(java.lang.Object parent,
                                       java.lang.Object currentNode,
                                       java.lang.Object[] params)
                                throws java.lang.Exception
        Creates a list object that is corresponding to an XML node.
        Specified by:
        handle in interface NodeHandler
        Parameters:
        parent - the result object from processing the parent node of the given current node
        currentNode - the node to be processed
        params - any parameters needed by the handler
        Returns:
        a list of values corresponding to the given node
        Throws:
        java.lang.Exception - if the processing fails
        See Also:
        com.ibm.commerce.giftregistry.messaging.NodeHandler#handle(java.lang.Object, java.lang.Object, java.lang.Object[])