com.raritantechnologies.xml.sax.filter.callbacks
Class TagContentCallbackOperation

java.lang.Object
  extended bycom.raritantechnologies.xml.sax.filter.callbacks.TagContentCallbackOperation
All Implemented Interfaces:
ICallbackOperation, IConfigurable

public class TagContentCallbackOperation
extends java.lang.Object
implements ICallbackOperation

Sets up a callback operation for a TagContentObjectPropertySetter. Works with ProgrammableSAXFilter. Sets the target objects property equal to the XML fragment rooted by the element name given.

XML Configuration Template:
  <CallbackOperation class="com.raritantechnologies.xml.sax.filter.callbacks.TagContentCallbackOperation"
                        includeChildText="true|false" >

    <ParamName>[ callback parameter value for two parameter methods ]</ParamName>

    <ElementName>[ name of XML element to get content from ]</ElementName>

  </CallbackOperation>
 

Developed by Raritan Technologies Inc..

Author:
Ted Sullivan

Field Summary
 
Fields inherited from interface com.raritantechnologies.xml.sax.filter.callbacks.ICallbackOperation
MAP, TAGXML, TEXT
 
Constructor Summary
TagContentCallbackOperation()
           
TagContentCallbackOperation(java.lang.String elementName, boolean isPathName)
           
TagContentCallbackOperation(java.lang.String paramName, java.lang.String elementName, boolean isPathName)
           
TagContentCallbackOperation(java.lang.String paramName, java.lang.String elementName, boolean isPathName, boolean wrapCData)
           
 
Method Summary
 java.lang.String getElementName()
           
 java.lang.String getLastCallbackPath()
           
 java.lang.String getParameterName()
           
 java.lang.String getParamName()
           
 java.lang.String getType()
           
 java.lang.String getUri()
           
 void initialize(org.w3c.dom.Element compElem)
          Initializes the object from an XML tag or element.
 boolean isMultiple()
           
 boolean isUnique()
           
 void setCallback(ProgrammableSAXFilter psf, java.lang.Object targetObject, java.lang.String methodName)
          Sets up the callback from the ProgrammableSAXFilter to the targetObject.
 void setIsMultiple(boolean isMultiple)
          Determines whether the callback can occur more than once.
 void setIsUnique(boolean isUnique)
          Determines whether new values should appendTo or set the target value.
 void setNamespaceSchema(java.lang.String namespaceSchema)
           
 void setParameterName(java.lang.String paramName)
          the parameter name of the callback method (if any )
 void setWrapCData(boolean wrapCData)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagContentCallbackOperation

public TagContentCallbackOperation()

TagContentCallbackOperation

public TagContentCallbackOperation(java.lang.String elementName,
                                   boolean isPathName)

TagContentCallbackOperation

public TagContentCallbackOperation(java.lang.String paramName,
                                   java.lang.String elementName,
                                   boolean isPathName)

TagContentCallbackOperation

public TagContentCallbackOperation(java.lang.String paramName,
                                   java.lang.String elementName,
                                   boolean isPathName,
                                   boolean wrapCData)
Method Detail

initialize

public void initialize(org.w3c.dom.Element compElem)
Description copied from interface: IConfigurable
Initializes the object from an XML tag or element. This method is called by the Framework as part of the application initializtion. see ConfigurationManager, XMLConfigurationManager, XMLSearchFieldMapFactory, XMLSearchSourceFactory. Configurable objects that are owned or contained by other configurable objects will be initialized in by the parent object.

Specified by:
initialize in interface ICallbackOperation

setParameterName

public void setParameterName(java.lang.String paramName)
the parameter name of the callback method (if any )

Specified by:
setParameterName in interface ICallbackOperation

getParameterName

public java.lang.String getParameterName()
Specified by:
getParameterName in interface ICallbackOperation

getParamName

public java.lang.String getParamName()

getUri

public java.lang.String getUri()

getElementName

public java.lang.String getElementName()

setWrapCData

public void setWrapCData(boolean wrapCData)

setNamespaceSchema

public void setNamespaceSchema(java.lang.String namespaceSchema)

setCallback

public void setCallback(ProgrammableSAXFilter psf,
                        java.lang.Object targetObject,
                        java.lang.String methodName)
Description copied from interface: ICallbackOperation
Sets up the callback from the ProgrammableSAXFilter to the targetObject.

Specified by:
setCallback in interface ICallbackOperation

getType

public java.lang.String getType()
Specified by:
getType in interface ICallbackOperation

getLastCallbackPath

public java.lang.String getLastCallbackPath()
Specified by:
getLastCallbackPath in interface ICallbackOperation

setIsMultiple

public void setIsMultiple(boolean isMultiple)
Description copied from interface: ICallbackOperation
Determines whether the callback can occur more than once.

Specified by:
setIsMultiple in interface ICallbackOperation

isMultiple

public boolean isMultiple()
Specified by:
isMultiple in interface ICallbackOperation

setIsUnique

public void setIsUnique(boolean isUnique)
Description copied from interface: ICallbackOperation
Determines whether new values should appendTo or set the target value.

Specified by:
setIsUnique in interface ICallbackOperation

isUnique

public boolean isUnique()
Specified by:
isUnique in interface ICallbackOperation