Annotation Interface BlockTrait.Values

Enclosing class:
BlockTrait

@Documented @Retention(RUNTIME) @Target({}) public static @interface BlockTrait.Values
Restricts the values a property may declare.
Since:
0.1.0
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Returns the accepted values.
    Returns the name of the restricted property, which is then required.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Returns true if the property must declare exactly the accepted values, false if it may declare any of them.
  • Element Details

    • property

      String property
      Returns the name of the restricted property, which is then required.
      Returns:
      the name of the restricted property, which is then required
      Since:
      0.1.0
    • allowed

      String[] allowed
      Returns the accepted values.
      Returns:
      the accepted values
      Since:
      0.1.0
    • exactly

      boolean exactly
      Returns true if the property must declare exactly the accepted values, false if it may declare any of them.
      Returns:
      true if the property must declare exactly the accepted values, false if it may declare any of them
      Since:
      0.1.0
      Default:
      false