public enum ReturnAttributes extends java.lang.Enum<ReturnAttributes>
| Enum Constant and Description |
|---|
ALL
all user and operational attributes.
|
ALL_OPERATIONAL
all operational attributes.
|
ALL_USER
all user attributes.
|
DEFAULT
default, which is all user attributes.
|
NONE
no attributes.
|
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String[] |
value
underlying value.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
add(java.lang.String... attrs)
Combines the supplied attributes with the value of this return attributes.
|
boolean |
equalsAttributes(java.lang.String... attrs)
Returns whether the supplied attributes matches the value of this return attributes.
|
static java.lang.String[] |
parse(java.lang.String... attrs)
Parses the supplied return attributes and applies the following convention:
null ==
DEFAULT
|
java.lang.String[] |
value()
Returns the value(s).
|
static ReturnAttributes |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ReturnAttributes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReturnAttributes ALL
public static final ReturnAttributes ALL_USER
public static final ReturnAttributes ALL_OPERATIONAL
public static final ReturnAttributes NONE
public static final ReturnAttributes DEFAULT
public static ReturnAttributes[] values()
for (ReturnAttributes c : ReturnAttributes.values()) System.out.println(c);
public static ReturnAttributes 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 namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String[] value()
public boolean equalsAttributes(java.lang.String... attrs)
attrs - to comparepublic java.lang.String[] add(java.lang.String... attrs)
attrs - to combinepublic static java.lang.String[] parse(java.lang.String... attrs)
DEFAULTattrs - to parse