wttools.protocols.snmp
Class SnmpValue

java.lang.Object
  |
  +--wttools.protocols.snmp.SnmpValue
All Implemented Interfaces:
SnmpDataTypeEnumeration
Direct Known Subclasses:
SnmpInteger32, SnmpObjectIdentifier, SnmpOctet

public abstract class SnmpValue
extends java.lang.Object
implements SnmpDataTypeEnumeration

SnmpValue.java Created: Saturday Dec 08 2001

Version:
$Revision: 1.1 $
Author:
Praveen Kumar T N

Fields inherited from interface wttools.protocols.snmp.SnmpDataTypeEnumeration
ASN_APPLICATION, ASN_BIT_STRING, ASN_BIT8, ASN_BOOLEAN, ASN_CONSTRUCTOR, ASN_CONTEXT, ASN_EXTENSION_ID, ASN_INTEGER, ASN_LONG_LENGTH, ASN_NULL, ASN_OBJECT_ID, ASN_OCTECT_STRING, ASN_PRIMITIVE, ASN_PRIVATE, ASN_SEQUENCE, ASN_SET, ASN_UNIVERSAL, snmpDataTypeBitString, snmpDataTypeInteger, snmpDataTypeInteger32, snmpDataTypeNullObject, snmpDataTypeObjectId, snmpDataTypeOctet, snmpDataTypeUnknown, snmpString_BitString, snmpString_Integer, snmpString_Integer32, snmpString_NullObject, snmpString_ObjectId, snmpString_Octet
 
Constructor Summary
SnmpValue()
           
 
Method Summary
abstract  void decode(DecodeFromBuffer buffer)
          decode method performs decoding of the passed data buffer.
abstract  void encode(EncodeInBuffer buffer)
          encode method performs encoding of the passed data buffer.
abstract  int getLength()
          getLength method returns the length of the data element.
abstract  int getType()
          getType method returns the data type of the element.
abstract  java.lang.String getTypeName()
          getTypeName method returns the name of the data type of the element.
 
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

getType

public abstract int getType()
getType method returns the data type of the element.
Returns:
an int

getTypeName

public abstract java.lang.String getTypeName()
getTypeName method returns the name of the data type of the element.
Returns:
an String

getLength

public abstract int getLength()
getLength method returns the length of the data element.
Returns:
an int

encode

public abstract void encode(EncodeInBuffer buffer)
encode method performs encoding of the passed data buffer.
Parameters:
buffer - an EncodeInBuffer value
Returns:
an void

decode

public abstract void decode(DecodeFromBuffer buffer)
decode method performs decoding of the passed data buffer.
Parameters:
buffer - an DecodeFromBuffer value
Returns:
an void


Copyright GNU, wttools developers Team.