org.progeeks.util.xml
Class ObjectXmlReader.ObjectTagReader

java.lang.Object
  extended by org.progeeks.util.xml.TagReader
      extended by org.progeeks.util.xml.ObjectXmlReader.ObjectTagReader
Enclosing class:
ObjectXmlReader

protected class ObjectXmlReader.ObjectTagReader
extends TagReader

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


Constructor Summary
protected ObjectXmlReader.ObjectTagReader()
           
 
Method Summary
protected  java.lang.Object processConfigDirective(org.xml.sax.Attributes atts)
           
protected  java.lang.Object processExistingValueDirective(org.xml.sax.Attributes atts, java.lang.Object current)
           
protected  java.lang.Object processField(java.lang.String tag, org.xml.sax.Attributes atts, java.lang.Object current)
           
protected  java.lang.Object processPreloadDirective(org.xml.sax.Attributes atts)
           
protected  java.lang.Object processReferenceDirective(org.xml.sax.Attributes atts)
           
protected  java.lang.Object processValue(java.lang.String tag, org.xml.sax.Attributes atts, java.lang.Object current)
          Creates a new bean
 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

ObjectXmlReader.ObjectTagReader

protected ObjectXmlReader.ObjectTagReader()
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

processConfigDirective

protected java.lang.Object processConfigDirective(org.xml.sax.Attributes atts)

processPreloadDirective

protected java.lang.Object processPreloadDirective(org.xml.sax.Attributes atts)

processField

protected java.lang.Object processField(java.lang.String tag,
                                        org.xml.sax.Attributes atts,
                                        java.lang.Object current)

processReferenceDirective

protected java.lang.Object processReferenceDirective(org.xml.sax.Attributes atts)

processExistingValueDirective

protected java.lang.Object processExistingValueDirective(org.xml.sax.Attributes atts,
                                                         java.lang.Object current)

processValue

protected java.lang.Object processValue(java.lang.String tag,
                                        org.xml.sax.Attributes atts,
                                        java.lang.Object current)
Creates a new bean

Parameters:
tag -
atts -
current -

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


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