net.percederberg.mibble.snmp
Class SnmpCompliance

java.lang.Object
  extended bynet.percederberg.mibble.snmp.SnmpCompliance

public class SnmpCompliance
extends java.lang.Object

An SNMP module compliance declaration. This declaration is used inside a module declaration.

Since:
2.0

Constructor Summary
SnmpCompliance(MibValue value, MibType syntax, MibType writeSyntax, SnmpAccess access, java.lang.String description)
          Creates a new SNMP module compliance declaration.
 
Method Summary
 SnmpAccess getAccess()
          Returns the access mode.
 java.lang.String getDescription()
          Returns the compliance description.
 MibType getSyntax()
          Returns the value syntax.
 MibValue getValue()
          Returns the value.
 MibType getWriteSyntax()
          Returns the value write syntax.
 void initialize(MibLoaderLog log)
          Initializes this 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

SnmpCompliance

public SnmpCompliance(MibValue value,
                      MibType syntax,
                      MibType writeSyntax,
                      SnmpAccess access,
                      java.lang.String description)
Creates a new SNMP module compliance declaration.

Parameters:
value - the compliance value
syntax - the value syntax, or null
writeSyntax - the value write syntax, or null
access - the access mode, or null
description - the compliance description
Method Detail

initialize

public void initialize(MibLoaderLog log)
                throws MibException
Initializes this 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

getValue

public MibValue getValue()
Returns the value.

Returns:
the value

getSyntax

public MibType getSyntax()
Returns the value syntax.

Returns:
the value syntax, or null if not set

getWriteSyntax

public MibType getWriteSyntax()
Returns the value write syntax.

Returns:
the value write syntax, or null if not set

getAccess

public SnmpAccess getAccess()
Returns the access mode.

Returns:
the access mode, or null if not set

getDescription

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

Returns:
the compliance description

toString

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

Returns:
a string representation of this object