|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.filter.FilterFactory
This specifies the interface to create filters.
FeatureTypeFactory
,
as that provides a good example of what this should look like. The
mutable factory to create immutable objects is a good model for this.
The creation methods should only create fully formed filters. This
in turn means that all the set functions in the filters should be
eliminated. When rewriting this class/package, keep in mind
FilterSAXParser in the filter module, as the factory should fit
cleanly with that, and should handle sax parsing without too much
memory overhead., REVISIT: resolve errors, should all throw errors?Constructor Summary | |
FilterFactory()
|
Method Summary | |
abstract AttributeExpression |
createAttributeExpression(AttributeType at)
|
abstract AttributeExpression |
createAttributeExpression(FeatureType schema)
Creates a Attribute Expression with an initial schema. |
abstract AttributeExpression |
createAttributeExpression(FeatureType schema,
java.lang.String path)
Creates a Attribute Expression given a schema and attribute path. |
abstract BBoxExpression |
createBBoxExpression(com.vividsolutions.jts.geom.Envelope env)
Creates a BBox Expression from an envelope. |
abstract BetweenFilter |
createBetweenFilter()
Creates an empty Between Filter. |
abstract CompareFilter |
createCompareFilter(short type)
Creates a new compare filter of the given type. |
abstract EnvironmentVariable |
createEnvironmentVariable(java.lang.String name)
Creates an Environment Variable |
abstract FidFilter |
createFidFilter()
Creates a new Fid Filter with no initial fids. |
abstract FidFilter |
createFidFilter(java.lang.String fid)
Creates a Fid Filter with an initial fid. |
static FilterFactory |
createFilterFactory()
Creates an instance of a Filter factory. |
abstract FunctionExpression |
createFunctionExpression(java.lang.String name)
Creates a Function Expression. |
abstract GeometryDistanceFilter |
createGeometryDistanceFilter(short filterType)
Creates a Geometry Distance Filter |
abstract GeometryFilter |
createGeometryFilter(short filterType)
Creates a Geometry Filter. |
abstract LikeFilter |
createLikeFilter()
Creates a Like Filter. |
abstract LiteralExpression |
createLiteralExpression()
Creates an empty Literal Expression |
abstract LiteralExpression |
createLiteralExpression(double d)
Creates a Double Literal Expression |
abstract LiteralExpression |
createLiteralExpression(int i)
Creates an Integer Literal Expression. |
abstract LiteralExpression |
createLiteralExpression(java.lang.Object o)
Creates a Literal Expression from an Object. |
abstract LiteralExpression |
createLiteralExpression(java.lang.String s)
Creates a String Literal Expression |
abstract LogicFilter |
createLogicFilter(Filter filter1,
Filter filter2,
short filterType)
Creates a logic filter from two filters and a type. |
abstract LogicFilter |
createLogicFilter(Filter filter,
short filterType)
Creates a logic filter with an initial filter.. |
abstract LogicFilter |
createLogicFilter(short filterType)
Creates an empty logic filter from a type. |
abstract MathExpression |
createMathExpression()
Creates a Math Expression |
abstract MathExpression |
createMathExpression(short expressionType)
Creates a Math Expression of the given type. |
abstract NullFilter |
createNullFilter()
Creates an empty Null Filter. |
java.util.Map |
getImplementationHints()
Returns the implementation hints. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FilterFactory()
Method Detail |
public static FilterFactory createFilterFactory() throws FactoryConfigurationError
FactoryConfigurationError
- If a factory is not found.public abstract LogicFilter createLogicFilter(Filter filter1, Filter filter2, short filterType) throws IllegalFilterException
filter1
- the first filter to join.filter2
- the second filter to join.filterType
- must be a logic type.
IllegalFilterException
- If there were any problems creating the
filter, including wrong type.public abstract LogicFilter createLogicFilter(short filterType) throws IllegalFilterException
filterType
- must be a logic type.
IllegalFilterException
- If there were any problems creating the
filter, including wrong type.public abstract LogicFilter createLogicFilter(Filter filter, short filterType) throws IllegalFilterException
filter
- the initial filter to set.filterType
- Must be a logic type.
IllegalFilterException
- If there were any problems creating the
filter, including wrong type.public abstract BBoxExpression createBBoxExpression(com.vividsolutions.jts.geom.Envelope env) throws IllegalFilterException
env
- the envelope to use for this bounding box.
IllegalFilterException
- if there were creation problems.public abstract LiteralExpression createLiteralExpression(int i)
i
- the int to serve as literal.
public abstract MathExpression createMathExpression() throws IllegalFilterException
IllegalFilterException
- if there were creation problems.public abstract FidFilter createFidFilter()
public abstract AttributeExpression createAttributeExpression(FeatureType schema, java.lang.String path) throws IllegalFilterException
schema
- the schema to get the attribute from.path
- the xPath of the attribute to compare.
IllegalFilterException
- if there were creation problems.public abstract AttributeExpression createAttributeExpression(AttributeType at) throws IllegalFilterException
IllegalFilterException
public abstract LiteralExpression createLiteralExpression(java.lang.Object o) throws IllegalFilterException
o
- the object to serve as the literal.
IllegalFilterException
- if there were creation problems.public abstract CompareFilter createCompareFilter(short type) throws IllegalFilterException
type
- the type of comparison - must be a compare type.
IllegalFilterException
- if there were creation problems.public abstract LiteralExpression createLiteralExpression()
public abstract LiteralExpression createLiteralExpression(java.lang.String s)
s
- the string to serve as the literal.
public abstract LiteralExpression createLiteralExpression(double d)
d
- the double to serve as the literal.
public abstract AttributeExpression createAttributeExpression(FeatureType schema)
schema
- the schema to create with.
public abstract MathExpression createMathExpression(short expressionType) throws IllegalFilterException
expressionType
- must be a math expression type.
IllegalFilterException
- if there were creation problems.public abstract NullFilter createNullFilter()
public abstract BetweenFilter createBetweenFilter() throws IllegalFilterException
IllegalFilterException
- if there were creation problems.public abstract GeometryFilter createGeometryFilter(short filterType) throws IllegalFilterException
filterType
- the type to create, must be a geometry type.
IllegalFilterException
- if the filterType is not a geometry.public abstract GeometryDistanceFilter createGeometryDistanceFilter(short filterType) throws IllegalFilterException
filterType
- the type to create, must be beyond or dwithin.
IllegalFilterException
- if the filterType is not a geometry
distance type.public abstract FidFilter createFidFilter(java.lang.String fid)
fid
- the feature ID to create with.
public abstract LikeFilter createLikeFilter()
public abstract FunctionExpression createFunctionExpression(java.lang.String name)
name
- the function name.
public abstract EnvironmentVariable createEnvironmentVariable(java.lang.String name)
name
- the function name.
public java.util.Map getImplementationHints()
getImplementationHints
in interface Factory
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |