[MOBY-guts] biomoby commit

Paul Gordon gordonp at dev.open-bio.org
Fri Apr 9 15:48:19 UTC 2010


gordonp
Fri Apr  9 11:48:19 EDT 2010
Update of /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/util
In directory dev.open-bio.org:/tmp/cvs-serv1250/src/main/ca/ucalgary/seahawk/util

Modified Files:
	FilterSearch.java 
Log Message:
Added case sensitivity, constant for select-all xpath
moby-live/Java/src/main/ca/ucalgary/seahawk/util FilterSearch.java,1.2,1.3
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/util/FilterSearch.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/util/FilterSearch.java	2010/03/29 19:49:52	1.2
+++ /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/util/FilterSearch.java	2010/04/09 15:48:19	1.3
@@ -20,9 +20,11 @@
 public class FilterSearch{
 
     private URL docURL;
+    private boolean caseSensitivity = false;
     private StringBuffer filterRegex;
     private Vector<XPathOption> xpathOptions;
     private int xpathSelected = 0;
+    public static final String SELECT_ALL_XPATH = "//* | //*/@*";
 
     /**
      * @param docToFilter the document that will be used to determine what XPaths can be suggested
@@ -34,7 +36,7 @@
 	docURL = docToFilter;
 	filterRegex = new StringBuffer();
 	xpathOptions = new Vector<XPathOption>();
-	xpathOptions.add(new XPathOption("//*", "entire document"));
+	xpathOptions.add(new XPathOption(SELECT_ALL_XPATH, "entire response"));
 	Document domDoc = docBuilder.parse(docURL.openStream());
 	// Get the moby jobs
 	NodeList jobs = domDoc.getDocumentElement().getElementsByTagNameNS(MobyPrefixResolver.MOBY_XML_NAMESPACE, MobyTags.MOBYDATA);
@@ -72,6 +74,14 @@
 	}
     }
 
+    public boolean getCaseSensitivity(){
+	return caseSensitivity;
+    }
+
+    public void setCaseSensitivity(boolean sensitivity){
+	caseSensitivity = sensitivity;
+    }
+
     public void setSelectedXPath(int cursor){
 	xpathSelected = cursor;
     }




More information about the MOBY-guts mailing list