Enum ValidationPhase

java.lang.Object
java.lang.Enum<ValidationPhase>
dev.metaschema.core.model.constraint.ValidationPhase
All Implemented Interfaces:
Serializable, Comparable<ValidationPhase>

public enum ValidationPhase extends Enum<ValidationPhase>
Represents the distinct phases of the validation pipeline.

Used by ValidationEventListener to report phase-level timing events.

  • Enum Constant Details

    • SCHEMA_VALIDATION

      public static final ValidationPhase SCHEMA_VALIDATION
      Schema validation against XML or JSON schema.
    • CONSTRAINT_VALIDATION

      public static final ValidationPhase CONSTRAINT_VALIDATION
      Constraint evaluation against Metaschema constraints.
    • FINALIZATION

      public static final ValidationPhase FINALIZATION
      Post-validation finalization, including cross-document constraints.
  • Method Details

    • values

      public static ValidationPhase[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ValidationPhase 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