@Documented @Retention(value=RUNTIME) @Target(value=FIELD) public @interface Attribute
AttributeBinder. A field marked with Attribute will be referred to as
an attribute. In order for a type to have any of its attributes
bound, the type must be annotated with Bindable. Otherwise, the
Attribute annotations will be ignored.
Attributes denoted by Attribute must also be marked with one or both of
Input or Output, which define the direction of binding. Attribute
fields can also be marked with some extra domain-specific annotations that can then be
used to selectively bind only some of a Bindable's attributes (see
AttributeBinder for more details).
public abstract String key
AttributeBinder.set(Object, java.util.Map, Class...) method. If the
key is not provided, the attribute will have its key composed of the prefix defined
by the Bindable annotation on the enclosing class (see
Bindable.prefix()) followed by a dot (.) and the name of
the attribute field as returned by Field.getName().public abstract boolean inherit
Bindable.inherit(). The key() of this attribute must match exactly one of
the inherited attributes.Bindable.inherit()Copyright © 2013 Carrot2.org. All Rights Reserved.