Annotation Interface SemVerConstraintParser


@Documented @Retention(RUNTIME) @Target(TYPE) public @interface SemVerConstraintParser
An Annotation that allowing a subclass of SemVerConstraint can be parsed by SemVerConstraint.parse(Class, String).
Since:
1.0.0
See Also:
  • Element Details

    • enabled

      boolean enabled
      Allow annotated class can be parsed by SemVerConstraint.parse(Class, String).
      Returns:
      true if enable.
      Default:
      true
    • parserMethodName

      @Nonnull String parserMethodName
      Define which public static method of annotated class will be used when applying SemVerConstraint.parse(Class, String).
      The parser must return the same type of the located class with a String as parameter.
      Returns:
      Method name of the parser, default uses "parse".
      Default:
      "parse"