javax.management.snmp
Class SnmpValue

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

Deprecated. Use package com.sun.management.snmp in preference to classes in this package. This class may be removed in a future version of Java DMK.

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.

Version:
4.7 04/08/04
Author:
Sun Microsystems, Inc
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface javax.management.snmp.SnmpDataTypeEnums
ApplFlag, BitStringTag, BooleanTag, Counter64Tag, CounterTag, CtxtFlag, errEndOfMibViewTag, errNoSuchInstanceTag, errNoSuchObjectTag, GaugeTag, IntegerTag, IpAddressTag, NsapTag, NullTag, ObjectIdentiferTag, OctetStringTag, OpaqueTag, SequenceTag, TableTag, TimeticksTag, UintegerTag, UnknownSyntaxTag
 
Constructor Summary
SnmpValue()
          Deprecated.  
 
Method Summary
abstract  SnmpValue duplicate()
          Deprecated. Same as clone, but you cannot perform cloning using this object because clone is protected.
abstract  String getTypeName()
          Deprecated. Returns a textual description of the object.
 boolean isEndOfMibViewValue()
          Deprecated. This method returns false by default and is redefined in the SnmpNull class.
 boolean isNoSuchInstanceValue()
          Deprecated. This method returns false by default and is redefined in the SnmpNull class.
 boolean isNoSuchObjectValue()
          Deprecated. This method returns false by default and is redefined in the SnmpNull class.
 String toAsn1String()
          Deprecated. Returns a String form containing ASN.1 tagging information.
abstract  SnmpOid toOid()
          Deprecated. 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()
Deprecated. 
Method Detail

toAsn1String

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

Returns:
The String form.

toOid

public abstract SnmpOid toOid()
Deprecated. 
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()
Deprecated. 
Returns a textual description of the object.

Returns:
ASN.1 textual description.

duplicate

public abstract SnmpValue duplicate()
Deprecated. 
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()
Deprecated. 
This method returns false by default and is redefined in the SnmpNull class.


isNoSuchInstanceValue

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


isEndOfMibViewValue

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


FCS Release
jdmk-5_1-b34.1 2005.02.10_16:46:09_MET

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