Class Scope

  • All Implemented Interfaces:
    XmlSerializable

    public class Scope
    extends java.lang.Object
    implements XmlSerializable
    The Scope 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 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.
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • EXCLUSIVE

        public static final Scope EXCLUSIVE
      • SHARED

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

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • createFromXml

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

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