public class Scope extends java.lang.Object implements XmlSerializable
Scope
class abstracts the lock scope as defined by RFC 2518.Modifier and Type | Field and Description |
---|---|
static Scope |
EXCLUSIVE |
static Scope |
SHARED |
Modifier and Type | Method and Description |
---|---|
static Scope |
create(java.lang.String localName,
Namespace namespace)
Create a
Scope object from the given name and namespace. |
static Scope |
createFromXml(org.w3c.dom.Element lockScope)
Create a
Scope 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 the
LockDiscovery . |
public org.w3c.dom.Element toXml(org.w3c.dom.Document document)
LockDiscovery
.toXml
in interface XmlSerializable
document
- to be used as factory.XmlSerializable.toXml(Document)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public static Scope createFromXml(org.w3c.dom.Element lockScope)
Scope
object from the given Xml element.lockScope
- "Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"