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:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
- Enclosing class:
TagMap
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
This is an attributeprivate static final String
This is a tagprivate static final String
This is an attributeprivate XmlPeer
This is the current peer.private static final String
This is an attributeprivate static final String
This is a tagprivate final HashMap
This is the tagmap using the AttributeHandlerprivate static final String
This is an attribute -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
AttributeHandler
(HashMap tagMap) Constructs a new SAXiTextHandler that will translate all the events triggered by the parser to actions on theDocument
-object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) This method gets called when characters are encountered.void
endElement
(String uri, String lname, 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 uri, String lname, String tag, Attributes attrs) This method gets called when a start tag is encountered.Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
TAG
This is a tag- See Also:
-
ATTRIBUTE
This is a tag- See Also:
-
NAME
This is an attribute- See Also:
-
ALIAS
This is an attribute- See Also:
-
VALUE
This is an attribute- See Also:
-
CONTENT
This is an attribute- See Also:
-
tagMap
This is the tagmap using the AttributeHandler -
currentPeer
This is the current peer.
-
-
Constructor Details
-
AttributeHandler
Constructs a new SAXiTextHandler that will translate all the events triggered by the parser to actions on theDocument
-object.- Parameters:
tagMap
- A Hashmap containing XmlPeer-objects
-
-
Method Details
-
startElement
This method gets called when a start tag is encountered.- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- 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:
ignorableWhitespace
in interfaceContentHandler
- Overrides:
ignorableWhitespace
in classDefaultHandler
- 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:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
- Parameters:
ch
- an array of charactersstart
- the start position in the arraylength
- the number of characters to read from the array
-
endElement
This method gets called when an end tag is encountered.- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
- 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
-