org.carrot2.util.attribute
Annotation Type Bindable


@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface Bindable

Denotes types that will have some of their fields bound (set or collected) by the AttributeBinder. Fields to be bound are denoted by the Attribute annotation. If a type has some its fields annotated by Attribute, but the type itself is not marked with Bindable, the Attribute annotations will be ignored.


Optional Element Summary
 Class<?>[] inherit
          Inherit attribute descriptions (metadata) from other bindable types.
 String prefix
          The prefix for the keys of attributes defined in the bindable type.
 

prefix

public abstract String prefix
The prefix for the keys of attributes defined in the bindable type. If the prefix is not provided, the fully qualified class name (as obtained from Class.getName() will be used. For more information on how prefix() works with attribute keys, see Attribute.key();

Default:
""

inherit

public abstract Class<?>[] inherit
Inherit attribute descriptions (metadata) from other bindable types. Each attribute should use inherit key to indicate which attribute it inherits metadata from.

Default:
{}


Copyright (c) Dawid Weiss, Stanislaw Osinski