Annotation Interface DependentRequired


public @interface DependentRequired
A property name and an associated list of other property names.

Used with Schema.dependentRequired(), if an object has a property named name(), it must also have properties with the names in requires().

Since:
4.0
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The property name to look for
    The property names that an object is required to have, if it has a property named name()
  • Element Details

    • name

      String name
      The property name to look for
      Returns:
      a property name
    • requires

      String[] requires
      The property names that an object is required to have, if it has a property named name()
      Returns:
      the required property names