com.jpragma.snmp.asn
Class AsnObject

java.lang.Object
  extended by com.jpragma.snmp.asn.AsnObject
Direct Known Subclasses:
AsnBitString, AsnBoolean, AsnInteger, AsnNull, AsnOctetString, AsnOID, AsnSequence

public abstract class AsnObject
extends java.lang.Object

Parent class for all ASN and SMI classes.

Author:
Isaac Levin

Constructor Summary
AsnObject()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
static AsnObject getInstance(BerTlv tlv)
          Factory method.
abstract  java.lang.Object getValue()
           
abstract  void setValue(BerTlv tlv)
           
abstract  void setValue(java.lang.Object value)
           
abstract  BerTlv toBerTlv()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsnObject

public AsnObject()
Method Detail

getValue

public abstract java.lang.Object getValue()

setValue

public abstract void setValue(java.lang.Object value)
                       throws AsnObjectValueException
Throws:
AsnObjectValueException

setValue

public abstract void setValue(BerTlv tlv)

toBerTlv

public abstract BerTlv toBerTlv()

getInstance

public static AsnObject getInstance(BerTlv tlv)
Factory method.

Parameters:
tlv - BerTlv to be converted
Returns:
Concrete implementation of AsnObject for this TLV

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object