|
|||||||||||
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 syntaxMethod 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 MibType
symbol
- the MIB symbol containing this typelog
- the MIB loader log
MibException
- 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 constraint
java.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 symbols
java.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 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 MibContext
name
- 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 |