|
||||||||||
| 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.SnmpType
net.percederberg.mibble.snmp.SnmpTextualConvention
public class SnmpTextualConvention
The SNMP textual convention macro type. This macro type was added to SMIv2 and is defined in RFC 2579.
| Constructor Summary | |
|---|---|
SnmpTextualConvention(java.lang.String displayHint,
SnmpStatus status,
java.lang.String description,
java.lang.String reference,
MibType syntax)
Creates a new SNMP textual convention. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class net.percederberg.mibble.snmp.SnmpType |
|---|
getDescription, getDescription, getUnformattedDescription, removeIndent |
| Methods inherited from class net.percederberg.mibble.MibType |
|---|
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 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 syntax| Method Detail |
|---|
public static SnmpTextualConvention findReference(MibType type)
type - the MIB type
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 MibTypesymbol - the MIB symbol containing this typelog - the MIB loader log
MibException - if an error was encountered during the
initialization
public 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 created
public 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 constraint
java.lang.UnsupportedOperationException - if a type reference
couldn't be created with constraints
public 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 symbols
java.lang.UnsupportedOperationException - if a type reference
couldn't be created with value constraintspublic boolean isCompatible(MibValue value)
isCompatible in class MibTypevalue - the value to check
public 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
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 | |||||||||