com.lowagie.text.xml

Class TagMap.AttributeHandler

class TagMap.AttributeHandler extends DefaultHandler

Field Summary
static StringALIAS
This is an attribute
static StringATTRIBUTE
This is a tag
XmlPeercurrentPeer
This is the current peer.
static StringCONTENT
This is an attribute
static StringNAME
This is an attribute
HashMaptagMap
This is the tagmap using the AttributeHandler
static StringTAG
This is a tag
static StringVALUE
This is an attribute
Constructor Summary
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
voidcharacters(char[] ch, int start, int length)
This method gets called when characters are encountered.
voidendElement(String uri, String lname, String tag)
This method gets called when an end tag is encountered.
voidignorableWhitespace(char[] ch, int start, int length)
This method gets called when ignorable white space encountered.
voidstartElement(String uri, String lname, String tag, Attributes attrs)
This method gets called when a start tag is encountered.

Field Detail

ALIAS

public static final String ALIAS
This is an attribute

ATTRIBUTE

public static final String ATTRIBUTE
This is a tag

currentPeer

private XmlPeer currentPeer
This is the current peer.

CONTENT

public static final String CONTENT
This is an attribute

NAME

public static final String NAME
This is an attribute

tagMap

private HashMap tagMap
This is the tagmap using the AttributeHandler

TAG

public static final String TAG
This is a tag

VALUE

public static final String VALUE
This is an attribute

Constructor Detail

AttributeHandler

public AttributeHandler(HashMap tagMap)
Constructs a new SAXiTextHandler that will translate all the events triggered by the parser to actions on the Document-object.

Parameters: tagMap A Hashmap containing XmlPeer-objects

Method Detail

characters

public void characters(char[] ch, int start, int length)
This method gets called when characters are encountered.

Parameters: ch an array of characters start the start position in the array length the number of characters to read from the array

endElement

public void endElement(String uri, String lname, String tag)
This method gets called when an end tag is encountered.

Parameters: uri the Uniform Resource Identifier lname the local name (without prefix), or the empty string if Namespace processing is not being performed. tag the name of the tag that ends

ignorableWhitespace

public void ignorableWhitespace(char[] ch, int start, int length)
This method gets called when ignorable white space encountered.

Parameters: ch an array of characters start the start position in the array length the number of characters to read from the array

startElement

public void startElement(String uri, String lname, String tag, Attributes attrs)
This method gets called when a start tag is encountered.

Parameters: uri the Uniform Resource Identifier lname the local name (without prefix), or the empty string if Namespace processing is not being performed. tag the name of the tag that is encountered attrs the list of attributes