|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.filter.FilterFactory
org.geotools.filter.FilterFactoryImpl
Implementation of the FilterFactory, generates the filter implementations in defaultcore.
Constructor Summary | |
FilterFactoryImpl()
Creates a new instance of FilterFactoryImpl |
Method Summary | |
AttributeExpression |
createAttributeExpression(AttributeType at)
|
AttributeExpression |
createAttributeExpression(FeatureType schema)
Creates a Attribute Expression with an initial schema. |
AttributeExpression |
createAttributeExpression(FeatureType schema,
java.lang.String path)
Creates a Attribute Expression given a schema and attribute path. |
BBoxExpression |
createBBoxExpression(com.vividsolutions.jts.geom.Envelope env)
Creates a BBox Expression from an envelope. |
BetweenFilter |
createBetweenFilter()
Creates an empty Between Filter. |
CompareFilter |
createCompareFilter(short type)
Creates a new compare filter of the given type. |
EnvironmentVariable |
createEnvironmentVariable(java.lang.String name)
Creates an Environment Variable |
FidFilter |
createFidFilter()
Creates a new Fid Filter with no initial fids. |
FidFilter |
createFidFilter(java.lang.String fid)
Creates a Fid Filter with an initial fid. |
FunctionExpression |
createFunctionExpression(java.lang.String name)
Creates a Function Expression. |
GeometryDistanceFilter |
createGeometryDistanceFilter(short filterType)
Creates a Geometry Distance Filter |
GeometryFilter |
createGeometryFilter(short filterType)
Creates a Geometry Filter. |
LikeFilter |
createLikeFilter()
Creates a Like Filter. |
LiteralExpression |
createLiteralExpression()
Creates an empty Literal Expression |
LiteralExpression |
createLiteralExpression(double d)
Creates a Double Literal Expression |
LiteralExpression |
createLiteralExpression(int i)
Creates an Integer Literal Expression. |
LiteralExpression |
createLiteralExpression(java.lang.Object o)
Creates a Literal Expression from an Object. |
LiteralExpression |
createLiteralExpression(java.lang.String s)
Creates a String Literal Expression |
LogicFilter |
createLogicFilter(Filter filter1,
Filter filter2,
short filterType)
Creates a logic filter from two filters and a type. |
LogicFilter |
createLogicFilter(Filter filter,
short filterType)
Creates a logic filter with an initial filter. |
LogicFilter |
createLogicFilter(short filterType)
Creates an empty logic filter from a type. |
MathExpression |
createMathExpression()
Creates a Math Expression |
MathExpression |
createMathExpression(short expressionType)
Creates a Math Expression of the given type. |
NullFilter |
createNullFilter()
Creates an empty Null Filter. |
Methods inherited from class org.geotools.filter.FilterFactory |
createFilterFactory, getImplementationHints |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FilterFactoryImpl()
Method Detail |
public AttributeExpression createAttributeExpression(FeatureType schema)
createAttributeExpression
in class FilterFactory
schema
- the schema to create with.
public AttributeExpression createAttributeExpression(FeatureType schema, java.lang.String path) throws IllegalFilterException
createAttributeExpression
in class FilterFactory
schema
- the schema to get the attribute from.path
- the xPath of the attribute to compare.
IllegalFilterException
- if there were creation problems.public AttributeExpression createAttributeExpression(AttributeType at) throws IllegalFilterException
createAttributeExpression
in class FilterFactory
IllegalFilterException
public BBoxExpression createBBoxExpression(com.vividsolutions.jts.geom.Envelope env) throws IllegalFilterException
createBBoxExpression
in class FilterFactory
env
- the envelope to use for this bounding box.
IllegalFilterException
- if there were creation problems.public BetweenFilter createBetweenFilter() throws IllegalFilterException
createBetweenFilter
in class FilterFactory
IllegalFilterException
- if there were creation problems.public CompareFilter createCompareFilter(short type) throws IllegalFilterException
createCompareFilter
in class FilterFactory
type
- the type of comparison - must be a compare type.
IllegalFilterException
- if there were creation problems.public FidFilter createFidFilter()
createFidFilter
in class FilterFactory
public FidFilter createFidFilter(java.lang.String fid)
createFidFilter
in class FilterFactory
fid
- the feature ID to create with.
public GeometryFilter createGeometryFilter(short filterType) throws IllegalFilterException
createGeometryFilter
in class FilterFactory
filterType
- the type to create, must be a geometry type.
IllegalFilterException
- if the filterType is not a geometry.public GeometryDistanceFilter createGeometryDistanceFilter(short filterType) throws IllegalFilterException
createGeometryDistanceFilter
in class FilterFactory
filterType
- the type to create, must be beyond or dwithin.
IllegalFilterException
- if the filterType is not a geometry
distance type.public LikeFilter createLikeFilter()
createLikeFilter
in class FilterFactory
public LiteralExpression createLiteralExpression()
createLiteralExpression
in class FilterFactory
public LiteralExpression createLiteralExpression(java.lang.Object o) throws IllegalFilterException
createLiteralExpression
in class FilterFactory
o
- the object to serve as the literal.
IllegalFilterException
- if there were creation problems.public LiteralExpression createLiteralExpression(int i)
createLiteralExpression
in class FilterFactory
i
- the int to serve as literal.
public LiteralExpression createLiteralExpression(double d)
createLiteralExpression
in class FilterFactory
d
- the double to serve as the literal.
public LiteralExpression createLiteralExpression(java.lang.String s)
createLiteralExpression
in class FilterFactory
s
- the string to serve as the literal.
public LogicFilter createLogicFilter(short filterType) throws IllegalFilterException
createLogicFilter
in class FilterFactory
filterType
- must be a logic type.
IllegalFilterException
- If there were any problems creating the
filter, including wrong type.public LogicFilter createLogicFilter(Filter filter, short filterType) throws IllegalFilterException
createLogicFilter
in class FilterFactory
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 LogicFilter createLogicFilter(Filter filter1, Filter filter2, short filterType) throws IllegalFilterException
createLogicFilter
in class FilterFactory
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 MathExpression createMathExpression()
createMathExpression
in class FilterFactory
public MathExpression createMathExpression(short expressionType) throws IllegalFilterException
createMathExpression
in class FilterFactory
expressionType
- must be a math expression type.
IllegalFilterException
- if there were creation problems.public FunctionExpression createFunctionExpression(java.lang.String name)
createFunctionExpression
in class FilterFactory
name
- the function name.
public NullFilter createNullFilter()
createNullFilter
in class FilterFactory
public EnvironmentVariable createEnvironmentVariable(java.lang.String name)
FilterFactory
createEnvironmentVariable
in class FilterFactory
name
- the function name.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |