uima-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From twgo...@apache.org
Subject svn commit: r707123 - /incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/FSBooleanConstraintImpl.java
Date Wed, 22 Oct 2008 16:30:27 GMT
Author: twgoetz
Date: Wed Oct 22 09:30:26 2008
New Revision: 707123

URL: http://svn.apache.org/viewvc?rev=707123&view=rev
Log:
Jira UIMA-1188: add boolean fs constraint.  Code contributed by Julien Nioche, see Jira issue.

https://issues.apache.org/jira/browse/UIMA-1188

Modified:
    incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/FSBooleanConstraintImpl.java

Modified: incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/FSBooleanConstraintImpl.java
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/FSBooleanConstraintImpl.java?rev=707123&r1=707122&r2=707123&view=diff
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/FSBooleanConstraintImpl.java
(original)
+++ incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/FSBooleanConstraintImpl.java
Wed Oct 22 09:30:26 2008
@@ -50,4 +50,13 @@
     return (this.condition == cond);
   }
 
+  public String toString() {
+    // need to escape quotes and backslashes
+    StringBuffer buf = new StringBuffer();
+    buf.append("= \"");
+    buf.append(this.condition);
+    buf.append("\"");
+    return buf.toString();
+}
+  
 }



Mime
View raw message