public class FilterSAXParser extends Object
| Constructor and Description |
|---|
FilterSAXParser()
Constructor which flags the operator as between.
|
FilterSAXParser(FilterFactory2 factory)
Constructor injdection
|
| Modifier and Type | Method and Description |
|---|---|
Filter |
create()
Creates the filter held in the parser.
|
void |
expression(Expression expression)
Adds the passed in expression to the current filter.
|
void |
setAttributes(Attributes atts)
Sets the filter attributes.
|
void |
setDistance(String distance,
String units)
This sets the distance for a GeometryDistanceFilter.
|
void |
setFilterFactory(FilterFactory2 factory)
Setter injection
|
void |
start(short filterType)
Handles all incoming generic string 'messages,' including a message to create the filter,
based on the XML tag that represents the start of the filter.
|
void |
value(String message)
Handles all incoming generic string 'messages,' including a message to create the filter,
based on the XML tag that represents the start of the filter.
|
public FilterSAXParser()
public FilterSAXParser(FilterFactory2 factory)
public void setFilterFactory(FilterFactory2 factory)
public void start(short filterType)
throws IllegalFilterException
filterType - The string from the SAX filter.IllegalFilterException - Filter is illegal.public void value(String message) throws IllegalFilterException
message - The string from the SAX filter.IllegalFilterException - Filter is illegal.public void expression(Expression expression) throws IllegalFilterException
expression - The value of the attribute for comparison.IllegalFilterException - if the expression does not match what the current filter is
expecting.public Filter create() throws IllegalFilterException
IllegalFilterException - If called before the filter is in a complete state.public void setDistance(String distance, String units) throws IllegalFilterException
distance - the distance - should be a string of a double.units - a reference to a units dictionary.IllegalFilterException - if the distance string can not be converted to a double.public void setAttributes(Attributes atts)
atts - the attributes to set.Copyright © 1996–2021 Geotools. All rights reserved.