org.progeeks.util.xml
Class SimpleXmlReader.SimpleTagReader

java.lang.Object
  extended by org.progeeks.util.xml.TagReader
      extended by org.progeeks.util.xml.SimpleXmlReader.SimpleTagReader
Enclosing class:
SimpleXmlReader

protected class SimpleXmlReader.SimpleTagReader
extends TagReader

Handler that will dynamically deal with all of the different tags.


Constructor Summary
protected SimpleXmlReader.SimpleTagReader()
           
 
Method Summary
 boolean isIgnoreAttributes()
          Return a flag whether to ignore XML attributes.
 void setIgnoreAttributes(boolean ignoreAttributes)
          Set the flag to ignore XML attributes
 void tagEnd(java.lang.String tag, java.lang.String text, java.lang.Object parent, java.lang.Object tagObject)
          Performs any operations necessary to close a tag.
 java.lang.Object tagStart(java.lang.String tag, org.xml.sax.Attributes atts, java.lang.Object current)
          Called at the beginning of a tag so that the initial tag object can be created.
 
Methods inherited from class org.progeeks.util.xml.TagReader
tagText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleXmlReader.SimpleTagReader

protected SimpleXmlReader.SimpleTagReader()
Method Detail

tagStart

public java.lang.Object tagStart(java.lang.String tag,
                                 org.xml.sax.Attributes atts,
                                 java.lang.Object current)
                          throws XmlException
Description copied from class: TagReader
Called at the beginning of a tag so that the initial tag object can be created. The default implementation returns the tag name string for debugging.

Overrides:
tagStart in class TagReader
Parameters:
tag - The name of the processed tag.
atts - The attribute list for the tag.
current - The object within which this tag is nested.
Throws:
XmlException

tagEnd

public void tagEnd(java.lang.String tag,
                   java.lang.String text,
                   java.lang.Object parent,
                   java.lang.Object tagObject)
            throws XmlException
Description copied from class: TagReader
Performs any operations necessary to close a tag.

Overrides:
tagEnd in class TagReader
Parameters:
tag - The name of the processed tag.
text - The text accumulated in the tag body.
parent - The object within which this tag is nested.
tagObject - The object created in the tagStart method.
Throws:
XmlException

isIgnoreAttributes

public boolean isIgnoreAttributes()
Return a flag whether to ignore XML attributes.


setIgnoreAttributes

public void setIgnoreAttributes(boolean ignoreAttributes)
Set the flag to ignore XML attributes



Copyright © 2002-2003 Paul Speed. All Rights Reserved.