org.carrot2.util.attribute.constraint
Annotation Type ValueHintEnum


@Target(value=FIELD)
@Retention(value=RUNTIME)
public @interface ValueHintEnum

A set of values for an attribute of type String. This can be either a hint (for user interfaces) or a restriction (which causes the attribute to behave much like an enum type).

By default the constraint accepts values returned from Enum.name(). If the enum type returned from values() implements IValueHintMapping interface, values checked are retrieved from the IValueHintMapping.getAttributeValue() method of each individual constant.

See Also:
Required

Required Element Summary
 Class<? extends Enum<?>> values
           
 

Element Detail

values

public abstract Class<? extends Enum<?>> values


Copyright (c) Dawid Weiss, Stanislaw Osinski