Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.
      • classloader

        protected java.lang.ClassLoader classloader
        The classloader.
    • Constructor Detail

      • ParserValidator

        public ParserValidator​(java.lang.ClassLoader classloader)
        Create a parser validator.
    • Method Detail

      • isValid

        public boolean isValid​(java.lang.Object object)
        Return true when the given object is valid.
        Specified by:
        isValid in interface IValidator