|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.filter.FilterSAXParser
Creates filters from FilterFilter, which reads in a SAX stream and passes the appropriate messages here.
Constructor Summary | |
FilterSAXParser()
Constructor which flags the operator as between. |
|
FilterSAXParser(FilterFactory factory)
Constructor injdection |
Method Summary | |
Filter |
create()
Creates the filter held in the parser. |
void |
expression(Expression expression)
Adds the passed in expression to the current filter. |
void |
setAttributes(org.xml.sax.Attributes atts)
Sets the filter attributes. |
void |
setDistance(java.lang.String distance,
java.lang.String units)
This sets the distance for a GeometryDistanceFilter. |
void |
setFilterFactory(FilterFactory 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(java.lang.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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FilterSAXParser()
public FilterSAXParser(FilterFactory factory)
Method Detail |
public void setFilterFactory(FilterFactory factory)
public void start(short filterType) throws IllegalFilterException
filterType
- The string from the SAX filter.
IllegalFilterException
- Filter is illegal.public void value(java.lang.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(java.lang.String distance, java.lang.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(org.xml.sax.Attributes atts)
atts
- the attributes to set.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |