|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cisco.provisioning.cpe.extensions.configuration.CNROptionArgumentArray
public final class CNROptionArgumentArray
This class encapsulates the argument array (DEX_ARG_ARRAY) used in the
DEXv2 API exposed by the CNR extension points. It is to be used in
DHCPCmds to identify the exact option to operate on.
| Constructor Summary | |
|---|---|
CNROptionArgumentArray()
No-arg constructor required by Encodable |
|
CNROptionArgumentArray(Object... objects)
Constructs a new CNROptionArgumentArray from the variable arguments. |
|
| Method Summary | |
|---|---|
void |
decode(ByteArrayInputStream in,
com.cisco.csrc.encode.DataDecoder decoder)
Decodes object's data and sets object's variables. |
void |
encode(ByteArrayOutputStream out,
com.cisco.csrc.encode.DataEncoder encoder)
Encodes object's data. |
boolean |
equals(Object object)
Indicates whether some other object is "equal to" this one. |
int |
hashCode()
Returns the hash code for this object. |
String |
toString()
Return a string containing the contents of this object in human-readable form. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CNROptionArgumentArray()
public CNROptionArgumentArray(Object... objects)
Constructs a new CNROptionArgumentArray from the variable arguments.
The format for the arguments must be a CNROptionArgumentType followed by an appropriate value.
For example:
...
final CNROptionArgumentArray arg = new CNROptionArgumentArray(
CNROptionArgumentType.OPTION_NUMBER, 82,
CNROptionArgumentType.SUBOPTION_NAME, "9",
CNROptionArgumentType.ENTERPRISE_ID, 4491,
CNROptionArgumentType.SUBOPTION_NUMBER, 1,
CNROptionArgumentType.SUBOPTION_NUMBER, 1,
CNROptionArgumentType.END);
...
objects - - the variable arguments in the appropriate format.| Method Detail |
|---|
public int hashCode()
hashCode in class Objectpublic boolean equals(Object object)
equals in class Objectobject - the object to compare
public String toString()
toString in class Object
public void encode(ByteArrayOutputStream out,
com.cisco.csrc.encode.DataEncoder encoder)
encode in interface com.cisco.csrc.encode.Encodableout - the output stream to write toencoder - the encoder to use
public void decode(ByteArrayInputStream in,
com.cisco.csrc.encode.DataDecoder decoder)
decode in interface com.cisco.csrc.encode.Encodablein - the input stream to write todecoder - the decoder to use
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||