public final class PropertyConstraint extends Object
| Constructor and Description |
|---|
PropertyConstraint(String propertyName,
ValueComparator valueComparator,
Value value)
Constructs a property constraint with a property name, comparator and
one or more values.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getPropertyName()
Returns the name of the property.
|
Value |
getValue()
Gets the value of the constraint.
|
ValueComparator |
getValueComparator()
Gets the comparator of the constraint.
|
int |
hashCode() |
String |
toString() |
public PropertyConstraint(String propertyName, ValueComparator valueComparator, Value value)
propertyName - the name of the property. Cannot be
null.valueComparator - the comparator. Cannot be null.values - the values to compare against.public String getPropertyName()
String. Guaranteed not
null.public Value getValue()
ValueList to specify a multi-
valued constraint.Value.public ValueComparator getValueComparator()
ValueComparator. Guaranteed not null.Copyright © 2012–2016 Emory University. All rights reserved.