Package com.aowagie.text.xml
Class TagMap.AttributeHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- com.aowagie.text.xml.TagMap.AttributeHandler
-
- All Implemented Interfaces:
org.xml.sax.ContentHandler,org.xml.sax.DTDHandler,org.xml.sax.EntityResolver,org.xml.sax.ErrorHandler
- Enclosing class:
- TagMap
private class TagMap.AttributeHandler extends org.xml.sax.helpers.DefaultHandler
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringALIASThis is an attributeprivate static java.lang.StringATTRIBUTEThis is a tagprivate static java.lang.StringCONTENTThis is an attributeprivate XmlPeercurrentPeerThis is the current peer.private static java.lang.StringNAMEThis is an attributeprivate static java.lang.StringTAGThis is a tagprivate java.util.HashMaptagMapThis is the tagmap using the AttributeHandlerprivate static java.lang.StringVALUEThis is an attribute
-
Constructor Summary
Constructors Modifier Constructor Description privateAttributeHandler(java.util.HashMap tagMap)Constructs a new SAXiTextHandler that will translate all the events triggered by the parser to actions on theDocument-object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharacters(char[] ch, int start, int length)This method gets called when characters are encountered.voidendElement(java.lang.String uri, java.lang.String lname, java.lang.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(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.
-
-
-
Field Detail
-
TAG
private static final java.lang.String TAG
This is a tag- See Also:
- Constant Field Values
-
ATTRIBUTE
private static final java.lang.String ATTRIBUTE
This is a tag- See Also:
- Constant Field Values
-
NAME
private static final java.lang.String NAME
This is an attribute- See Also:
- Constant Field Values
-
ALIAS
private static final java.lang.String ALIAS
This is an attribute- See Also:
- Constant Field Values
-
VALUE
private static final java.lang.String VALUE
This is an attribute- See Also:
- Constant Field Values
-
CONTENT
private static final java.lang.String CONTENT
This is an attribute- See Also:
- Constant Field Values
-
tagMap
private final java.util.HashMap tagMap
This is the tagmap using the AttributeHandler
-
currentPeer
private XmlPeer currentPeer
This is the current peer.
-
-
Method Detail
-
startElement
public 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.- Specified by:
startElementin interfaceorg.xml.sax.ContentHandler- Overrides:
startElementin classorg.xml.sax.helpers.DefaultHandler- Parameters:
uri- 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 attributes
-
ignorableWhitespace
public void ignorableWhitespace(char[] ch, int start, int length)This method gets called when ignorable white space encountered.- Specified by:
ignorableWhitespacein interfaceorg.xml.sax.ContentHandler- Overrides:
ignorableWhitespacein classorg.xml.sax.helpers.DefaultHandler- Parameters:
ch- an array of charactersstart- the start position in the arraylength- the number of characters to read from the array
-
characters
public void characters(char[] ch, int start, int length)This method gets called when characters are encountered.- Specified by:
charactersin interfaceorg.xml.sax.ContentHandler- Overrides:
charactersin classorg.xml.sax.helpers.DefaultHandler- Parameters:
ch- an array of charactersstart- the start position in the arraylength- the number of characters to read from the array
-
endElement
public void endElement(java.lang.String uri, java.lang.String lname, java.lang.String tag)This method gets called when an end tag is encountered.- Specified by:
endElementin interfaceorg.xml.sax.ContentHandler- Overrides:
endElementin classorg.xml.sax.helpers.DefaultHandler- Parameters:
uri- 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
-
-