org.apache.jackrabbit.webdav.lock
Class Scope

java.lang.Object
  extended byorg.apache.jackrabbit.webdav.lock.Scope

public class Scope
extends Object

The Scope class abstracts the lock scope as defined by RFC 2518.


Field Summary
static Scope EXCLUSIVE
           
static Scope SHARED
           
 
Method Summary
static Scope create(org.jdom.Element lockScope)
          Create a Scope object from the given Xml element.
static Scope create(String name, org.jdom.Namespace namespace)
          Create a Scope object from the given name and namespace.
 boolean equals(Object obj)
          Returns true if this Scope is equal to the given one.
 org.jdom.Element toXml()
          Return the Xml representation of the lock scope object as present in the LOCK request and response body and in the LockDiscovery.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXCLUSIVE

public static final Scope EXCLUSIVE

SHARED

public static final Scope SHARED
Method Detail

toXml

public org.jdom.Element toXml()
Return the Xml representation of the lock scope object as present in the LOCK request and response body and in the LockDiscovery.

Returns:
Xml representation

create

public static Scope create(org.jdom.Element lockScope)
Create a Scope object from the given Xml element.

Parameters:
lockScope -
Returns:
Scope object.

create

public static Scope create(String name,
                           org.jdom.Namespace namespace)
Create a Scope object from the given name and namespace.

Parameters:
name -
namespace -
Returns:
Scope object.

equals

public boolean equals(Object obj)
Returns true if this Scope is equal to the given one.

Parameters:
obj -
Returns:


Copyright © 2005 . All Rights Reserved.