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

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

public class StringFilterAttributesModifier
extends AttributesModifier

A subclass of AttributesModifier that uses an IStringFilter to modify the value of an XML tag attribute. Works with ProgrammableSAXFilter.

XML Configuration Template:
    <AttributesModifier class="com.raritantechnologies.xml.sax.filter.attributeMods.StringFilterAttributesModifier"
                           attrName="[ attribute name ]" >
       <StringFilter class="[ class of com.raritantechnologies.utils.filter.IStringFilter ]" >

       </StringFilter>

       <Comparator class="[ class of com.raritantechnologies.utils.comparators.IComparator ]" >

       </Comparator>

    </AttributesModifier>
 

Developed by Raritan Technologies Inc..

Author:
Ted Sullivan

Constructor Summary
StringFilterAttributesModifier()
           
 
Method Summary
protected  org.xml.sax.helpers.AttributesImpl _modifyAttributes(org.xml.sax.helpers.AttributesImpl source)
           
 java.lang.String getAttribute()
           
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
 void setAttribute(java.lang.String localName)
           
 
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

StringFilterAttributesModifier

public StringFilterAttributesModifier()
Method Detail

setAttribute

public void setAttribute(java.lang.String localName)

getAttribute

public java.lang.String getAttribute()

_modifyAttributes

protected org.xml.sax.helpers.AttributesImpl _modifyAttributes(org.xml.sax.helpers.AttributesImpl source)
Specified by:
_modifyAttributes in class AttributesModifier

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.