code: public boolean hasConstraint (String constraint)
      {
          return (_constraints == null) ? false :
              ListUtil.contains(_constraints, constraint);
      }
docs: Checks whether this object has the given constraint.