public interface Filter extends XMLizable, Serializable
IndexBuildItems in order to specify which annotation instances are subject to indexing
 according to the rule specified by the IndexBuildItem.
 
 We support an open-ended schema for filters. Each Filter has a syntax
 declaration and an expression. Each are arbitrary strings. The syntax
 declaration is intended to tell the indexer how to interpret the expression. Any given indexer
 implementation will declare which syntaxes it supports.
 
 The only syntax the indexers are required to import is the FeatureValue syntax,
 which permits very simple expressions that test the values of features. Expressions using this
 syntax take the form <FeatureName> <Operator> <Literal>, where
 FeatureName is a CAS feature name, Operator is either =, !=, <, <=, >, or ≥=, and
 Literal is an integer, floating point number (no exponent syntax supported) or string literal
 enclosed in double quotes, with embedded quotes and backslashes escaped by a backslash. For
 example, the following are valid filters:
 
XMLizable interface and can be parsed from an XML
 representation.| Modifier and Type | Method and Description | 
|---|---|
| String | getExpression()Gets the filter expression. | 
| String | getSyntax()Gets the declared syntax for this filter's expression. | 
| void | setExpression(String aExpression)Sets the filter expression. | 
| void | setSyntax(String aSyntax)Sets the declared syntax for this this filter's expression. | 
buildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXMLString getSyntax()
void setSyntax(String aSyntax)
aSyntax - an identifier indicating the syntax used by this filterString getExpression()
syntax.Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.