ca.ucalgary.seahawk.util
Class FilterSearch
java.lang.Object
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.
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 |
SELECT_ALL_XPATH
public static final String SELECT_ALL_XPATH
- See Also:
- Constant Field Values
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 suggesteddocBuilder
- the xml parser to use on the document
- Throws:
Exception
- if the URL given could not be loaded
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
Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010