Package jadex.base.gui
Class ParserValidator
- java.lang.Object
-
- jadex.base.gui.ParserValidator
-
- All Implemented Interfaces:
IValidator
public class ParserValidator extends java.lang.Object implements IValidator
A validator that tries to parse the text of a textfield.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.ClassLoader
classloader
The classloader.protected java.lang.String
lasttext
The text corresponding to the last valid state.protected boolean
lastvalid
Flag indicating the last valid state.protected IExpressionParser
parser
The parser.
-
Constructor Summary
Constructors Constructor Description ParserValidator(java.lang.ClassLoader classloader)
Create a parser validator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isValid(java.lang.Object object)
Return true when the given object is valid.
-
-
-
Field Detail
-
lastvalid
protected boolean lastvalid
Flag indicating the last valid state.
-
lasttext
protected java.lang.String lasttext
The text corresponding to the last valid state.
-
parser
protected IExpressionParser parser
The parser.
-
classloader
protected java.lang.ClassLoader classloader
The classloader.
-
-
Method Detail
-
isValid
public boolean isValid(java.lang.Object object)
Return true when the given object is valid.- Specified by:
isValid
in interfaceIValidator
-
-