2016-06-09 10:56:14 +02:00
|
|
|
package org.gcube.informationsystem.model.annotations;
|
|
|
|
|
|
|
|
import java.lang.annotation.ElementType;
|
|
|
|
import java.lang.annotation.Retention;
|
|
|
|
import java.lang.annotation.RetentionPolicy;
|
|
|
|
import java.lang.annotation.Target;
|
|
|
|
|
2016-07-01 16:02:37 +02:00
|
|
|
@Target(ElementType.METHOD)
|
2016-06-09 10:56:14 +02:00
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
|
public @interface ISProperty {
|
|
|
|
|
|
|
|
String name() default "";
|
|
|
|
String description() default "";
|
|
|
|
boolean mandatory() default false;
|
|
|
|
boolean readonly() default false;
|
|
|
|
boolean nullable() default true;
|
|
|
|
int min() default -1;
|
|
|
|
int max() default -1;
|
|
|
|
String regexpr() default "";
|
|
|
|
|
|
|
|
}
|