|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.percederberg.mibble.type.ValueConstraint
A MIB type value constraint. This class represents a single value in a set of value constraints.
Constructor Summary | |
ValueConstraint(MibValue value)
Creates a new value constraint. |
Method Summary | |
MibValue |
getValue()
Returns the constraint value. |
void |
initialize(MibLoaderLog log)
Initializes the constraint. |
boolean |
isCompatible(MibType type)
Checks if the specified type is compatible with this constraint. |
boolean |
isCompatible(MibValue value)
Checks if the specified value is compatible with this constraint. |
java.lang.String |
toString()
Returns a string representation of this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ValueConstraint(MibValue value)
value
- the constraint valueMethod Detail |
public void initialize(MibLoaderLog log) throws MibException
initialize
in interface Constraint
log
- the MIB loader log
MibException
- if an error was encountered during the
initializationpublic boolean isCompatible(MibType type)
isCompatible
in interface Constraint
type
- the type to check
public boolean isCompatible(MibValue value)
isCompatible
in interface Constraint
value
- the value to check
public MibValue getValue()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |