|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xml.sax.HandlerBase | +--com.lowagie.text.xml.TagMap.AttributeHandler
Field Summary | |
static String |
ALIAS
This is an attribute |
static String |
ATTRIBUTE
This is a tag |
static String |
CONTENT
This is an attribute |
private XmlPeer |
currentPeer
This is the current peer. |
static String |
NAME
This is an attribute |
static String |
TAG
This is a tag |
private HashMap |
tagMap
This is the tagmap using the AttributeHandler |
static String |
VALUE
This is an attribute |
Constructor Summary | |
TagMap.AttributeHandler(HashMap tagMap)
Constructs a new SAXiTextHandler that will translate all the events triggered by the parser to actions on the Document -object. |
Method Summary | |
void |
characters(char[] ch,
int start,
int length)
This method gets called when characters are encountered. |
void |
endElement(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(String tag,
org.xml.sax.AttributeList attrs)
This method gets called when a start tag is encountered. |
Methods inherited from class org.xml.sax.HandlerBase |
endDocument, error, fatalError, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, startDocument, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String TAG
public static final String ATTRIBUTE
public static final String NAME
public static final String ALIAS
public static final String VALUE
public static final String CONTENT
private HashMap tagMap
private XmlPeer currentPeer
Constructor Detail |
public TagMap.AttributeHandler(HashMap tagMap)
Document
-object.
tagMap
- A Hashmap containing XmlPeer-objectsMethod Detail |
public void startElement(String tag, org.xml.sax.AttributeList attrs)
startElement
in interface org.xml.sax.DocumentHandler
startElement
in class org.xml.sax.HandlerBase
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.DocumentHandler
ignorableWhitespace
in class org.xml.sax.HandlerBase
ch
- 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.DocumentHandler
characters
in class org.xml.sax.HandlerBase
ch
- an array of charactersstart
- the start position in the arraylength
- the number of characters to read from the arraypublic void endElement(String tag)
endElement
in interface org.xml.sax.DocumentHandler
endElement
in class org.xml.sax.HandlerBase
tag
- the name of the tag that ends
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |