Class IsA

    • Constructor Detail

      • IsA

        public IsA()
        Default constructor - used for serialisation.
      • IsA

        public IsA​(Class<?> type)
        Create an IsA validate that tests for instances of a given control Class.
        Parameters:
        type - Control class.
      • IsA

        public IsA​(String type)
        Create an IsA validate that tests for instances of a given control class name.
        Parameters:
        type - Name of the control class.
    • Method Detail

      • setType

        public void setType​(String type)
        Parameters:
        type - Name of the control class.
      • getType

        public String getType()
        Returns:
        Name of the control class.
      • test

        public boolean test​(Object input)
        Tests whether the argument supplied is an instance of the control class.
        Parameters:
        input - Object to test.
        Returns:
        true if input is null or non-null and can be cast to the control class, otherwise false.