org.apache.directory.shared.ldap.schema
Class UsageEnum

java.lang.Object
  extended byorg.apache.directory.shared.ldap.util.Enum
      extended byorg.apache.directory.shared.ldap.util.ValuedEnum
          extended byorg.apache.directory.shared.ldap.schema.UsageEnum
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

public class UsageEnum
extends ValuedEnum

Type safe enum for an AttributeType definition's usage string. This can be take one of the following four values:

Version:
$Rev: 379008 $
Author:
Apache Directory Project
See Also:
Serialized Form

Field Summary
static UsageEnum DIRECTORYOPERATION
          enum for attributes with directoryOperation usage
static int DIRECTORYOPERATION_VAL
          value for attributes with directoryOperation usage
static UsageEnum DISTRIBUTEDOPERATION
          enum for attributes with distributedOperation usage
static int DISTRIBUTEDOPERATION_VAL
          value for attributes with distributedOperation usage
static UsageEnum DSAOPERATION
          enum for attributes with dSAOperation usage
static int DSAOPERATION_VAL
          value for attributes with dSAOperation usage
static UsageEnum USERAPPLICATIONS
          enum for attributes with userApplications usage
static int USERAPPLICATIONS_VAL
          value for attributes with userApplications usage
 
Fields inherited from class org.apache.directory.shared.ldap.util.Enum
iToString
 
Method Summary
static UsageEnum getUsage(java.lang.String usage)
          Gets the enumeration type for the attributeType usage string regardless of case.
static java.util.List list()
          Gets a List of the enumerations for attributeType usage.
static java.util.Map map()
          Gets the Map of UsageEnum objects by name using the UsageEnum class.
 
Methods inherited from class org.apache.directory.shared.ldap.util.ValuedEnum
compareTo, getEnum, getValue, toString
 
Methods inherited from class org.apache.directory.shared.ldap.util.Enum
equals, getEnum, getEnumClass, getEnumList, getEnumMap, getName, hashCode, iterator, readResolve
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

USERAPPLICATIONS_VAL

public static final int USERAPPLICATIONS_VAL
value for attributes with userApplications usage

See Also:
Constant Field Values

DIRECTORYOPERATION_VAL

public static final int DIRECTORYOPERATION_VAL
value for attributes with directoryOperation usage

See Also:
Constant Field Values

DISTRIBUTEDOPERATION_VAL

public static final int DISTRIBUTEDOPERATION_VAL
value for attributes with distributedOperation usage

See Also:
Constant Field Values

DSAOPERATION_VAL

public static final int DSAOPERATION_VAL
value for attributes with dSAOperation usage

See Also:
Constant Field Values

USERAPPLICATIONS

public static final UsageEnum USERAPPLICATIONS
enum for attributes with userApplications usage


DIRECTORYOPERATION

public static final UsageEnum DIRECTORYOPERATION
enum for attributes with directoryOperation usage


DISTRIBUTEDOPERATION

public static final UsageEnum DISTRIBUTEDOPERATION
enum for attributes with distributedOperation usage


DSAOPERATION

public static final UsageEnum DSAOPERATION
enum for attributes with dSAOperation usage

Method Detail

getUsage

public static UsageEnum getUsage(java.lang.String usage)
Gets the enumeration type for the attributeType usage string regardless of case.

Parameters:
usage - the usage string
Returns:
the usage enumeration type

list

public static java.util.List list()
Gets a List of the enumerations for attributeType usage.

Returns:
the List of enumerations possible for usage

map

public static java.util.Map map()
Gets the Map of UsageEnum objects by name using the UsageEnum class.

Returns:
the Map by name of UsageEnums


Copyright © 2003-2006 . All Rights Reserved.