Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * Carrot2 project.
  * Copyright (C) 2002-2012, Dawid Weiss, Stanisław Osiński.
  * All rights reserved.
  * Refer to the full license file "carrot2.LICENSE"
  * in the root folder of the repository checkout or at:
package org.carrot2.util.attribute.constraint;
A set of values for an attribute of type java.lang.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 If the enum type returned from values() implements IValueHintMapping interface, values checked are retrieved from the IValueHintMapping.getAttributeValue() method of each individual constant.

@IsConstraint(implementation = ValueHintEnumConstraint.class)
public @interface ValueHintEnum
    Class<? extends Enum<?>> values();
New to GrepCode? Check out our FAQ X