-
Notifications
You must be signed in to change notification settings - Fork 5
/
BindText.java
29 lines (23 loc) · 887 Bytes
/
BindText.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package org.genericsystem.reactor.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.genericsystem.reactor.annotations.BindText.BindTexts;
import org.genericsystem.reactor.gscomponents.GSTagImpl;
import org.genericsystem.reactor.model.TextBinding;
import org.genericsystem.reactor.model.TextBinding.GENERIC_STRING;
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.TYPE })
@Repeatable(BindTexts.class)
public @interface BindText {
Class<? extends GSTagImpl>[] path() default {};
Class<? extends TextBinding> value() default GENERIC_STRING.class;
int[] pos() default {};
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.TYPE })
public @interface BindTexts {
BindText[] value();
}
}