|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.percederberg.mibble.type.ValueRangeConstraint
public class ValueRangeConstraint
A MIB type value range constraint. This class represents a value range in a set of value constraints.
Constructor Summary | |
---|---|
ValueRangeConstraint(FileLocation location,
MibValue lower,
boolean strictLower,
MibValue upper,
boolean strictUpper)
Creates a new value range constraint. |
Method Summary | |
---|---|
MibValue |
getLowerBound()
Returns the lower bound value. |
MibValue |
getUpperBound()
Returns the upper bound value. |
void |
initialize(MibType type,
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. |
boolean |
isCompatible(java.lang.Number 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 ValueRangeConstraint(FileLocation location, MibValue lower, boolean strictLower, MibValue upper, boolean strictUpper)
location
- the constraint locationlower
- the lower bound, or null for minimumstrictLower
- the strict lower bound (less than) flagupper
- the upper bound, or null for maximumstrictUpper
- the strict upper bound (greater than) flagMethod Detail |
---|
public void initialize(MibType type, MibLoaderLog log) throws MibException
initialize
in interface Constraint
type
- the type to constrainlog
- 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 boolean isCompatible(java.lang.Number value)
value
- the value to check
public MibValue getLowerBound()
public MibValue getUpperBound()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |