Annotation Type Attribute


  • @Target({PARAMETER,METHOD})
    @Retention(RUNTIME)
    public @interface Attribute
    Marks a method as providing an attribute and parameters for Uri-annotated methods as using this attribute. Similar to Spring MVC's @ModelAttribute.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean required
      Indicates if the attribute is required.
      java.lang.String value
      The attribute name.
    • Element Detail

      • value

        java.lang.String value
        The attribute name. If not supplied, the name is inferred from the method name or the parameter name.
        Returns:
        Default:
        ""
      • required

        boolean required
        Indicates if the attribute is required. This only has effect when applied to a method parameter.
        Returns:
        Default:
        true