public class Mib extends java.lang.Object implements MibContext
MIB loader
.Modifier and Type | Method and Description |
---|---|
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.List<MibImport> |
getAllImports()
Returns all MIB import references.
|
java.util.List<MibSymbol> |
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.
|
java.lang.String |
getText()
Returns the unparsed input MIB text.
|
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.
|
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to compare withpublic 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 getText()
public java.lang.String getHeaderComment()
public java.lang.String getFooterComment()
public java.util.List<MibImport> getAllImports()
MibImport
public Mib[] getImportingMibs()
MibLoader
public java.util.List<MibSymbol> getAllSymbols()
MibSymbol
public MibSymbol getSymbol(java.lang.String name)
name
- the symbol namepublic MibValueSymbol getSymbolByValue(java.lang.String value)
value
- the symbol valuepublic MibValueSymbol getSymbolByValue(MibValue value)
value
- the symbol valuepublic MibValueSymbol getSymbolByOid(java.lang.String oid)
oid
- the numeric OID valuepublic 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 flagpublic java.lang.String toString()
toString
in class java.lang.Object