Class Scope
- java.lang.Object
-
- org.apache.jackrabbit.webdav.lock.Scope
-
- All Implemented Interfaces:
XmlSerializable
public class Scope extends Object implements XmlSerializable
TheScope
class abstracts the lock scope as defined by RFC 2518.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Scope
create(String localName, Namespace namespace)
Create aScope
object from the given name and namespace.static Scope
createFromXml(Element lockScope)
Create aScope
object from the given Xml element.boolean
equals(Object obj)
int
hashCode()
Element
toXml(Document document)
Return the Xml representation of the lock scope object as present in the LOCK request and response body and in theLockDiscovery
.
-
-
-
Method Detail
-
toXml
public Element toXml(Document document)
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:
XmlSerializable.toXml(Document)
-
createFromXml
public static Scope createFromXml(Element lockScope)
Create aScope
object from the given Xml element.- Parameters:
lockScope
-- Returns:
- Scope object.
-
-