|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.percederberg.mibble.MibType
net.percederberg.mibble.snmp.SnmpObjectType
The SNMP object type macro type. This macro type was present in SNMPv1, but was somewhat extended in SNMPv2. It is defined in the RFC:s 1155, 1212 and 2578.
Constructor Summary | |
SnmpObjectType(MibType syntax,
java.lang.String units,
SnmpAccess access,
SnmpStatus status,
java.lang.String description,
java.lang.String reference,
java.util.ArrayList index,
MibValue defaultValue)
Creates a new SNMP object type. |
|
SnmpObjectType(MibType syntax,
java.lang.String units,
SnmpAccess access,
SnmpStatus status,
java.lang.String description,
java.lang.String reference,
MibValue augments,
MibValue defaultValue)
Creates a new SNMP object type. |
Method Summary | |
SnmpAccess |
getAccess()
Returns the access mode. |
MibValue |
getAugments()
Returns the augmented index value. |
MibValue |
getDefaultValue()
Returns the default value. |
java.lang.String |
getDescription()
Returns the type description. |
java.util.ArrayList |
getIndex()
Returns the list of index values or types. |
java.lang.String |
getReference()
Returns the type reference. |
SnmpStatus |
getStatus()
Returns the type status. |
MibType |
getSyntax()
Returns the type syntax. |
java.lang.String |
getUnits()
Returns the units description. |
MibType |
initialize(MibSymbol symbol,
MibLoaderLog log)
Initializes the MIB type. |
boolean |
isCompatible(MibValue value)
Checks if the specified value is compatible with this type. |
java.lang.String |
toString()
Returns a string representation of this object. |
Methods inherited from class net.percederberg.mibble.MibType |
createReference, createReference, createReference, getName, getReferenceSymbol, getTag, hasReferenceTo, hasReferenceTo, hasTag, hasTag, isPrimitive, setReferenceSymbol, setTag |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SnmpObjectType(MibType syntax, java.lang.String units, SnmpAccess access, SnmpStatus status, java.lang.String description, java.lang.String reference, java.util.ArrayList index, MibValue defaultValue)
syntax
- the object type syntaxunits
- the units description, or nullaccess
- the access modestatus
- the type statusdescription
- the type description, or nullreference
- the type reference, or nullindex
- the list of index values or typesdefaultValue
- the default value, or nullpublic SnmpObjectType(MibType syntax, java.lang.String units, SnmpAccess access, SnmpStatus status, java.lang.String description, java.lang.String reference, MibValue augments, MibValue defaultValue)
syntax
- the object type syntaxunits
- the units description, or nullaccess
- the access modestatus
- the type statusdescription
- the type description, or nullreference
- the type reference, or nullaugments
- the index augments valuedefaultValue
- the default value, or nullMethod Detail |
public MibType initialize(MibSymbol symbol, MibLoaderLog log) throws MibException
NOTE: This is an internal method that should only be called by the MIB loader.
initialize
in class MibType
symbol
- the MIB symbol containing this typelog
- the MIB loader log
MibException
- if an error was encountered during the
initializationpublic boolean isCompatible(MibValue value)
isCompatible
in class MibType
value
- the value to check
public MibType getSyntax()
public java.lang.String getUnits()
public SnmpAccess getAccess()
public SnmpStatus getStatus()
public java.lang.String getDescription()
public java.lang.String getReference()
public java.util.ArrayList getIndex()
MibValue
,
MibType
public MibValue getAugments()
public MibValue getDefaultValue()
public java.lang.String toString()
toString
in class MibType
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |