public static enum UserCommand.UserOptions extends Enum<UserCommand.UserOptions>
Enum Constant and Description |
---|
DELETE |
DELETE_ALL |
DELETE_BY_ATTRIBUTE |
DETAILS |
HELP |
LIST |
READ_BY_KEY |
READ_BY_USERNAME |
SEARCH_BY_ATTRIBUTE |
SEARCH_BY_RESOURCE |
SEARCH_BY_ROLE |
Modifier and Type | Method and Description |
---|---|
boolean |
equalsOptionName(String otherName) |
static UserCommand.UserOptions |
fromName(String name) |
String |
getOptionName() |
static List<String> |
toList() |
static UserCommand.UserOptions |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UserCommand.UserOptions[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UserCommand.UserOptions HELP
public static final UserCommand.UserOptions DETAILS
public static final UserCommand.UserOptions LIST
public static final UserCommand.UserOptions READ_BY_KEY
public static final UserCommand.UserOptions READ_BY_USERNAME
public static final UserCommand.UserOptions SEARCH_BY_ATTRIBUTE
public static final UserCommand.UserOptions SEARCH_BY_ROLE
public static final UserCommand.UserOptions SEARCH_BY_RESOURCE
public static final UserCommand.UserOptions DELETE
public static final UserCommand.UserOptions DELETE_ALL
public static final UserCommand.UserOptions DELETE_BY_ATTRIBUTE
public static UserCommand.UserOptions[] values()
for (UserCommand.UserOptions c : UserCommand.UserOptions.values()) System.out.println(c);
public static UserCommand.UserOptions valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getOptionName()
public boolean equalsOptionName(String otherName)
public static UserCommand.UserOptions fromName(String name)
Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.