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 Scope
Create aScope
object from the given name and namespace.static Scope
createFromXml
(Element lockScope) Create aScope
object from the given Xml element.boolean
int
hashCode()
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:
toXml
in interfaceXmlSerializable
- Parameters:
document
- to be used as factory.- Returns:
- Xml representation
- See Also:
-
hashCode
public int hashCode() -
equals
-
createFromXml
Create aScope
object from the given Xml element.- Parameters:
lockScope
-- Returns:
- Scope object.
-
create
Create aScope
object from the given name and namespace.- Parameters:
localName
-namespace
-- Returns:
- Scope object.
-