Version: 1.1.1

ca.ucalgary.seahawk.util
Class FilterSearch

java.lang.Object
  extended by ca.ucalgary.seahawk.util.FilterSearch

public class FilterSearch
extends Object

Holds info to limit the display of information from a document to some combination of a regex match and an XPath. This info is especially useful for creating a Taverna filter processor if the browsing history is exported as a workflow. The regex and the XPath vector are mutable so GUI components can update the values on the fly while editing.


Field Summary
static String SELECT_ALL_XPATH
           
 
Constructor Summary
FilterSearch(String regex, XPathOption xpath, boolean case_sensitive, boolean inverse_selection)
          A c-tor to manually populate the filter with a specific set of filter criteria.
FilterSearch(URL docToFilter, DocumentBuilder docBuilder)
          Autopopulates the possible search field values based on the incoming doc
 
Method Summary
 boolean equals(Object o)
           
 boolean getCaseSensitivity()
           
 StringBuffer getFilterRegex()
           
 XPathOption getSelectedXPath()
           
 boolean getSelectionInversed()
           
 Vector<XPathOption> getXPathOptions()
           
 void setCaseSensitivity(boolean sensitivity)
           
 void setSelectedXPath(int cursor)
           
 void setSelectionInversed(boolean inversed)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SELECT_ALL_XPATH

public static final String SELECT_ALL_XPATH
See Also:
Constant Field Values
Constructor Detail

FilterSearch

public FilterSearch(String regex,
                    XPathOption xpath,
                    boolean case_sensitive,
                    boolean inverse_selection)
A c-tor to manually populate the filter with a specific set of filter criteria. No autopoulation of options is done.


FilterSearch

public FilterSearch(URL docToFilter,
                    DocumentBuilder docBuilder)
             throws Exception
Autopopulates the possible search field values based on the incoming doc

Parameters:
docToFilter - the document that will be used to determine what XPaths can be suggested
docBuilder - the xml parser to use on the document
Throws:
Exception - if the URL given could not be loaded
Method Detail

getSelectionInversed

public boolean getSelectionInversed()

setSelectionInversed

public void setSelectionInversed(boolean inversed)

getCaseSensitivity

public boolean getCaseSensitivity()

setCaseSensitivity

public void setCaseSensitivity(boolean sensitivity)

setSelectedXPath

public void setSelectedXPath(int cursor)

getSelectedXPath

public XPathOption getSelectedXPath()

getFilterRegex

public StringBuffer getFilterRegex()

getXPathOptions

public Vector<XPathOption> getXPathOptions()

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010