public class SnmpObjectType extends SnmpType
Constructor and Description |
---|
SnmpObjectType(MibType syntax,
java.lang.String units,
SnmpAccess access,
SnmpStatus status,
java.lang.String description,
java.lang.String reference,
java.util.ArrayList<SnmpIndex> 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.
|
Modifier and Type | Method and Description |
---|---|
SnmpAccess |
getAccess()
Returns the access mode.
|
MibValue |
getAugments()
Returns the augmented index value.
|
MibValue |
getDefaultValue()
Returns the default value.
|
java.util.ArrayList<SnmpIndex> |
getIndex()
Returns the list of indices.
|
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.
|
getDescription, getDescription, getUnformattedDescription, removeIndent
createReference, createReference, createReference, getComment, getName, getReferenceSymbol, getTag, hasReferenceTo, hasReferenceTo, hasTag, hasTag, isPrimitive, setReferenceSymbol, setTag
public SnmpObjectType(MibType syntax, java.lang.String units, SnmpAccess access, SnmpStatus status, java.lang.String description, java.lang.String reference, java.util.ArrayList<SnmpIndex> 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 objectsdefaultValue
- 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 nullpublic 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 logMibException
- if an error was encountered during the
initializationpublic boolean isCompatible(MibValue value)
isCompatible
in class MibType
value
- the value to checkpublic MibType getSyntax()
public java.lang.String getUnits()
public SnmpAccess getAccess()
public SnmpStatus getStatus()
public java.lang.String getReference()
public java.util.ArrayList<SnmpIndex> getIndex()
SnmpIndex
public MibValue getAugments()
public MibValue getDefaultValue()