org.apache.jackrabbit.webdav.lock
Class Type

java.lang.Object
  extended byorg.apache.jackrabbit.webdav.lock.Type

public class Type
extends Object

The Type class encapsulates the lock type as defined by RFC 2518.


Field Summary
static Type WRITE
           
 
Method Summary
static Type create(org.jdom.Element lockType)
          Create a Type object from the given Xml element.
static Type create(String name, org.jdom.Namespace namespace)
          Create a Type object from the given name and namespace.
 boolean equals(Object obj)
          Returns true if this Type is equal to the given one.
 org.jdom.Element toXml()
          Returns the Xml representation of this lock Type.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WRITE

public static final Type WRITE
Method Detail

toXml

public org.jdom.Element toXml()
Returns the Xml representation of this lock Type.

Returns:
Xml representation

create

public static Type create(org.jdom.Element lockType)
Create a Type object from the given Xml element.

Parameters:
lockType -
Returns:
Type object.

create

public static Type create(String name,
                          org.jdom.Namespace namespace)
Create a Type object from the given name and namespace.

Parameters:
name -
namespace -
Returns:
Type object.

equals

public boolean equals(Object obj)
Returns true if this Type is equal to the given one.

Parameters:
obj -
Returns:


Copyright © 2005 . All Rights Reserved.