class TagMap.AttributeHandler
extends org.xml.sax.helpers.DefaultHandler
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ALIAS
This is an attribute
|
static java.lang.String |
ATTRIBUTE
This is a tag
|
static java.lang.String |
CONTENT
This is an attribute
|
private XmlPeer |
currentPeer
This is the current peer.
|
static java.lang.String |
NAME
This is an attribute
|
static java.lang.String |
TAG
This is a tag
|
private java.util.HashMap |
tagMap
This is the tagmap using the AttributeHandler
|
static java.lang.String |
VALUE
This is an attribute
|
| Constructor and Description |
|---|
AttributeHandler(java.util.HashMap tagMap)
Constructs a new SAXiTextHandler that will translate all the events
triggered by the parser to actions on the
Document-object. |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length)
This method gets called when characters are encountered.
|
void |
endElement(java.lang.String uri,
java.lang.String lname,
java.lang.String tag)
This method gets called when an end tag is encountered.
|
void |
ignorableWhitespace(char[] ch,
int start,
int length)
This method gets called when ignorable white space encountered.
|
void |
startElement(java.lang.String uri,
java.lang.String lname,
java.lang.String tag,
org.xml.sax.Attributes attrs)
This method gets called when a start tag is encountered.
|
public static final java.lang.String TAG
public static final java.lang.String ATTRIBUTE
public static final java.lang.String NAME
public static final java.lang.String ALIAS
public static final java.lang.String VALUE
public static final java.lang.String CONTENT
private java.util.HashMap tagMap
private XmlPeer currentPeer
public AttributeHandler(java.util.HashMap tagMap)
Document-object.tagMap - A Hashmap containing XmlPeer-objectspublic void startElement(java.lang.String uri,
java.lang.String lname,
java.lang.String tag,
org.xml.sax.Attributes attrs)
startElement in interface org.xml.sax.ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandleruri - the Uniform Resource Identifierlname - the local name (without prefix), or the empty string if Namespace processing is not being performed.tag - the name of the tag that is encounteredattrs - the list of attributespublic void ignorableWhitespace(char[] ch,
int start,
int length)
ignorableWhitespace in interface org.xml.sax.ContentHandlerignorableWhitespace in class org.xml.sax.helpers.DefaultHandlerch - an array of charactersstart - the start position in the arraylength - the number of characters to read from the arraypublic void characters(char[] ch,
int start,
int length)
characters in interface org.xml.sax.ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerch - an array of charactersstart - the start position in the arraylength - the number of characters to read from the arraypublic void endElement(java.lang.String uri,
java.lang.String lname,
java.lang.String tag)
endElement in interface org.xml.sax.ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandleruri - the Uniform Resource Identifierlname - the local name (without prefix), or the empty string if Namespace processing is not being performed.tag - the name of the tag that ends