net.percederberg.mibble.snmp
Class SnmpModule

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

public class SnmpModule
extends java.lang.Object

An SNMP module compliance declaration. This declaration is used inside the module compliance type.

Since:
2.0

Constructor Summary
SnmpModule(java.lang.String module, java.util.ArrayList groups, java.util.ArrayList compliances)
          Creates a new module compliance declaration.
 
Method Summary
 java.util.ArrayList getCompliances()
          Returns the list of compliances.
 java.util.ArrayList getGroups()
          Returns the list of mandatory group values.
 java.lang.String getModule()
          Returns the module name.
 void initialize(MibLoaderLog log)
          Initializes the object.
 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

SnmpModule

public SnmpModule(java.lang.String module,
                  java.util.ArrayList groups,
                  java.util.ArrayList compliances)
Creates a new module compliance declaration.

Parameters:
module - the module name, or null
groups - the list of mandatory group values
compliances - the list of compliances
Method Detail

initialize

public void initialize(MibLoaderLog log)
                throws MibException
Initializes the object. This will remove all levels of indirection present, such as references to other types, and returns the basic type. No type 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

getModule

public java.lang.String getModule()
Returns the module name.

Returns:
the module name, or null if not set

getGroups

public java.util.ArrayList getGroups()
Returns the list of mandatory group values.

Returns:
the list of mandatory group values
See Also:
MibValue

getCompliances

public java.util.ArrayList getCompliances()
Returns the list of compliances.

Returns:
the list of compliances
See Also:
SnmpCompliance

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