Class WriteProcessingCallbackParams


  • public class WriteProcessingCallbackParams
    extends java.lang.Object
    callback params class scaffolding arbitrary parameters supplied to callback and providing access API, The parameters sample: <ul> <li><Param name="foo" x="a" y="b"/></li> <li><Param name="foo" z="x" d="y"/></li> <li><Param name="bindingItem" id="bcdUpdateBy" value="expression" isCoalesce="true"/></li> <li><Param name="bindingItem" id="bcdUpdateStamp" value="expression" isCoalesce="false"/></li> </ul> the parameter api is a list of parameter-maps in the order they are defined. The parameters however, are not ordered. The definition above would result in a list of maps: 1st map: name=foo, x=a, y=b 2nd map: name=foo, z=x, d=y 3rd map: name=bindingItem, id=bcdUpdateBy, value=expression, isCoalesce=true etc. This class may be extended with convenience API for parameter retrieval, i.e. by param/name
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.util.Map<java.lang.String,​java.lang.String>> getParamList()  
      <T> T getValue​(java.util.Map<java.lang.String,​T> map, java.lang.String key, T defaultValue)
      retrieves map value with defaultValue
      static WriteProcessingCallbackParams parse​(org.w3c.dom.Node callbackNode)
      convenience factory method which parses the Callback node as defined by bindings.xsd
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WriteProcessingCallbackParams

        protected WriteProcessingCallbackParams()
    • Method Detail

      • parse

        public static WriteProcessingCallbackParams parse​(org.w3c.dom.Node callbackNode)
                                                   throws javax.xml.xpath.XPathExpressionException
        convenience factory method which parses the Callback node as defined by bindings.xsd
        Parameters:
        callbackNode -
        Returns:
        Throws:
        javax.xml.xpath.XPathExpressionException
      • getParamList

        public java.util.List<java.util.Map<java.lang.String,​java.lang.String>> getParamList()
      • getValue

        public <T> T getValue​(java.util.Map<java.lang.String,​T> map,
                              java.lang.String key,
                              T defaultValue)
        retrieves map value with defaultValue
        Parameters:
        map -
        key -
        defaultValue -
        Returns: