|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.xml.sax.filter.callbacks.TagTextCallbackOperation
Callback operation that uses a TagTextExtractor
to extract XML text from a tag and pass that text to a target object via the callback method.
<CallbackOperation class="com.raritantechnologies.xml.sax.filter.callbacks.TagTextCallbackOperation"
includeChildText="true|false" >
<ParamName>[ callback parameter value for two parameter methods ]</ParamName>
<!-- Comparator determines which XML Tags to select for text extraction -->
<Comparator class="[ class of ElementComparator ]" >
</Comparator>
</CallbackOperation>
| Field Summary |
| Fields inherited from interface com.raritantechnologies.xml.sax.filter.callbacks.ICallbackOperation |
MAP, TAGXML, TEXT |
| Constructor Summary | |
TagTextCallbackOperation()
|
|
TagTextCallbackOperation(ElementComparator comp,
boolean includeChildText)
|
|
TagTextCallbackOperation(java.lang.String paramName,
ElementComparator comp,
boolean includeChildText)
|
|
| Method Summary | |
ElementComparator |
getElementComparator()
|
java.lang.String |
getLastCallbackPath()
|
java.lang.String |
getParameterName()
|
java.lang.String |
getType()
|
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 |
setParameterName(java.lang.String paramName)
the parameter name of the callback method (if any ) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TagTextCallbackOperation()
public TagTextCallbackOperation(ElementComparator comp,
boolean includeChildText)
public TagTextCallbackOperation(java.lang.String paramName,
ElementComparator comp,
boolean includeChildText)
| Method Detail |
public void initialize(org.w3c.dom.Element compElem)
IConfigurable
initialize in interface ICallbackOperationpublic void setParameterName(java.lang.String paramName)
setParameterName in interface ICallbackOperationpublic java.lang.String getParameterName()
getParameterName in interface ICallbackOperationpublic ElementComparator getElementComparator()
public void setCallback(ProgrammableSAXFilter psf,
java.lang.Object targetObject,
java.lang.String methodName)
ICallbackOperation
setCallback in interface ICallbackOperationpublic java.lang.String getType()
getType in interface ICallbackOperationpublic java.lang.String getLastCallbackPath()
getLastCallbackPath in interface ICallbackOperationpublic void setIsMultiple(boolean isMultiple)
ICallbackOperation
setIsMultiple in interface ICallbackOperationpublic boolean isMultiple()
isMultiple in interface ICallbackOperationpublic void setIsUnique(boolean isUnique)
ICallbackOperation
setIsUnique in interface ICallbackOperationpublic boolean isUnique()
isUnique in interface ICallbackOperation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||