Package org.opennms.netmgt.snmp.mock
Class MockSnmpValue.IpAddressSnmpValue
- java.lang.Object
-
- org.opennms.netmgt.snmp.AbstractSnmpValue
-
- org.opennms.netmgt.snmp.mock.MockSnmpValue
-
- org.opennms.netmgt.snmp.mock.MockSnmpValue.IpAddressSnmpValue
-
- All Implemented Interfaces:
SnmpValue
- Enclosing class:
- MockSnmpValue
public static class MockSnmpValue.IpAddressSnmpValue extends MockSnmpValue
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opennms.netmgt.snmp.mock.MockSnmpValue
MockSnmpValue.Counter32SnmpValue, MockSnmpValue.Counter64SnmpValue, MockSnmpValue.Gauge32SnmpValue, MockSnmpValue.Integer32SnmpValue, MockSnmpValue.IpAddressSnmpValue, MockSnmpValue.NetworkAddressSnmpValue, MockSnmpValue.NumberSnmpValue, MockSnmpValue.OctetStringSnmpValue, MockSnmpValue.OidSnmpValue, MockSnmpValue.StringSnmpValue, MockSnmpValue.TimeticksSnmpValue
-
-
Field Summary
-
Fields inherited from class org.opennms.netmgt.snmp.mock.MockSnmpValue
END_OF_MIB, NO_SUCH_INSTANCE, NO_SUCH_OBJECT, NULL_VALUE
-
Fields inherited from interface org.opennms.netmgt.snmp.SnmpValue
SNMP_COUNTER32, SNMP_COUNTER64, SNMP_END_OF_MIB, SNMP_GAUGE32, SNMP_INT32, SNMP_IPADDRESS, SNMP_NO_SUCH_INSTANCE, SNMP_NO_SUCH_OBJECT, SNMP_NULL, SNMP_OBJECT_IDENTIFIER, SNMP_OCTET_STRING, SNMP_OPAQUE, SNMP_TIMETICKS
-
-
Constructor Summary
Constructors Constructor Description IpAddressSnmpValue(byte[] bytes)
IpAddressSnmpValue(String value)
IpAddressSnmpValue(InetAddress addr)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
addrStr(byte[] bytes)
byte[]
getBytes()
boolean
isDisplayable()
InetAddress
toInetAddress()
-
Methods inherited from class org.opennms.netmgt.snmp.mock.MockSnmpValue
equals, getType, getValue, hashCode, isEndOfMib, isError, isNull, isNumeric, toBigInteger, toDisplayString, toHexString, toInt, toLong, toSnmpObjId, toString
-
Methods inherited from class org.opennms.netmgt.snmp.AbstractSnmpValue
allBytesDisplayable, allBytesISO_8859_1, allBytesUTF_8
-
-
-
-
Constructor Detail
-
IpAddressSnmpValue
public IpAddressSnmpValue(InetAddress addr)
-
IpAddressSnmpValue
public IpAddressSnmpValue(byte[] bytes)
-
IpAddressSnmpValue
public IpAddressSnmpValue(String value)
-
-
Method Detail
-
addrStr
public static String addrStr(byte[] bytes)
-
toInetAddress
public InetAddress toInetAddress()
- Specified by:
toInetAddress
in interfaceSnmpValue
- Overrides:
toInetAddress
in classMockSnmpValue
-
getBytes
public byte[] getBytes()
- Specified by:
getBytes
in interfaceSnmpValue
- Overrides:
getBytes
in classMockSnmpValue
-
isDisplayable
public boolean isDisplayable()
- Specified by:
isDisplayable
in interfaceSnmpValue
- Overrides:
isDisplayable
in classMockSnmpValue
-
-