コード例 #1
0
  @Override
  public Collection<Constraint> getConstraints() {
    Collection<Constraint> constraints = new HashSet();

    constraints.addAll(unaryConstraints.getAll());
    constraints.addAll(binaryConstraints.getAll());

    return constraints;
  }
コード例 #2
0
 public Collection<UnaryConstraint> getUnaryConstraints() {
   return unaryConstraints.getAll();
 }
コード例 #3
0
 public UnaryConstraint getUnaryConstraint(Class<? extends UnaryConstraint> unaryConstraintClass) {
   return unaryConstraints.get(unaryConstraintClass);
 }
コード例 #4
0
 public void removeUnaryConstraint(Class<? extends UnaryConstraint> unaryConstraintClass) {
   unaryConstraints.remove(unaryConstraintClass);
   isDirty = true;
 }
コード例 #5
0
 public void addUnaryConstraint(UnaryConstraint unaryConstraint) {
   unaryConstraints.add(unaryConstraint);
   isDirty = true;
 }