public class SnmpTrapType extends SnmpType
SnmpNotificationType
,
RFC 1215 (RFC-1215)Constructor and Description |
---|
SnmpTrapType(MibValue enterprise,
java.util.ArrayList<MibValue> variables,
java.lang.String description,
java.lang.String reference)
Creates a new SNMP trap type.
|
Modifier and Type | Method and Description |
---|---|
MibValue |
getEnterprise()
Returns the enterprise value.
|
java.lang.String |
getReference()
Returns the type reference.
|
java.util.ArrayList<MibValue> |
getVariables()
Returns the list of MIB values.
|
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 SnmpTrapType(MibValue enterprise, java.util.ArrayList<MibValue> variables, java.lang.String description, java.lang.String reference)
enterprise
- the enterprise valuevariables
- the list of MIB valuesdescription
- the type description, or nullreference
- the type reference, 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 MibValue getEnterprise()
public java.util.ArrayList<MibValue> getVariables()
MibValue
public java.lang.String getReference()