|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<UsageEnum>
org.apache.directory.shared.ldap.schema.UsageEnum
public enum UsageEnum
Type safe enum for an AttributeType definition's usage string. This can be take one of the following four values:
Enum Constant Summary | |
---|---|
DIRECTORY_OPERATION
value for attributes with directoryOperation usage |
|
DISTRIBUTED_OPERATION
value for attributes with distributedOperation usage |
|
DSA_OPERATION
value for attributes with dSAOperation usage |
|
USER_APPLICATIONS
value for attributes with userApplications usage |
Method Summary | |
---|---|
static UsageEnum |
getUsage(java.lang.String usage)
Gets the enumeration type for the attributeType usage string regardless of case. |
int |
getValue()
|
java.lang.String |
render()
Get the string representation for UsageEnum, which will be used by the AttributeType rendering |
static java.lang.String |
render(UsageEnum usage)
Get the string representation for UsageEnum, which will be used by the AttributeType rendering |
static UsageEnum |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static UsageEnum[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final UsageEnum USER_APPLICATIONS
public static final UsageEnum DIRECTORY_OPERATION
public static final UsageEnum DISTRIBUTED_OPERATION
public static final UsageEnum DSA_OPERATION
Method Detail |
---|
public static final UsageEnum[] values()
for(UsageEnum c : UsageEnum.values()) System.out.println(c);
public static UsageEnum valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namepublic int getValue()
public static UsageEnum getUsage(java.lang.String usage)
usage
- the usage string
public static java.lang.String render(UsageEnum usage)
usage
- The UsageEnum of which we want the rendering string
public java.lang.String render()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |