org.abstracthorizon.danube.webdav.xml.dav.request
Class AbstractSimpleXMLHandler

java.lang.Object
  extended by org.abstracthorizon.danube.webdav.xml.dav.request.AbstractSimpleXMLHandler
All Implemented Interfaces:
XMLParserHandler
Direct Known Subclasses:
DAVAbstractXMLParser, HRef, KeepAlive, LockScope, LockScope, LockType, LockType, Owner, Owner, RequestProperty

public abstract class AbstractSimpleXMLHandler
extends Object
implements XMLParserHandler

Abstract XML handler. This method defines some default actions for XMLParserHandler.start(Object, String, Attributes) and XMLParserHandler.end(Object, String, String) methods

Author:
Daniel Sendula

Field Summary
protected  XMLParserHandler parent
          Parent parser handler
 
Constructor Summary
protected AbstractSimpleXMLHandler()
          Constructor
  AbstractSimpleXMLHandler(XMLParserHandler parent)
          Constructor
 
Method Summary
 Object end(Object current, String tag, String value)
          Returns parent object and does nothing else
 Object start(Object current, String tag, Attributes attributes)
          Returns current object and does nothing else
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

protected XMLParserHandler parent
Parent parser handler

Constructor Detail

AbstractSimpleXMLHandler

protected AbstractSimpleXMLHandler()
Constructor


AbstractSimpleXMLHandler

public AbstractSimpleXMLHandler(XMLParserHandler parent)
Constructor

Parameters:
parent - parent parser handler
Method Detail

start

public Object start(Object current,
                    String tag,
                    Attributes attributes)
             throws SAXException
Returns current object and does nothing else

Specified by:
start in interface XMLParserHandler
Parameters:
current - current object
tag - tag
attributes - attribtues
Returns:
new object
Throws:
SAXException - sax exception

end

public Object end(Object current,
                  String tag,
                  String value)
           throws SAXException
Returns parent object and does nothing else

Specified by:
end in interface XMLParserHandler
Parameters:
current - current object
tag - tag
value - tag value
Returns:
new object
Throws:
SAXException - sax exception


Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.