com.raritech.xml.sax.filter
Class AttributeIncrementer
java.lang.Object
|
+--com.raritech.xml.sax.filter.AttributesModifier
|
+--com.raritech.xml.sax.filter.AttributeIncrementer
- public class AttributeIncrementer
- extends AttributesModifier
A subclass of AttributesModifier that enables an incremented number
to be added to the attribute list of element tags. Used with ProgrammableSAXFilter.
|
Constructor Summary |
AttributeIncrementer(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
java.lang.String type,
int initNumber)
|
AttributeIncrementer(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
java.lang.String type,
int initNumber,
AttributesModifier next)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
- Overrides:
_modifyAttributes in class AttributesModifier