public class SnmpTextualConvention extends SnmpType implements MibContext
Constructor and Description |
---|
SnmpTextualConvention(java.lang.String displayHint,
SnmpStatus status,
java.lang.String description,
java.lang.String reference,
MibType syntax)
Creates a new SNMP textual convention.
|
Modifier and Type | Method and Description |
---|---|
MibType |
createReference()
Creates a type reference to this type.
|
MibType |
createReference(java.util.ArrayList<?> values)
Creates a constrained type reference to this type.
|
MibType |
createReference(Constraint constraint)
Creates a constrained type reference to this type.
|
static SnmpTextualConvention |
findReference(MibType type)
Finds the first SNMP textual convention reference for a type.
|
MibSymbol |
findSymbol(java.lang.String name,
boolean expanded)
Searches for a named MIB symbol.
|
java.lang.String |
getDisplayHint()
Returns the display hint.
|
java.lang.String |
getReference()
Returns the type reference.
|
SnmpStatus |
getStatus()
Returns the type status.
|
MibType |
getSyntax()
Returns the type syntax.
|
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
getComment, getName, getReferenceSymbol, getTag, hasReferenceTo, hasReferenceTo, hasTag, hasTag, isPrimitive, setReferenceSymbol, setTag
public SnmpTextualConvention(java.lang.String displayHint, SnmpStatus status, java.lang.String description, java.lang.String reference, MibType syntax)
displayHint
- the display hint, or nullstatus
- the type statusdescription
- the type descriptionreference
- the type reference, or nullsyntax
- the type syntaxpublic static SnmpTextualConvention findReference(MibType type)
type
- the MIB typepublic 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 MibType createReference() throws java.lang.UnsupportedOperationException
NOTE: This is an internal method that should only be called by the MIB loader.
createReference
in class MibType
java.lang.UnsupportedOperationException
- if a type reference
couldn't be createdpublic MibType createReference(Constraint constraint) throws java.lang.UnsupportedOperationException
NOTE: This is an internal method that should only be called by the MIB loader.
createReference
in class MibType
constraint
- the type constraintjava.lang.UnsupportedOperationException
- if a type reference
couldn't be created with constraintspublic MibType createReference(java.util.ArrayList<?> values) throws java.lang.UnsupportedOperationException
NOTE: This is an internal method that should only be called by the MIB loader.
createReference
in class MibType
values
- the type value symbolsjava.lang.UnsupportedOperationException
- if a type reference
couldn't be created with value constraintspublic boolean isCompatible(MibValue value)
isCompatible
in class MibType
value
- the value to checkpublic java.lang.String getDisplayHint()
public SnmpStatus getStatus()
public java.lang.String getReference()
public MibType getSyntax()
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 flag