|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.percederberg.mibble.Mib
public class Mib
An SNMP MIB module. This class contains all the information
from a single MIB module, including all defined types and values.
Note that a single MIB file may contain several such modules,
although that is not very common. MIB files are loaded through a
MIB loader
.
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Compares this MIB to another object. |
MibSymbol |
findSymbol(java.lang.String name,
boolean expanded)
Searches for a named MIB symbol. |
java.util.Collection |
getAllImports()
Returns all MIB import references. |
java.util.Collection |
getAllSymbols()
Returns all symbols in this MIB. |
java.io.File |
getFile()
Returns the MIB file. |
java.lang.String |
getFooterComment()
Returns the MIB file footer comment. |
java.lang.String |
getHeaderComment()
Returns the MIB file header comment. |
Mib[] |
getImportingMibs()
Finds all MIB:s that are dependant on this one. |
MibLoader |
getLoader()
Returns the MIB loader used when loading this MIB. |
MibLoaderLog |
getLog()
Returns the loader log used when loading this MIB. |
java.lang.String |
getName()
Returns the MIB name. |
MibValueSymbol |
getRootSymbol()
Returns the root MIB value symbol. |
int |
getSmiVersion()
Returns the SMI version used for defining this MIB. |
MibSymbol |
getSymbol(java.lang.String name)
Returns a symbol from this MIB. |
MibValueSymbol |
getSymbolByOid(java.lang.String oid)
Returns a value symbol from this MIB. |
MibValueSymbol |
getSymbolByValue(MibValue value)
Returns a value symbol from this MIB. |
MibValueSymbol |
getSymbolByValue(java.lang.String value)
Returns a value symbol from this MIB. |
int |
hashCode()
Returns the hash code value for the object. |
boolean |
isLoaded()
Checks if this MIB module has been explicitly loaded. |
java.lang.String |
toString()
Returns a string representation of this object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to compare with
public int hashCode()
hashCode
in class java.lang.Object
public boolean isLoaded()
public java.lang.String getName()
public java.io.File getFile()
public MibLoader getLoader()
public MibLoaderLog getLog()
public int getSmiVersion()
public java.lang.String getHeaderComment()
public java.lang.String getFooterComment()
public java.util.Collection getAllImports()
MibImport
public Mib[] getImportingMibs()
MibLoader
public java.util.Collection getAllSymbols()
MibSymbol
public MibSymbol getSymbol(java.lang.String name)
name
- the symbol name
public MibValueSymbol getSymbolByValue(java.lang.String value)
value
- the symbol value
public MibValueSymbol getSymbolByValue(MibValue value)
value
- the symbol value
public MibValueSymbol getSymbolByOid(java.lang.String oid)
oid
- the numeric OID value
public MibValueSymbol getRootSymbol()
public MibSymbol findSymbol(java.lang.String name, boolean expanded)
NOTE: This is an internal method that should only be called by the MIB loader.
findSymbol
in interface MibContext
name
- the symbol nameexpanded
- the expanded scope flag
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |