Enum SchemaValidationPolicy.Action

    • Enum Constant Detail

      • WARN

        public static final SchemaValidationPolicy.Action WARN
        Schema validation will be performed, but failures will not cause the overall validation to fail. Error messages will be returned.
      • REJECT

        public static final SchemaValidationPolicy.Action REJECT
        Schema validation will be performed and failures will cause the overall validation to fail. Error messages will be returned.
    • Method Detail

      • values

        public static SchemaValidationPolicy.Action[] 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 (SchemaValidationPolicy.Action c : SchemaValidationPolicy.Action.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SchemaValidationPolicy.Action 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
      • isIgnore

        public boolean isIgnore()
        Returns true if this policy is IGNORE.
        Returns:
        true if this policy is IGNORE.
      • isReject

        public boolean isReject()
        Returns true if this policy is REJECT.
        Returns:
        true if this policy is REJECT.
      • isWarn

        public boolean isWarn()
        Returns true if this policy is WARN.
        Returns:
        true if this policy is WARN.
      • needsChecking

        public boolean needsChecking()
        Returns true if this policy is WARN or REJECT.
        Returns:
        true if this policy is WARN or REJECT.