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

java.lang.Object
  extended by org.abstracthorizon.danube.webdav.xml.dav.request.AbstractSimpleXMLHandler
      extended by org.abstracthorizon.danube.webdav.xml.dav.request.LockScope
All Implemented Interfaces:
XMLParserHandler

public class LockScope
extends AbstractSimpleXMLHandler

This class models WebDAV's lockscope tag

Author:
Daniel Sendula

Field Summary
protected  boolean exclusive
          Is exclusive scope or shared
 
Fields inherited from class org.abstracthorizon.danube.webdav.xml.dav.request.AbstractSimpleXMLHandler
parent
 
Constructor Summary
LockScope(XMLParserHandler parent)
          Constructor
 
Method Summary
 Object end(Object current, String tag, String value)
          Returns parent object and does nothing else
 int getScope()
          Returns scope
 Object start(Object current, String tag, Attributes attributes)
          Returns current object and does nothing else
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

exclusive

protected boolean exclusive
Is exclusive scope or shared

Constructor Detail

LockScope

public LockScope(XMLParserHandler parent)
Constructor

Parameters:
parent - parent parser handler
Method Detail

start

public Object start(Object current,
                    String tag,
                    Attributes attributes)
             throws SAXException
Description copied from class: AbstractSimpleXMLHandler
Returns current object and does nothing else

Specified by:
start in interface XMLParserHandler
Overrides:
start in class AbstractSimpleXMLHandler
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
Description copied from class: AbstractSimpleXMLHandler
Returns parent object and does nothing else

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

getScope

public int getScope()
Returns scope

Returns:
scope
See Also:
LockingMechanism.SCOPE_EXCLUSIVE, LockingMechanism.SCOPE_SHARED

toString

public String toString()
Overrides:
toString in class Object


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