com.raritantechnologies.xml.sax.filter.attributeMods
Class AttributesAdderDeleter
java.lang.Object
com.raritantechnologies.xml.sax.filter.AttributesModifier
com.raritantechnologies.xml.sax.filter.attributeMods.AttributesAdderDeleter
- All Implemented Interfaces:
- IConfigurable
- public class AttributesAdderDeleter
- extends AttributesModifier
A subclass of AttributesModifier that adds an attribute to
an Attribute list. Used with ProgrammableSAXFilter.
XML Configuration Template:
<AttributesModifier class="com.raritantechnologies.xml.sax.filter.attributeMods.AttributesAdderDeleter"
uri="[ uri of attribute ]"
localName="[ localName of attribute ]"
qName="[ qName of attribute ]"
type="[ type of attribute ]"
value="[value of attribute ]" >
<Comparator class="[ class of com.raritantechnologies.utils.comparators.IComparator ]" >
</Comparator>
</AttributesModifier>
Developed by
Raritan Technologies Inc..
- Author:
- Ted Sullivan
|
Constructor Summary |
AttributesAdderDeleter()
|
AttributesAdderDeleter(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
java.util.Comparator comparator,
java.lang.String type,
java.lang.String value)
|
AttributesAdderDeleter(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
java.util.Comparator comparator,
java.lang.String type,
java.lang.String value,
AttributesModifier next)
|
|
Method Summary |
protected org.xml.sax.helpers.AttributesImpl |
_modifyAttributes(org.xml.sax.helpers.AttributesImpl source)
|
void |
initialize(org.w3c.dom.Element elem)
Initializes the object from an XML tag or element. |
void |
setLocalName(java.lang.String localName)
|
void |
setQName(java.lang.String qName)
|
void |
setType(java.lang.String type)
|
void |
setUri(java.lang.String uri)
|
void |
setValue(java.lang.String value)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttributesAdderDeleter
public AttributesAdderDeleter()
AttributesAdderDeleter
public AttributesAdderDeleter(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
java.util.Comparator comparator,
java.lang.String type,
java.lang.String value)
AttributesAdderDeleter
public AttributesAdderDeleter(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
java.util.Comparator comparator,
java.lang.String type,
java.lang.String value,
AttributesModifier next)
_modifyAttributes
protected org.xml.sax.helpers.AttributesImpl _modifyAttributes(org.xml.sax.helpers.AttributesImpl source)
- Specified by:
_modifyAttributes in class AttributesModifier
setValue
public void setValue(java.lang.String value)
setType
public void setType(java.lang.String type)
setQName
public void setQName(java.lang.String qName)
setLocalName
public void setLocalName(java.lang.String localName)
setUri
public void setUri(java.lang.String uri)
initialize
public void initialize(org.w3c.dom.Element elem)
- 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.