|
MySnmpCrawler API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--snmp.mibdb.OidEntity
This class represents the object variable managed in the MIB file. It encapsulates the information including: name, data type, permission, and description of the object variable. Each OidEntity object is also a link list node that contains a references to its parent object variable and a list of child variables.
| Nested Class Summary | |
private class |
OidEntity.OidEntityMeta
|
| Field Summary | |
private java.util.ArrayList |
children
|
private OidEntity.OidEntityMeta |
meta
|
private OidEntity |
parent
|
private static java.lang.String |
UNKNOWN
|
| Fields inherited from interface snmp.mibdb.OidRecord |
CURRENT_STATUS, DEPRECATED_STATUS, MANDATORY_STATUS, NO_ACCESS, NOTIFY_ACCESS, OBSOLETE_STATUS, OPTIONAL_STATUS, READ_ACCESS, READ_CREATE_ACCESS, READ_WRITE_ACCESS, WRITE_ACCESS |
| Constructor Summary | |
(package private) |
OidEntity(OidEntity parent,
net.percederberg.mib.symbol.Symbol symbol,
MibDatabaseImpl db)
Constructs the OidEntity object with the parent Symbol object, the Symbol object, and the MibDatabaseImpl object. |
(package private) |
OidEntity(net.percederberg.mib.symbol.Symbol symbol,
MibDatabaseImpl db)
Constructs the OidEntity object with the Symbol object and MibDatabaseImpl object. |
| Method Summary | |
boolean |
checkPermission(int accessCode)
Checks the passed permission with the permission of the object variable in the MIB database. |
java.lang.String |
getAccess()
Gets the access description of the object variable. |
byte |
getAsnType()
Gets the ASN.1 type of the object variable. |
OidEntity |
getChild(java.lang.String oid)
Gets the object variable matched to the passed OID string. |
java.util.ArrayList |
getChildren()
Gets the children list of the object variable. |
java.lang.String |
getDescription()
Gets the description text of the object variable. |
java.lang.String |
getName()
Gets the object variable name. |
java.lang.String |
getOid()
Gets the object identifier (OID) string. |
OidRecord |
getOidGroup()
Gets the parent object variable. |
(package private) static java.lang.String |
getParentOid(java.lang.String oid)
Gets the OID string of the parent variable. |
java.lang.String |
getType()
Gets the text description of the object type. |
private static void |
setASNtypeInfo(net.percederberg.mib.symbol.Symbol symbol,
OidEntity.OidEntityMeta meta)
Converts Snmp datatype in the passed symbol to the ASN.1 type. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final java.lang.String UNKNOWN
private OidEntity parent
private java.util.ArrayList children
private OidEntity.OidEntityMeta meta
| Constructor Detail |
OidEntity(net.percederberg.mib.symbol.Symbol symbol,
MibDatabaseImpl db)
throws SnmpException
symbol - The symbol node.db - The MIB database implementation object.
TypeOfException - Thrown when ...
SnmpException
OidEntity(OidEntity parent,
net.percederberg.mib.symbol.Symbol symbol,
MibDatabaseImpl db)
throws SnmpException
parent - The parent symbol node.symbol - The symbol node.db - The MIB database implementation object.
TypeOfException - Thrown when ...
SnmpException| Method Detail |
public java.lang.String getOid()
getOid in interface OidRecordpublic java.lang.String getName()
getName in interface OidRecordpublic java.lang.String getType()
getType in interface OidRecordpublic byte getAsnType()
getAsnType in interface OidRecordpublic boolean checkPermission(int accessCode)
checkPermission in interface OidRecordTypeOfException - Thrown when ...public java.lang.String getAccess()
getAccess in interface OidRecordpublic java.lang.String getDescription()
getDescription in interface OidRecordpublic OidRecord getOidGroup()
getOidGroup in interface OidRecordpublic java.util.ArrayList getChildren()
public OidEntity getChild(java.lang.String oid)
static final java.lang.String getParentOid(java.lang.String oid)
private static void setASNtypeInfo(net.percederberg.mib.symbol.Symbol symbol,
OidEntity.OidEntityMeta meta)
throws SnmpException
symbol - The symbol containing the type to be converted.meta - The OidEntityMeta object where ASN.1 type will be set to.
SnmpException
|
MySnmpCrawler API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||