com.raritantechnologies.xml.sax.filter.attributeMods
Class AttributesAdder

java.lang.Object
  extended bycom.raritantechnologies.xml.sax.filter.AttributesModifier
      extended bycom.raritantechnologies.xml.sax.filter.attributeMods.AttributesAdder
All Implemented Interfaces:
IConfigurable

public class AttributesAdder
extends AttributesModifier

A subclass of AttributesModifier that adds an attribute to an Attribute list. Works with ProgrammableSAXFilter.

XML Configuration Template:
    <AttributesModifier class="com.raritantechnologies.xml.sax.filter.attributeMods.AttributesAdder"
                           uri="[ uri of attribute ]"
                           localName="[ localName of attribute ]"
                           qName="[ qName of attribute ]"
                           type="[ type of attribute ]"
                           value="[value of attribute ]" />
  

Developed by Raritan Technologies Inc..

Author:
Ted Sullivan

Constructor Summary
AttributesAdder()
           
AttributesAdder(java.lang.String uri, java.lang.String localName, java.lang.String qName, java.lang.String type, java.lang.String value)
           
AttributesAdder(java.lang.String uri, java.lang.String localName, java.lang.String qName, 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 com.raritantechnologies.xml.sax.filter.AttributesModifier
modifyAttributes, modifyAttributes, setNextMod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributesAdder

public AttributesAdder()

AttributesAdder

public AttributesAdder(java.lang.String uri,
                       java.lang.String localName,
                       java.lang.String qName,
                       java.lang.String type,
                       java.lang.String value)

AttributesAdder

public AttributesAdder(java.lang.String uri,
                       java.lang.String localName,
                       java.lang.String qName,
                       java.lang.String type,
                       java.lang.String value,
                       AttributesModifier next)
Method Detail

_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.