xapi.ui.autoui.api.UiRendererOptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xapi-core-ui-autoui Show documentation
Show all versions of xapi-core-ui-autoui Show documentation
The core API for generating user interfaces from data models.
The newest version!
package xapi.ui.autoui.api;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@SuppressWarnings("rawtypes")
@Target({ElementType.METHOD, ElementType.TYPE, ElementType.PACKAGE})
@Retention(RetentionPolicy.RUNTIME)
public @interface UiRendererOptions {
Class extends UiRenderer>[] renderers() default {};
/**
* @return true if the current set of {@link #renderers()} should be applied to
* child nodes; when {@link UiRendererOptions} are used on a class, and {@link #isWrapper()}
* return true, then each renderer is applied to the child members of that class (enclosed types,
* and enclosed methods, as determined by method return type).
*
* In the future, package-level support will be supplied, to enable easy reusing of templates.
*/
boolean isWrapper() default false;
boolean isHead() default false;
boolean isTail() default false;
Class extends Validator>[] validators() default {};
Class extends UiRendererSelector> selector() default AlwaysTrue.class;
String template() default "";
String[] templatekeys() default {
"$name", "$value",
"$0", "$1", "$2", "$3", "$4", "$5", "$6", "$7", "$8", "$9"
};
}