Enum FieldRefValidator

    • Method Detail

      • values

        public static FieldRefValidator[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (FieldRefValidator c : FieldRefValidator.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static FieldRefValidator valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • isBasicValidator

        public boolean isBasicValidator()
        Description copied from interface: BodyValidator
        Basic validators run essential checks and are run always if validate is called.
        If this method returns false and the caller of the validator respects this property,
        the checks will only be run if the debug or validation option is activated.
        Specified by:
        isBasicValidator in interface BodyValidator
        Specified by:
        isBasicValidator in interface Validator<Body>
        Returns:
        whether this validator is a basic validator