public class FilterProcessor extends Object
Each filter type can have a set of leaf elements that will be used to build the search term contributed by that filter to the entire query being assembled. Each filter can have parameters defined that control how the query is built.
Constructor and Description |
---|
FilterProcessor() |
Modifier and Type | Method and Description |
---|---|
String |
getDefaults()
Get default filter element values
|
String |
getDelimiter()
Get the token delimeter used to separate values
|
Boolean |
getEscapeSpecialChars()
Get the setting that determines if special characters should be escaped in this filter value
|
String |
getFilterValue(Node node)
Convert an XML '
|
List<LeafElement> |
getLeafs()
Get the leaf (child element) of a filter
|
String |
getMatchElement()
Get the string used to match this filter to an application context description
|
String |
getName()
Get the name of this filter
|
Boolean |
getQuoteMultipleWords()
Get the setting that determines if multiple word values are quoted
|
String |
getTemplate()
Get the template used by this filter
|
String |
getxPath()
Get the XPath used by this filter
|
XPathExpression |
getxPathExpression()
Get the XPath expression used to process this filter
|
void |
initXPathExpressions()
Initialize an XPath expression used to find the nodes in a filter.
|
void |
setDefaults(String defaults)
Set default filter element values
|
void |
setDelimiter(String delimiter)
Set the token delimeter used to separate values
|
void |
setEscapeSpecialChars(Boolean escapeSpecialChars)
Set the setting that determines if special characters should be escaped in this filter value
|
void |
setLeafs(List<LeafElement> leafs)
Set the leaf (child element) of a filter
|
void |
setMatchElement(String matchElement)
Set the string used to match this filter to an application context description
|
void |
setName(String name)
Set the name of this filter
|
void |
setQuoteMultipleWords(Boolean quoteMultipleWords)
Set the setting that determines if multiple word values are quoted
|
void |
setTemplate(String template)
Set the template used by this filter
|
void |
setxPath(String xPath)
Set the XPath used by this filter
|
void |
setxPathExpression(XPathExpression xPathExpression)
Set the XPath expression used to process this filter
|
public String getFilterValue(Node node) throws XPathExpressionException
node
- the XML node (i.e. a "XPathExpressionException
public void initXPathExpressions()
public String getName()
public void setName(String name)
name
- the name of this filterpublic String getxPath()
public void setxPath(String xPath)
xPath
- the XPath used by this filterpublic String getDefaults()
public void setDefaults(String defaults)
defaults
- the filter element defaultspublic Boolean getEscapeSpecialChars()
public void setEscapeSpecialChars(Boolean escapeSpecialChars)
escapeSpecialChars
- public Boolean getQuoteMultipleWords()
public void setQuoteMultipleWords(Boolean quoteMultipleWords)
quoteMultipleWords
- public XPathExpression getxPathExpression()
public void setxPathExpression(XPathExpression xPathExpression)
xPathExpression
- public String getDelimiter()
public void setDelimiter(String delimiter)
delimiter
- public String getTemplate()
public void setTemplate(String template)
template
- the template used by this filterpublic String getMatchElement()
public void setMatchElement(String matchElement)
matchElement
- public List<LeafElement> getLeafs()
public void setLeafs(List<LeafElement> leafs)
leafs
- the leaf (child element) of a filterCopyright © 2022. All rights reserved.