com.ibm.portal.resolver.webdav.tree
Enum WebdavLockableTreeModel.SupportedLockType

java.lang.Object
  extended by java.lang.Enum<WebdavLockableTreeModel.SupportedLockType>
      extended by com.ibm.portal.resolver.webdav.tree.WebdavLockableTreeModel.SupportedLockType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<WebdavLockableTreeModel.SupportedLockType>
Enclosing interface:
WebdavLockableTreeModel<T>

public static enum WebdavLockableTreeModel.SupportedLockType
extends java.lang.Enum<WebdavLockableTreeModel.SupportedLockType>

Enumeration about the supported locks for a particular item


Enum Constant Summary
EXCLUSIVE
          the item only supports exclusive locking, refer to http://www.webdav.org/specs/rfc2518.html#rfc.section.6.1 for a description of the semantic
EXCLUSIVE_SHARED
          the item only supports both shared and exclusive locking, refer to http://www.webdav.org/specs/rfc2518.html#rfc.section.6.1 for a description of the semantic
NONE
          no lock is supported for an item
SHARED
          the item only supports shared locking, refer to http://www.webdav.org/specs/rfc2518.html#rfc.section.6.1 for a description of the semantic
 
Method Summary
static WebdavLockableTreeModel.SupportedLockType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static WebdavLockableTreeModel.SupportedLockType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NONE

public static final WebdavLockableTreeModel.SupportedLockType NONE
no lock is supported for an item


EXCLUSIVE

public static final WebdavLockableTreeModel.SupportedLockType EXCLUSIVE
the item only supports exclusive locking, refer to http://www.webdav.org/specs/rfc2518.html#rfc.section.6.1 for a description of the semantic


SHARED

public static final WebdavLockableTreeModel.SupportedLockType SHARED
the item only supports shared locking, refer to http://www.webdav.org/specs/rfc2518.html#rfc.section.6.1 for a description of the semantic


EXCLUSIVE_SHARED

public static final WebdavLockableTreeModel.SupportedLockType EXCLUSIVE_SHARED
the item only supports both shared and exclusive locking, refer to http://www.webdav.org/specs/rfc2518.html#rfc.section.6.1 for a description of the semantic

Method Detail

values

public static WebdavLockableTreeModel.SupportedLockType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (WebdavLockableTreeModel.SupportedLockType c : WebdavLockableTreeModel.SupportedLockType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static WebdavLockableTreeModel.SupportedLockType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null