Class Scope

java.lang.Object
org.apache.jackrabbit.webdav.lock.Scope
All Implemented Interfaces:
XmlSerializable

public class Scope extends Object implements XmlSerializable
The Scope class abstracts the lock scope as defined by RFC 2518.
  • Field Details

    • EXCLUSIVE

      public static final Scope EXCLUSIVE
    • SHARED

      public static final Scope SHARED
  • Method Details

    • 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 the LockDiscovery.
      Specified by:
      toXml in interface XmlSerializable
      Parameters:
      document - to be used as factory.
      Returns:
      Xml representation
      See Also:
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • createFromXml

      public static Scope createFromXml(Element lockScope)
      Create a Scope object from the given Xml element.
      Parameters:
      lockScope -
      Returns:
      Scope object.
    • create

      public static Scope create(String localName, Namespace namespace)
      Create a Scope object from the given name and namespace.
      Parameters:
      localName -
      namespace -
      Returns:
      Scope object.