PropertyConstraint e = (PropertyConstraint)compoundConstraint.iterator().next();
return e.getPropertyName();
}
public boolean isDependentOn(final String propertyName) {
return new AbstractConstraint() {
public boolean test(Object o) {
return ((PropertyConstraint)o).isDependentOn(propertyName);
}
}.anyTrue(compoundConstraint.iterator());
}