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

Class GiftRegistryListElementTagHandler

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


    public class GiftRegistryListElementTagHandler
    extends java.lang.Object
    implements NodeHandler
    The handler handles the node that represents an element in a collection. For example, GiftRegistryVO#getRegistrants() returns a collection of registrants. Then, the "Registrant" tag below will be handled by this handler, as it indicates an element in the registrants. collection:
      <Registrants>
                    <Registrant>
                            
                    </Registrant>
            </Pregistrants>
     
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      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 value object that is corresponding to an XML tag, and then adds the created object into its parent object.
      • 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
    • Constructor Detail

      • GiftRegistryListElementTagHandler

        public GiftRegistryListElementTagHandler()
    • 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 value object that is corresponding to an XML tag, and then adds the created object into its parent object.
        Specified by:
        handle in interface NodeHandler
        Parameters:
        parent - the parent of the node to be processed. It has to be a collection.
        currentNode - the currentNode that is to be handled. It has to be a Node
        param - it contains only one parameter: the package that the created object is in.
        Returns:
        the created value object that represents the given currentNode, null if the given node is null.
        Throws:
        java.lang.Exception