Class Type

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

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

    • WRITE

      public static final Type WRITE
  • Method Details

    • toXml

      public Element toXml(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:
    • hashCode

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

      public boolean equals(Object obj)
      Returns true if this Type is equal to the given one.
      Overrides:
      equals in class Object
      Parameters:
      obj -
      Returns:
    • createFromXml

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

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