com.raritantechnologies.xml.sax.filter.attributeMods
Class AttributeIncrementer
java.lang.Object
com.raritantechnologies.xml.sax.filter.AttributesModifier
com.raritantechnologies.xml.sax.filter.attributeMods.AttributeIncrementer
- All Implemented Interfaces:
- IConfigurable
- public class AttributeIncrementer
- extends AttributesModifier
A subclass of AttributesModifier that enables an incremented number
to be added to the attribute list of element tags.
Works with ProgrammableSAXFilter.
XML Configuration Template:
<AttributesModifier class="com.raritantechnologies.xml.sax.filter.attributeMods.AttributeIncrementer"
uri="[ uri of attribute ]"
localName="[ localName of attribute ]"
qName="[ qName of attribute ]"
type="[ type of attribute ]"
startingNumber="[ start number for incrementer ]" />
Developed by
Raritan Technologies Inc..
- Author:
- Ted Sullivan
|
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 |
setStartingNumber(int initNumber)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttributeIncrementer
public AttributeIncrementer()
AttributeIncrementer
public AttributeIncrementer(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
java.lang.String type,
int initNumber)
- Parameters:
uri - The uri namespace of the attribute (if any).localName - The localName of the attribute.qName - The fully qualified name of the attribute( namespace:localName ).type - The attribute type. (usually "CDATA")initNumber - The number to use for the first tag to be numbered.
AttributeIncrementer
public AttributeIncrementer(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
java.lang.String type,
int initNumber,
AttributesModifier next)
- Parameters:
uri - The uri namespace of the attribute (if any).localName - The localName of the attribute.qName - The fully qualified name of the attribute( namespace:localName ).type - The attribute type. (usually "CDATA")initNumber - The number to use for the first tag to be numbered.next - The next AttributesModifier in the linked list.
setStartingNumber
public void setStartingNumber(int initNumber)
_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.