|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.percederberg.mibble.type.SizeConstraint
public class SizeConstraint
A MIB type size constraint.
Constructor Summary | |
---|---|
SizeConstraint(FileLocation location,
Constraint values)
Creates a new size constraint. |
Method Summary | |
---|---|
java.util.ArrayList |
getValues()
Returns a list of the value constraints on the size. |
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. |
int |
nextValue(int start)
Returns the next compatible size constraint value from a start value. |
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 SizeConstraint(FileLocation location, Constraint values)
location
- the constraint locationvalues
- the constrained size valuesMethod 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 java.util.ArrayList getValues()
public int nextValue(int start)
start
- the initial start value
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 |