public enum ReturnAttributes extends 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 String[] |
value
underlying value.
|
Modifier and Type | Method and Description |
---|---|
String[] |
add(String... attrs)
Combines the supplied attributes with the value of this return attributes.
|
boolean |
equalsAttributes(String... attrs)
Returns whether the supplied attributes matches the value of this return attributes.
|
static String[] |
parse(String... attrs)
Parses the supplied return attributes and applies the following convention:
null ==
DEFAULT
|
String[] |
value()
Returns the value(s).
|
static ReturnAttributes |
valueOf(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
private final String[] value
public static ReturnAttributes[] values()
for (ReturnAttributes c : ReturnAttributes.values()) System.out.println(c);
public static ReturnAttributes 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[] value()
public boolean equalsAttributes(String... attrs)
attrs
- to comparepublic String[] add(String... attrs)
attrs
- to combineCopyright © 2003-2019 Virginia Tech. All Rights Reserved.