Enum Class ModelProblem.Version

java.lang.Object
java.lang.Enum<ModelProblem.Version>
org.apache.maven.api.services.ModelProblem.Version
All Implemented Interfaces:
Serializable, Comparable<ModelProblem.Version>, Constable
Enclosing interface:
ModelProblem

public static enum ModelProblem.Version extends Enum<ModelProblem.Version>
Enumeration of model versions that can be validated. These versions correspond to different levels of validation that can be applied during model building, based on the POM schema version.

The validation levels are cumulative, with higher versions including all validations from lower versions plus additional checks specific to that version.

  • Enum Constant Details

  • Method Details

    • values

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

      public static ModelProblem.Version valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null