|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.isti.util.CfgPropValidator
public class CfgPropValidator
Class CfgPropValidator defines a configuration property validator object used with the 'CfgPropItem' class.
Field Summary | |
---|---|
java.lang.String |
allowedChars
|
java.lang.Comparable |
maxValueCompObj
|
java.lang.Comparable |
minValueCompObj
|
java.lang.Object[] |
validValuesArr
|
java.util.Vector |
validValuesVec
|
Constructor Summary | |
---|---|
CfgPropValidator(java.lang.Comparable minValueCompObj,
java.lang.Comparable maxValueCompObj)
Creates a validator object with minimum and maximum values. |
|
CfgPropValidator(java.lang.Object[] objArr)
Creates a validator object with the given set of valid values. |
|
CfgPropValidator(java.lang.String allowedChars)
Creates a validator object with the given set of valid values. |
Method Summary | |
---|---|
boolean |
isMinimumNonNegative()
Returns true if this validator contains a minimum value that forces values to be greater than or equal to zero. |
boolean |
validateValue(java.lang.Object valueObj)
Validates the given value object against this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final java.lang.Comparable minValueCompObj
public final java.lang.Comparable maxValueCompObj
public final java.lang.Object[] validValuesArr
public final java.util.Vector validValuesVec
public final java.lang.String allowedChars
Constructor Detail |
---|
public CfgPropValidator(java.lang.Comparable minValueCompObj, java.lang.Comparable maxValueCompObj)
minValueCompObj
- a "minimum" value object that implements
the 'Comparable' interface (or null for no minimum).maxValueCompObj
- a "maximum" value object that implements
the 'Comparable' interface (or null for no maximum).public CfgPropValidator(java.lang.Object[] objArr)
objArr
- an array of acceptable-value 'Object's.public CfgPropValidator(java.lang.String allowedChars)
allowedChars
- a String of characters allowed.Method Detail |
---|
public boolean validateValue(java.lang.Object valueObj)
valueObj
- the value object to be validated.
public boolean isMinimumNonNegative()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |