|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--net.percederberg.mibble.MibType
|
+--net.percederberg.mibble.snmp.SnmpTextualConvention
The SNMP textual convention macro type. This macro type was added to SNMPv2 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. |
java.lang.String |
getDescription()
Returns the type description. |
java.lang.String |
getDisplayHint()
Returns the display hint. |
java.lang.String |
getReference()
Returns the type reference. |
SnmpStatus |
getStatus()
Returns the type status. |
MibSymbol |
getSymbol(java.lang.String name)
Returns a named MIB symbol. |
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.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 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 getDescription()
public java.lang.String getReference()
public MibType getSyntax()
public MibSymbol getSymbol(java.lang.String name)
NOTE: This is an internal method that should only be called by the MIB loader.
getSymbol in interface MibContextname - the symbol name
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 | ||||||||||