Class Scope
- java.lang.Object
-
- org.apache.jackrabbit.webdav.lock.Scope
-
- All Implemented Interfaces:
XmlSerializable
public class Scope extends java.lang.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(java.lang.String localName, Namespace namespace)
Create aScope
object from the given name and namespace.static Scope
createFromXml(org.w3c.dom.Element lockScope)
Create aScope
object from the given Xml element.boolean
equals(java.lang.Object obj)
int
hashCode()
org.w3c.dom.Element
toXml(org.w3c.dom.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 org.w3c.dom.Element toXml(org.w3c.dom.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)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
createFromXml
public static Scope createFromXml(org.w3c.dom.Element lockScope)
Create aScope
object from the given Xml element.- Parameters:
lockScope
-- Returns:
- Scope object.
-
-