diff --git a/common/source/java/ch/systemsx/cisd/common/annotation/BeanProperty.java b/common/source/java/ch/systemsx/cisd/common/annotation/BeanProperty.java index a021a3df510260ba1415f9ac9f83d6146eb3821c..258ea2e58d77005a88337d4430461870443310e1 100644 --- a/common/source/java/ch/systemsx/cisd/common/annotation/BeanProperty.java +++ b/common/source/java/ch/systemsx/cisd/common/annotation/BeanProperty.java @@ -37,8 +37,16 @@ public @interface BeanProperty /** * Whether this bean property is optional or not. * <p> - * Default is <code>false</code>. + * Default is <code>false</code> meaning that any field annotated with this is mandatory. * </p> */ public boolean optional() default false; + + /** + * Static label (or alias) for this annotated field. + * <p> + * This <b>must</b> be specified as the parser prefers to work with the label than with the field name. + * </p> + */ + public String label() default ""; }