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, removeIndentgetComment, getName, getReferenceSymbol, getTag, hasReferenceTo, hasReferenceTo, hasTag, hasTag, isPrimitive, setReferenceSymbol, setTagpublic 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 MibTypesymbol - 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 MibTypejava.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 MibTypeconstraint - 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 MibTypevalues - the type value symbolsjava.lang.UnsupportedOperationException - if a type reference
couldn't be created with value constraintspublic boolean isCompatible(MibValue value)
isCompatible in class MibTypevalue - 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 MibContextname - the symbol nameexpanded - the expanded scope flag