Class Type

  • All Implemented Interfaces:
    XmlSerializable

    public class Type
    extends java.lang.Object
    implements XmlSerializable
    The Type class encapsulates the lock type as defined by RFC 2518.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Type WRITE  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static Type create​(java.lang.String localName, Namespace namespace)
      Create a Type object from the given localName and namespace.
      static Type createFromXml​(org.w3c.dom.Element lockType)
      Create a Type object from the given Xml element.
      boolean equals​(java.lang.Object obj)
      Returns true if this Type is equal to the given one.
      int hashCode()  
      org.w3c.dom.Element toXml​(org.w3c.dom.Document document)
      Returns the Xml representation of this lock Type.
      • Methods inherited from class java.lang.Object

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

      • WRITE

        public static final Type WRITE
    • Method Detail

      • toXml

        public org.w3c.dom.Element toXml​(org.w3c.dom.Document document)
        Returns the Xml representation of this lock Type.
        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)
        Returns true if this Type is equal to the given one.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj -
        Returns:
      • createFromXml

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

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