コード例 #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<BinaryConstraintEnd> getBinaryConstraints() {
   return binaryConstraints.getAll();
 }
コード例 #3
0
 public void removeBinaryConstraint(
     Class<? extends BinaryConstraintEnd> binaryConstraintClass, String otherName) {
   binaryConstraints.remove(binaryConstraintClass, otherName);
   isDirty = true;
 }
コード例 #4
0
 public void addBinaryConstraint(BinaryConstraintEnd binaryConstraint, String otherName) {
   binaryConstraints.add(binaryConstraint, otherName);
   isDirty = true;
 }
コード例 #5
0
 public void unbound(
     Class<? extends BinaryConstraintEnd> binaryConstraintClass, String otherName) {
   binaryConstraints.unbound(name, binaryConstraintClass, otherName);
   isDirty = true;
 }
コード例 #6
0
 public void bound(BinaryConstraintEnd binaryConstraint) {
   binaryConstraints.bound(this, binaryConstraint);
   isDirty = true;
 }
コード例 #7
0
 public void removeBinaryConstraints() {
   binaryConstraints.clear(name);
 }