public static enum Constraint.ConstraintType extends Enum<Constraint.ConstraintType>
| Enum Constant and Description |
|---|
range
Constraints a field to have a value within a range
|
similarity
Constraints a field to have a lexical value along with statistics to be able to compute a
similarity metric (e.g. using the MoreLikeThis Solr handler)
|
text
Constraints a field to have a lexical value
|
value
Constraints the value and possible the dataType
|
| Modifier and Type | Method and Description |
|---|---|
static Constraint.ConstraintType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Constraint.ConstraintType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Constraint.ConstraintType value
public static final Constraint.ConstraintType range
public static final Constraint.ConstraintType text
public static final Constraint.ConstraintType similarity
public static Constraint.ConstraintType[] values()
for (Constraint.ConstraintType c : Constraint.ConstraintType.values()) System.out.println(c);
public static Constraint.ConstraintType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullCopyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.