|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface OptionValue
DOCSIS option value. A DOCSIS option value represents a DOCSIS option that is part of a DOCSIS configuration. There are two kinds of option values: well-defined option values and custom option values.
Well-defined option values are associated with a specific option description. That option description provides the necessary encoding and validation methods for constructing and validating the option value. CSRC provides option descriptions for all options in the DOCSIS 1.0 and DOCSIS 1.1 specifications, as well as option descriptions for a portion of Cisco vendor-specific options.
Custom option values are not associated with an option description. Custom option values are instead associated with a specific option syntax (e.g., hex, ascii, ipaddress). Custom options (with the allowable option syntax) can be added to a CSRC DOCSIS configuration without revising the CSRC option description database.
Option values are composite objects: they can represent single option values (e.g., option 3) or they can represent a hiearchy of sub-option values (e.g., option 4, 4.1, 4.2, etc). To build up a sub-option value hierarchy first create an option value instance for the top level option (e.g., 4) and then use the add() method to add the sub-options (e.g., 4.1, 4.2, etc) to the top level option. The getTLV() method takes care of constructing the top level option TLV from the sub-option TLV's.
Option values are created by calling the OptionManager singleton createOptionValue() methods rather than use the new operator.
OptionDesc,
OptionSyntax| Method Summary | |
|---|---|
void |
add(OptionValue optionValue)
Add sub-option option value. |
int |
getMajorOptionNum()
Get the major option number value. |
OptionDesc |
getOptionDesc()
Get the option description associated with this option value. |
int |
getOptionNum()
Get the option number value. |
String |
getOptionNumString()
Get the fully qualified option number. |
TLV |
getTLV()
Get the binary encoding for this option value. |
boolean |
isCompound()
Determines if this option value is a compound option value. |
boolean |
isTopLevel()
Determine whether this option is a top level option. |
void |
setOptionInstCount(int count)
Set the instance count on a multivalue option |
| Method Detail |
|---|
void add(OptionValue optionValue)
optionValue - sub-option value to add
IllegalArgumentExceptionString getOptionNumString()
int getMajorOptionNum()
int getOptionNum()
TLV getTLV()
throws InvalidTLVException
InvalidTLVExceptionOptionDesc getOptionDesc()
boolean isCompound()
boolean isTopLevel()
void setOptionInstCount(int count)
count - set instance count to.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||