All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.jaw.snmp.common.SnmpInt

java.lang.Object
   |
   +----com.sun.jaw.snmp.common.SnmpValue
           |
           +----com.sun.jaw.snmp.common.SnmpInt

public class SnmpInt
extends SnmpValue
The SnmpInt class represents an SNMP integer.


Constructor Index

 o SnmpInt(boolean)
Constructs a new SnmpInt with the specified boolean.
 o SnmpInt(Enumerated)
Constructs a new SnmpInt with the specified value.
 o SnmpInt(int)
Constructs a new SnmpInt with the specified value.
 o SnmpInt(Integer)
Constructs a new SnmpInt with the specified value.
 o SnmpInt(long)
Constructs a new SnmpInt with the specified value.

Method Index

 o appendToOid(SnmpOid, SnmpOid)
Append an SnmpOid representing an SnmpInt to another Oid.
 o clone()
Creates a new object of the same class as this object.
 o duplicate()
Same as clone, but you can not perform cloning using this object because clone is protected.
 o getTypeName()
Returns a textual description of the object.
 o intValue()
Return the integer value.
 o nextOid(long[], int)
Scan an index oid, skip the integer value and returns the position of the next value.
 o toInteger()
Return the Integer form.
 o toOid()
Return the Oid form.
 o toOid(long[], int)
Extract the integer from an index oid and returns its value converted as an Oid.
 o toString()
Convert the integer to its string form.

Constructors

 o SnmpInt
 public SnmpInt(int v)
Constructs a new SnmpInt with the specified value.

Parameters:
v - The initialization value.
 o SnmpInt
 public SnmpInt(long v)
Constructs a new SnmpInt with the specified value.

Parameters:
v - The initialization value.
 o SnmpInt
 public SnmpInt(Enumerated v)
Constructs a new SnmpInt with the specified value.

Parameters:
v - The initialization value.
 o SnmpInt
 public SnmpInt(Integer v)
Constructs a new SnmpInt with the specified value.

Parameters:
v - The initialization value.
 o SnmpInt
 public SnmpInt(boolean v)
Constructs a new SnmpInt with the specified boolean. This constructor applies rfc1903 rule : TruthValue ::= TEXTUAL-CONVENTION STATUS current DESCRIPTION "Represents a boolean value." SYNTAX INTEGER { true(1), false(2) }

Parameters:
v - The initialization value.

Methods

 o toString
 public String toString()
Convert the integer to its string form.

Returns:
The string representation.
Overrides:
toString in class Object
 o toInteger
 public Integer toInteger()
Return the Integer form.

 o toOid
 public SnmpOid toOid()
Return the Oid form.

Overrides:
toOid in class SnmpValue
 o intValue
 public int intValue()
Return the integer value.

 o duplicate
 public final synchronized SnmpValue duplicate()
Same as clone, but you can not perform cloning using this object because clone is protected.

Overrides:
duplicate in class SnmpValue
 o clone
 public final synchronized Object clone()
Creates a new object of the same class as this object.

Overrides:
clone in class Object
 o toOid
 public static SnmpOid toOid(long index[],
                             int start) throws SnmpStatusException
Extract the integer from an index oid and returns its value converted as an Oid.

Returns:
The SnmpOid representing the integer value
Throws: SnmpStatusException
There is no integer value available at start position
 o nextOid
 public static int nextOid(long index[],
                           int start) throws SnmpStatusException
Scan an index oid, skip the integer value and returns the position of the next value.

Returns:
The position of the next value
Throws: SnmpStatusException
There is no integer value available at start position
 o appendToOid
 public static void appendToOid(SnmpOid source,
                                SnmpOid dest)
Append an SnmpOid representing an SnmpInt to another Oid.

Parameters:
source - An Oid representing an SnmpInt value.
dest - Where source should be appened.
 o getTypeName
 public String getTypeName()
Returns a textual description of the object.

Returns:
ASN.1 textual description.
Overrides:
getTypeName in class SnmpValue

All Packages  Class Hierarchy  This Package  Previous  Next  Index