com.sun.management.snmp
Class SnmpValue

java.lang.Object
  extended by com.sun.management.snmp.SnmpValue
All Implemented Interfaces:
SnmpDataTypeEnums, Serializable, Cloneable
Direct Known Subclasses:
SnmpCounter64, SnmpInt, SnmpNull, SnmpOid, SnmpString

public abstract class SnmpValue
extends Object
implements Cloneable, Serializable, SnmpDataTypeEnums

Is an abstract representation of an SNMP Value. All classes provided for dealing with SNMP types should derive from this class.

Since:
Java DMK 5.1
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.sun.management.snmp.SnmpDataTypeEnums
ApplFlag, BitStringTag, BooleanTag, Counter64Tag, CounterTag, CtxtFlag, errEndOfMibViewTag, errNoSuchInstanceTag, errNoSuchObjectTag, GaugeTag, IntegerTag, IpAddressTag, NsapTag, NullTag, ObjectIdentiferTag, ObjectIdentifierTag, OctetStringTag, OpaqueTag, SequenceTag, TableTag, TimeticksTag, UintegerTag, UnknownSyntaxTag
 
Constructor Summary
SnmpValue()
           
 
Method Summary
abstract  SnmpValue duplicate()
          Same as clone, but you cannot perform cloning using this object because clone is protected.
abstract  String getTypeName()
          Returns a textual description of the object.
 boolean isEndOfMibViewValue()
          This method returns false by default and is redefined in the SnmpNull class.
 boolean isNoSuchInstanceValue()
          This method returns false by default and is redefined in the SnmpNull class.
 boolean isNoSuchObjectValue()
          This method returns false by default and is redefined in the SnmpNull class.
 String toAsn1String()
          Returns a String form containing ASN.1 tagging information.
abstract  SnmpOid toOid()
          Returns the value encoded as an OID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnmpValue

public SnmpValue()
Method Detail

toAsn1String

public String toAsn1String()
Returns a String form containing ASN.1 tagging information.

Returns:
The String form.

toOid

public abstract SnmpOid toOid()
Returns the value encoded as an OID. The method is particularly useful when dealing with indexed table made of several SNMP variables.

Returns:
The value encoded as an OID.

getTypeName

public abstract String getTypeName()
Returns a textual description of the object.

Returns:
ASN.1 textual description.

duplicate

public abstract SnmpValue duplicate()
Same as clone, but you cannot perform cloning using this object because clone is protected. This method should call clone().

Returns:
The SnmpValue clone.

isNoSuchObjectValue

public boolean isNoSuchObjectValue()
This method returns false by default and is redefined in the SnmpNull class.


isNoSuchInstanceValue

public boolean isNoSuchInstanceValue()
This method returns false by default and is redefined in the SnmpNull class.


isEndOfMibViewValue

public boolean isEndOfMibViewValue()
This method returns false by default and is redefined in the SnmpNull class.


Open Source build 02
opendmk-1.0-b02 2007.10.01_19:17:46_MEST

Copyright 1998-2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.