## Uses of Class
com.h3c.util.snmp.SnmpField

- Packages that use SnmpField
  Package | Description
  --- | ---
  com.h3c.util.snmp |
  com.h3c.util.snmp.command |

- - ### Uses of SnmpField in com.h3c.util.snmp

    Subclasses of SnmpField in com.h3c.util.snmp
    Modifier and Type | Class and Description
    --- | ---
    `class` | `SnmpRequest` SNMP request message.
    `class` | `SnmpResponse` SNMP response message.
    `class` | `SnmpTrapRequest` SNMP trap request message.

    Fields in com.h3c.util.snmp declared as SnmpField
    Modifier and Type | Field and Description
    --- | ---
    `static SnmpField` | SnmpField.`NULL_FIELD`

    Methods in com.h3c.util.snmp that return SnmpField
    Modifier and Type | Method and Description
    --- | ---
    `SnmpField` | VarBinds.`getOid(int i)` Returns the OID at the specified index or null.
    `SnmpField` | SnmpWalkTable.`getOid(int r, int c)` Use this method to access the OID at the specified row and column.
    `SnmpField` | VarBinds.`getVal(int i)` Returns the value at the specified index or null.
    `SnmpField` | SnmpWalkTable.`getVal(int r, int c)` Use this method to access the value at the specified row and column.
    `SnmpField` | VarBinds.`getVB(int i)` Returns the variable binding at the specified index or null.
    `SnmpField` | SnmpField.`set(byte[] v)` Convenience method for OCTET_STR values.
    `SnmpField` | SnmpField.`set(int v)` Convenience method for INTEGER 32-bit values (allows for negatives).
    `SnmpField` | SnmpField.`set(IpAddress val)` Used to set IP_ADDRESS value.
    `SnmpField` | SnmpField.`set(long v)` Convenience method for COUNTER64 values.
    `SnmpField` | SnmpField.`set(SnmpFieldType type, byte[] val)` Used to set a specific type of value.
    `SnmpField` | SnmpField.`set(SnmpFieldType type, long val)` Used to set a specific type of value.
    `SnmpField` | SnmpField.`set(SnmpOid val)` Used to set OID value.
    `SnmpField` | SnmpField.`set(String v)` Convenience method for OCTET_STR values.
    `SnmpField` | SnmpField.`setNull()` Convenience method reseting the field to null.
    `SnmpField` | SnmpField.`setType(SnmpFieldType type)`
    `SnmpField` | SnmpField.`setU32(long v)` Convenience method for COUNTER32 values (converts to positive long).

    Methods in com.h3c.util.snmp with parameters of type SnmpField
    Modifier and Type | Method and Description
    --- | ---
    `void` | VarBinds.`addVB(SnmpOid oid, SnmpField value)` Add VarBind using the passed in object.
    `void` | VarBinds.`addVB(String oid, SnmpField value)` Add VarBind using the passed in object.

  - ### Uses of SnmpField in com.h3c.util.snmp.command

    Methods in com.h3c.util.snmp.command that return SnmpField
    Modifier and Type | Method and Description
    --- | ---
    `protected SnmpField` | SnmpAbstractCodec.`encodePrimitive(byte[] value)` Encodes a value.
    `protected SnmpField` | SnmpAbstractCodec.`encodePrimitive(int value)` Encodes a value.
    `protected SnmpField` | SnmpAbstractCodec.`encodePrimitive(IpAddress value)` Encodes a value.
    `protected SnmpField` | SnmpAbstractCodec.`encodePrimitive(long value)` Encodes a value.
    `protected SnmpField` | SnmpAbstractCodec.`encodePrimitive(MacAddress value)` Encodes a value.
    `protected SnmpField` | SnmpAbstractCodec.`encodePrimitive(String value)` Encodes a value.

    Methods in com.h3c.util.snmp.command with parameters of type SnmpField
    Modifier and Type | Method and Description
    --- | ---
    `protected byte[]` | SnmpAbstractDecoder.`decodePrimitiveAsBytes(SnmpField code)` Decodes a value.
    `protected int` | SnmpAbstractDecoder.`decodePrimitiveAsInt(SnmpField code)` Decodes a value.
    `protected IpAddress` | SnmpAbstractDecoder.`decodePrimitiveAsIpAddress(SnmpField code)` Decodes a value.
    `protected long` | SnmpAbstractDecoder.`decodePrimitiveAsLong(SnmpField code)` Decodes a value.
    `protected MacAddress` | SnmpAbstractDecoder.`decodePrimitiveAsMacAddress(SnmpField code)` Decodes a value.
    `protected String` | SnmpAbstractDecoder.`decodePrimitiveAsString(SnmpField code)` Decodes a value.

    Constructor parameters in com.h3c.util.snmp.command with type arguments of type SnmpField
    Constructor and Description
    `SnmpReadCommand(Oid identity, Decoder<D,SnmpField> decoder)` Creates a new SNMP read command.
    `SnmpReadListCommand(Oid identity, Decoder<D,SnmpField> decoder)` Creates a new SNMP unidirectional list command (Read-only attribute list).
    `SnmpReadListCommand(Oid identity, Decoder<D,SnmpField> decoder, int maxRepetitions)` Creates a new SNMP unidirectional list command (Read-only attribute list).
    `SnmpReadWriteCommand(Oid identity, Codec<D,SnmpField> codec)` Creates a new SNMP read/write command.

Copyright © 2014. All Rights Reserved.