Class Scope
java.lang.Object
org.apache.jackrabbit.webdav.lock.Scope
- All Implemented Interfaces:
XmlSerializable
The
Scope class abstracts the lock scope as defined by RFC 2518.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ScopeCreate aScopeobject from the given name and namespace.static ScopecreateFromXml(Element lockScope) Create aScopeobject from the given Xml element.booleaninthashCode()Return the Xml representation of the lock scope object as present in the LOCK request and response body and in theLockDiscovery.
-
Field Details
-
EXCLUSIVE
-
SHARED
-
-
Method Details
-
toXml
Return the Xml representation of the lock scope object as present in the LOCK request and response body and in theLockDiscovery.- Specified by:
toXmlin interfaceXmlSerializable- Parameters:
document- to be used as factory.- Returns:
- Xml representation
- See Also:
-
hashCode
public int hashCode() -
equals
-
createFromXml
Create aScopeobject from the given Xml element.- Parameters:
lockScope-- Returns:
- Scope object.
-
create
Create aScopeobject from the given name and namespace.- Parameters:
localName-namespace-- Returns:
- Scope object.
-