X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Futils%2Fresources%2FMeta.java;h=a83bcca418df48fca8f51efa6c1cf9b1275c8174;hb=c637d2e077e7c6e78c27c76bc20eb36624cd310f;hp=d377dcc5c10c1c08ed0c7e98a4ae6a3f7be5bbd8;hpb=db31c35860081535d6e7ddc83ab4af573bb0522e;p=fanfix.git diff --git a/src/be/nikiroo/utils/resources/Meta.java b/src/be/nikiroo/utils/resources/Meta.java index d377dcc..a83bcca 100644 --- a/src/be/nikiroo/utils/resources/Meta.java +++ b/src/be/nikiroo/utils/resources/Meta.java @@ -46,11 +46,22 @@ public @interface Meta { * custom String value (basically, a {@link Format#FIXED_LIST} with an * option to enter a not accounted for value). */ - COMBO_LIST + COMBO_LIST, + /** + * A list of {@link Format#STRING}s. + *

+ * The list items are separated by a comma, each surrounded by + * double-quotes, with backslashes and double-quotes escaped by a + * backslash. + *

+ * Example: "un", "deux" + */ + LIST_OF_STRINGS, } /** - * A description of this item. + * A description of this item (what it is or does, how to explain that item + * to the user). * * @return what it is */ @@ -63,7 +74,7 @@ public @interface Meta { * use the value in the program, and LANGUAGE_CODE_FR, LANGUAGE_CODE_EN * inside for which the value must be set. * - * @return the group + * @return TRUE if it is a group */ boolean group() default false; @@ -89,6 +100,13 @@ public @interface Meta { */ boolean nullable() default true; + /** + * The default value of this item. + * + * @return the value + */ + String def() default ""; + /** * This item is a comma-separated list of values instead of a single value. *