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.
-
SnmpInt(boolean)
- Constructs a new SnmpInt with the specified boolean.
-
SnmpInt(Enumerated)
- Constructs a new SnmpInt with the specified value.
-
SnmpInt(int)
- Constructs a new SnmpInt with the specified value.
-
SnmpInt(Integer)
- Constructs a new SnmpInt with the specified value.
-
SnmpInt(long)
- Constructs a new SnmpInt with the specified value.
-
appendToOid(SnmpOid, SnmpOid)
- Append an SnmpOid representing an SnmpInt to another Oid.
-
clone()
- Creates a new object of the same class as this object.
-
duplicate()
- Same as clone, but you can not perform cloning using this object because
clone is protected.
-
getTypeName()
- Returns a textual description of the object.
-
intValue()
- Return the integer value.
-
nextOid(long[], int)
- Scan an index oid, skip the integer value and returns the position
of the next value.
-
toInteger()
- Return the Integer form.
-
toOid()
- Return the Oid form.
-
toOid(long[], int)
- Extract the integer from an index oid and returns its
value converted as an Oid.
-
toString()
- Convert the integer to its string form.
SnmpInt
public SnmpInt(int v)
- Constructs a new SnmpInt with the specified value.
- Parameters:
- v - The initialization value.
SnmpInt
public SnmpInt(long v)
- Constructs a new SnmpInt with the specified value.
- Parameters:
- v - The initialization value.
SnmpInt
public SnmpInt(Enumerated v)
- Constructs a new SnmpInt with the specified value.
- Parameters:
- v - The initialization value.
SnmpInt
public SnmpInt(Integer v)
- Constructs a new SnmpInt with the specified value.
- Parameters:
- v - The initialization value.
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.
toString
public String toString()
- Convert the integer to its string form.
- Returns:
- The string representation.
- Overrides:
- toString in class Object
toInteger
public Integer toInteger()
- Return the Integer form.
toOid
public SnmpOid toOid()
- Return the Oid form.
- Overrides:
- toOid in class SnmpValue
intValue
public int intValue()
- Return the integer value.
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
clone
public final synchronized Object clone()
- Creates a new object of the same class as this object.
- Overrides:
- clone in class Object
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
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
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.
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