public class Scope extends 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(String localName,
Namespace namespace)
Create a
Scope object from the given name and namespace. |
static Scope |
createFromXml(Element lockScope)
Create a
Scope 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 the
LockDiscovery. |
public Element toXml(Document document)
LockDiscovery.toXml in interface XmlSerializabledocument - to be used as factory.XmlSerializable.toXml(Document)public static Scope createFromXml(Element lockScope)
Scope object from the given Xml element.lockScope - Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.