public class ExpressionSAXParser extends Object
Constructor and Description |
---|
ExpressionSAXParser() |
ExpressionSAXParser(FilterFactory2 factory) |
ExpressionSAXParser(SimpleFeatureType schema)
Constructor with a schema to read the attribute againset.
|
ExpressionSAXParser(SimpleFeatureType schema,
FilterFactory2 factory)
Constructor injection
|
Modifier and Type | Method and Description |
---|---|
protected static short |
convertType(String expType)
Converts the string representation of the expression to the DefaultExpression short type.
|
Expression |
create()
Creates and returns the expression.
|
void |
end(String message)
Called when the filter handler has reached the end of an expression
|
void |
geometry(Geometry geometry)
Gets geometry.
|
String |
getFunctionName(Attributes map)
stolen from the DOM parser -- for a list of attributes, find the "name" ie. for
|
boolean |
isReady()
Checks to see if this expression is ready to be returned.
|
void |
message(String message,
boolean convertToNumber)
Handles incoming characters.
|
void |
setFilterFactory(FilterFactory2 factory)
Setter injection
|
void |
start(String declaredType,
Attributes atts)
Initializes the factory to create a new expression.
|
public ExpressionSAXParser()
public ExpressionSAXParser(FilterFactory2 factory)
public ExpressionSAXParser(SimpleFeatureType schema)
schema
- The schema for attributes (null is fine, as the code for this is not in place.public ExpressionSAXParser(SimpleFeatureType schema, FilterFactory2 factory)
public void setFilterFactory(FilterFactory2 factory)
public void start(String declaredType, Attributes atts) throws IllegalFilterException
declaredType
- The string representation of the expression type.IllegalFilterException
- If there are problems creating expressions.public void end(String message) throws IllegalFilterException
message
- the expression to end.IllegalFilterException
- If there are problems creating exceptions.public boolean isReady()
public void message(String message, boolean convertToNumber) throws IllegalFilterException
message
- the incoming chars from the SAX handler.IllegalFilterException
- If there are problems with filter constrcution.public void geometry(Geometry geometry) throws IllegalFilterException
geometry
- The geometry from the filter.IllegalFilterException
- If there are problems creating expression.public Expression create()
protected static short convertType(String expType)
expType
- Type of filter for check.public String getFunctionName(Attributes map)
map
- Copyright © 1996–2019 Geotools. All rights reserved.