Class Scope
- java.lang.Object
-
- org.apache.jackrabbit.webdav.lock.Scope
-
- All Implemented Interfaces:
XmlSerializable
public class Scope extends Object implements XmlSerializable
TheScopeclass 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 Scopecreate(String localName, Namespace namespace)Create aScopeobject from the given name and namespace.static ScopecreateFromXml(Element lockScope)Create aScopeobject from the given Xml element.booleanequals(Object obj)inthashCode()ElementtoXml(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:
toXmlin interfaceXmlSerializable- Parameters:
document- to be used as factory.- Returns:
- Xml representation
- See Also:
XmlSerializable.toXml(Document)
-
createFromXml
public static Scope createFromXml(Element lockScope)
Create aScopeobject from the given Xml element.- Parameters:
lockScope-- Returns:
- Scope object.
-
-