public class ValueConstraint extends Constraint
If the collection of data types is null components processing
this constraint are encouraged to deduct the data types based on the type
of the value.
| Modifier and Type | Class and Description |
|---|---|
static class |
ValueConstraint.MODE
The mode how multiple values are treated
|
Constraint.ConstraintType| Modifier and Type | Field and Description |
|---|---|
static ValueConstraint.MODE |
DEFAULT_MODE
The default
ValueConstraint.MODE is ValueConstraint.MODE.any |
| Constructor and Description |
|---|
ValueConstraint(Object value) |
ValueConstraint(Object value,
Iterable<String> dataTypes) |
ValueConstraint(Object value,
Iterable<String> dataTypes,
ValueConstraint.MODE mode) |
| Modifier and Type | Method and Description |
|---|---|
Collection<String> |
getDataTypes()
Getter for the list of the parsed data types URIs
|
ValueConstraint.MODE |
getMode()
Getter for the
ValueConstraint.MODE of this ValueConstraint |
Set<Object> |
getValues()
Getter for the value
|
String |
toString() |
getBoost, getType, setBoostpublic static final ValueConstraint.MODE DEFAULT_MODE
ValueConstraint.MODE is ValueConstraint.MODE.anypublic ValueConstraint(Object value)
public ValueConstraint(Object value, Iterable<String> dataTypes, ValueConstraint.MODE mode)
public final Set<Object> getValues()
null if the value is not constraintpublic ValueConstraint.MODE getMode()
ValueConstraint.MODE of this ValueConstraintpublic final Collection<String> getDataTypes()
public String toString()
toString in class ConstraintCopyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.