public class GiftRegistryPropertyTagHandler extends java.lang.Object implements NodeHandler
String
, which is an atomic type. Then,
the tag <FirstName> is a property tag.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_NAME
Classname
|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
GiftRegistryPropertyTagHandler() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
handle(java.lang.Object parent,
java.lang.Object currentNode,
java.lang.Object[] params)
Retrieves the value of the property represented by a node, and adds the result into the
given parent object.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASS_NAME
public java.lang.Object handle(java.lang.Object parent, java.lang.Object currentNode, java.lang.Object[] params) throws java.lang.Exception
handle
in interface NodeHandler
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 Element
param
- it contains any number of optional parameters that may be useful. By default,
no parameter is needed.An
- InvalidArgumentException will be thrown if the property value can not be retrieved, or
the retrieved property value can not be added to parentjava.lang.Exception
- if the processing failscom.ibm.commerce.giftregistry.messaging.NodeHandler#handle(java.lang.Object, java.lang.Object, java.lang.Object[])