|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.xml.sax.filter.callbacks.AttributeCallbackOperation
Sets up an Callback operation which captures the value of an XML tag Attribute.
Works with ProgrammableSAXFilter. Can
include an optional IStringFilter to do string manipulations on attribute values
before invoking the callback method.
<CallbackOperation class="com.raritantechnologies.xml.sax.filter.callbacks.AttributeCallbackOperation"
includeChildText="true|false" >
<AttributeName>[ name of attribute to extract ]</AttributeName>
<ParamName>[ callback parameter value for two parameter methods ]</ParamName>
<Comparator class="[ class of ElementComparator ]" >
</Comparator>
<!-- Optional String filter to modify value of attribute before invoking callback method -->
<StringFilter class="[ class of com.raritantechnologies.utils.filter.IStringFilter ]" >
</StringFilter>
</CallbackOperation>
| Field Summary |
| Fields inherited from interface com.raritantechnologies.xml.sax.filter.callbacks.ICallbackOperation |
MAP, TAGXML, TEXT |
| Constructor Summary | |
AttributeCallbackOperation()
|
|
AttributeCallbackOperation(java.lang.String paramName,
ElementComparator comp,
java.lang.String attrName)
|
|
| Method Summary | |
java.lang.String |
getAttributeName()
|
ElementComparator |
getElementComparator()
|
java.lang.String |
getLastCallbackPath()
|
java.lang.String |
getParameterName()
|
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)
Connects the callback operation to a ProgrammableSAXFilter and a target object |
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AttributeCallbackOperation()
public AttributeCallbackOperation(java.lang.String paramName,
ElementComparator comp,
java.lang.String attrName)
| 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 java.lang.String getUri()
public java.lang.String getAttributeName()
public void setCallback(ProgrammableSAXFilter psf,
java.lang.Object targetObject,
java.lang.String methodName)
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 | |||||||||