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 StringThis is an attributeprivate static final StringThis is a tagprivate static final StringThis is an attributeprivate XmlPeerThis is the current peer.private static final StringThis is an attributeprivate static final StringThis is a tagprivate final HashMapThis is the tagmap using the AttributeHandlerprivate static final StringThis is an attribute -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateAttributeHandler(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 TypeMethodDescriptionvoidcharacters(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.Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
startElementin interfaceContentHandler- Overrides:
startElementin 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:
ignorableWhitespacein interfaceContentHandler- Overrides:
ignorableWhitespacein 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:
charactersin interfaceContentHandler- Overrides:
charactersin 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:
endElementin interfaceContentHandler- Overrides:
endElementin 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
-