Class CallbackValidator
- java.lang.Object
-
- gaia.cu9.ari.gaiaorbit.util.validator.CallbackValidator
-
- All Implemented Interfaces:
IValidator
- Direct Known Subclasses:
ExistingLocationValidator
,FloatValidator
,IntValidator
,LengthValidator
,RegexpValidator
public abstract class CallbackValidator extends java.lang.Object implements IValidator
-
-
Constructor Summary
Constructors Constructor Description CallbackValidator()
CallbackValidator(IValidator parent)
CallbackValidator(java.lang.Runnable correctCallback, java.lang.Runnable incorrectCallback)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
runIsInvalidCallback()
protected void
runIsValidCallback()
void
setIsInvalidCallback(java.lang.Runnable isInvalidCallback)
void
setIsValidCallback(java.lang.Runnable isValidCallback)
boolean
validate(java.lang.String value)
protected abstract boolean
validateLocal(java.lang.String value)
-
-
-
Constructor Detail
-
CallbackValidator
public CallbackValidator()
-
CallbackValidator
public CallbackValidator(IValidator parent)
-
CallbackValidator
public CallbackValidator(java.lang.Runnable correctCallback, java.lang.Runnable incorrectCallback)
-
-
Method Detail
-
setIsValidCallback
public void setIsValidCallback(java.lang.Runnable isValidCallback)
-
setIsInvalidCallback
public void setIsInvalidCallback(java.lang.Runnable isInvalidCallback)
-
runIsValidCallback
protected void runIsValidCallback()
-
runIsInvalidCallback
protected void runIsInvalidCallback()
-
validate
public boolean validate(java.lang.String value)
- Specified by:
validate
in interfaceIValidator
-
validateLocal
protected abstract boolean validateLocal(java.lang.String value)
-
-