|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DHCPData
The DHCPData encapsulates data extracted from a CNR dictionary by the BAC CNR extension point. The command consists of: dictionary, option name, and option value. The option value can consist of either single value (String or byte[]), or multiple values (String[], byte[][]).
DHCPDict| Method Summary | |
|---|---|
boolean |
equalsOption(DHCPData data)
Determines if another DHCPData object references the same dictionary and option name. |
boolean |
equalsOption(DHCPDict dictionary,
String optionName)
Determines if dictionary/option name data matches this DHCPData object This is support method for simplifying the iteration/comparison of DHCPData objects. |
DHCPDict |
getDictionary()
Return the dictionary to which the command is to be applied. |
String |
getOptionName()
Return the option name. |
Object |
getOptionObject()
Return the option value as an Object. |
String |
getOptionValue()
Return the single-valued option value as a String. |
com.cisco.provisioning.cpe.base.net.dhcp.DhcpOption |
getOptionValueAsDhcpOption()
Return the singled-valued option value as a DhcpOption. |
com.cisco.provisioning.cpe.base.net.dhcp.DhcpOption |
getOptionValueAsDhcpOption(com.cisco.provisioning.cpe.base.net.dhcp.DhcpOptionDefinitionRegistry registry)
Return the singled-valued option value as a DhcpOption. |
byte[] |
getOptionValueBytes()
Return the singled-valued option value as bytes. |
String[] |
getOptionValues()
Return the multi-valued option value. |
byte[][] |
getOptionValuesBytes()
Return the multi-valued option value. |
boolean |
isMultivalued()
Indicate whether the DHCP option is single-valued or multi-valued. |
boolean |
isString()
Indicate whether the DHCP option is a string value (either single or multi-valued), or a binary value. |
String |
toStringOptionValue()
Return a string containing the DHCPData option value in human-readable form. |
String |
toStringOptionValue(com.cisco.provisioning.cpe.base.net.dhcp.DhcpOptionDefinitionRegistry registry)
Return a string containing the DHCPData option value in human-readable form. |
String |
toStringOptionValueRaw()
Return a string containing the DHCPData option value. |
| Methods inherited from interface com.cisco.provisioning.cpe.extensions.services.DiscoveredData |
|---|
getDiscoveredDataType |
| Method Detail |
|---|
DHCPDict getDictionary()
DHCPDictString getOptionName()
Object getOptionObject()
String getOptionValue()
byte[] getOptionValueBytes()
com.cisco.provisioning.cpe.base.net.dhcp.DhcpOption getOptionValueAsDhcpOption()
com.cisco.provisioning.cpe.base.net.dhcp.DhcpOption getOptionValueAsDhcpOption(com.cisco.provisioning.cpe.base.net.dhcp.DhcpOptionDefinitionRegistry registry)
registry - the DHCP Option Registry
String[] getOptionValues()
byte[][] getOptionValuesBytes()
boolean isMultivalued()
boolean isString()
boolean equalsOption(DHCPData data)
data - the DHCPData object to compare
boolean equalsOption(DHCPDict dictionary,
String optionName)
dictionary - to compare for equalityoptionName - to compare for equality
String toStringOptionValue()
String toStringOptionValue(com.cisco.provisioning.cpe.base.net.dhcp.DhcpOptionDefinitionRegistry registry)
registry - the DHCP Option Registry
String toStringOptionValueRaw()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||