Annotation Type RequireSome


  • @Retention(RUNTIME)
    @Target(FIELD)
    public @interface RequireSome
    This annotation denotes that at least one of some set of options are required, the set of options are identified by a user defined tag.

    By using the same tag across several annotated options you can state that you require at least one of those options to be present. If you require only one from some set of options you should instead use RequireOnlyOne.

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String tag
      Provides a tag used to identify some set of options
    • Element Detail

      • tag

        java.lang.String tag
        Provides a tag used to identify some set of options
        Returns:
        Tag
        Default:
        ""