|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<CNROptionArgumentType>
com.cisco.provisioning.cpe.extensions.configuration.CNROptionArgumentType
public enum CNROptionArgumentType
This Enum represents the iType constants in the DEXv2 API. These constants
are used in CNROptionArgumentArray instances
to specify an specific option.
| Enum Constant Summary | |
|---|---|
END
Indicates the end of the argument array. |
|
ENTERPRISE_ID
Indicates the next argument is an enterprise identifier (number). |
|
ENTERPRISE_NAME
Indicates the next argument is an enterprise name. |
|
HOME
|
|
INCOUNT
|
|
INDEX
|
|
INSTANCE
|
|
INSTANCE_COUNT
|
|
MORE
|
|
MOVE_TO
|
|
OPTION_NAME
Indicates the next argument is an option name. |
|
OPTION_NUMBER
Indicates the next argument is an option number. |
|
PARENT
|
|
SUBOPTION_NAME
Indicates the next argument is a sub-option name. |
|
SUBOPTION_NUMBER
Indicates the next argument is a sub-option number. |
|
VENDOR_NAME
Indicates the next argument is a vendor name. |
|
| Field Summary | |
|---|---|
static int |
INDEX_APPEND
Special value for the INDEX type when used in
conjunction with the DHCPOper.PUT_OPTION operation. |
static int |
INDEX_AUGMENT
Special value for the INDEX type when used in
conjunction with the DHCPOper.PUT_OPTION operation. |
static int |
INDEX_RAW
Special value for the INDEX type when used in
conjunction with the DHCPOper.PUT_OPTION and the
DHCPOper.GET_OPTION operations. |
static int |
INDEX_REMOVE_ALL
Special value for the INDEX type when used in
conjunction with the DHCPOper.REMOVE_OPTION operation. |
static int |
INDEX_REPLACE
Special value for the INDEX type when used in
conjunction with the DHCPOper.PUT_OPTION operation. |
| Method Summary | |
|---|---|
int |
getConstant()
Returns the DEX constant value of the type. |
boolean |
isValueRequired()
Returns true if this type requires a value. |
boolean |
isValueValid(Object value)
Returns true if the given object is valid for this type. |
String |
toStringOptionValue(Object value)
Return a string containing the CNROptionArgumentType value in human-readable form. |
static CNROptionArgumentType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static CNROptionArgumentType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final CNROptionArgumentType OPTION_NAME
public static final CNROptionArgumentType OPTION_NUMBER
public static final CNROptionArgumentType SUBOPTION_NAME
public static final CNROptionArgumentType SUBOPTION_NUMBER
public static final CNROptionArgumentType VENDOR_NAME
public static final CNROptionArgumentType ENTERPRISE_NAME
public static final CNROptionArgumentType ENTERPRISE_ID
public static final CNROptionArgumentType INSTANCE
public static final CNROptionArgumentType INSTANCE_COUNT
public static final CNROptionArgumentType INDEX
public static final CNROptionArgumentType MORE
public static final CNROptionArgumentType MOVE_TO
public static final CNROptionArgumentType PARENT
public static final CNROptionArgumentType HOME
public static final CNROptionArgumentType INCOUNT
public static final CNROptionArgumentType END
| Field Detail |
|---|
public static final int INDEX_REMOVE_ALL
INDEX type when used in
conjunction with the DHCPOper.REMOVE_OPTION operation.
public static final int INDEX_REPLACE
INDEX type when used in
conjunction with the DHCPOper.PUT_OPTION operation.
public static final int INDEX_APPEND
INDEX type when used in
conjunction with the DHCPOper.PUT_OPTION operation.
public static final int INDEX_AUGMENT
INDEX type when used in
conjunction with the DHCPOper.PUT_OPTION operation.
public static final int INDEX_RAW
INDEX type when used in
conjunction with the DHCPOper.PUT_OPTION and the
DHCPOper.GET_OPTION operations.
| Method Detail |
|---|
public static CNROptionArgumentType[] values()
for (CNROptionArgumentType c : CNROptionArgumentType.values()) System.out.println(c);
public static CNROptionArgumentType valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic boolean isValueRequired()
public int getConstant()
public boolean isValueValid(Object value)
public String toStringOptionValue(Object value)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||