net.percederberg.mibble.snmp
Class SnmpRevision

java.lang.Object
  |
  +--net.percederberg.mibble.snmp.SnmpRevision

public class SnmpRevision
extends java.lang.Object

An SNMP module identity revision.

Since:
2.0

Constructor Summary
SnmpRevision(MibValue value, java.lang.String description)
          Creates a new SNMP module identity revision.
 
Method Summary
 java.lang.String getDescription()
          Returns the revision description.
 MibValue getValue()
          Returns the revision number.
 void initialize(MibLoaderLog log)
          Initializes the MIB revision number.
 java.lang.String toString()
          Returns a string representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SnmpRevision

public SnmpRevision(MibValue value,
                    java.lang.String description)
Creates a new SNMP module identity revision.

Parameters:
value - the revision number
description - the revision description
Method Detail

initialize

public void initialize(MibLoaderLog log)
                throws MibException
Initializes the MIB revision number. This will remove all levels of indirection present. No information is lost by this operation. This method may modify this object as a side-effect, and will be called by the MIB loader.

Parameters:
log - the MIB loader log
Throws:
MibException - if an error was encountered during the initialization

getValue

public MibValue getValue()
Returns the revision number.

Returns:
the revision number

getDescription

public java.lang.String getDescription()
Returns the revision description.

Returns:
the revision description

toString

public java.lang.String toString()
Returns a string representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of this object