|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.percederberg.mib.type.Constraint | +--net.percederberg.mib.type.SizeConstraint
A class representing a size constraint (for strings).
Constructor Summary | |
SizeConstraint(ValueConstraint value)
Creates a new size constraint with fixed size. |
|
SizeConstraint(ValueRangeConstraint range)
Creates a new size constraint with a range of values. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Checks if this constraint equals another constraint. |
java.lang.String |
toString()
Returns a string description of this constraint. |
void |
transferConstraint(TypeConverter converter)
Transfers the constraint information from this object to a type converter object. |
Methods inherited from class net.percederberg.mib.type.Constraint |
equalsValue |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SizeConstraint(ValueConstraint value)
value
- the fixed size valuepublic SizeConstraint(ValueRangeConstraint range)
range
- a value constraint of the size rangeMethod Detail |
public boolean equals(java.lang.Object obj)
equals
in class Constraint
obj
- the object to compare with
public java.lang.String toString()
toString
in class Constraint
public void transferConstraint(TypeConverter converter)
transferConstraint
in class Constraint
converter
- a type converter
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |