Package com.luciad.ogc.filter.model
Class TLcdOGCFilter
java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.ogc.filter.model.TLcdOGCFilter
- All Implemented Interfaces:
ILcdDataObject
,ILcdGenericExpression
,ILcdCloneable
,ILcdDeepCloneable
,Cloneable
This class represents the
Use
<ogc:Filter>
element as defined by the OGC in
the document OpenGIS Filter Encoding Implementation Specification. Use
TLcdOGCFilterFactory
to easily create the most common filter conditions
.
Since 2017.0, you should use a "resource IDs" condition
instead of specifying object IDs directly in the filter.
For OGC Filter 1.1 (for example for WFS 1.1 servers), it will be translated into a filter with objects IDs.
You must never change this filter or its underlying condition once it is in use.
A filter can be evaluated into a predicate
, either directly
,
or using TLcdOGCFilterEvaluator
.
- See Also:
-
Constructor Summary
ConstructorDescriptionDefault constructor.TLcdOGCFilter
(ILcdOGCCondition aCondition) Constructs an instance with a givenILcdOGCCondition
.TLcdOGCFilter
(String[] aIds) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFeatureId
(String aId) Deprecated.Since 2017.0, you should use a"resource IDs" condition
instead.void
addObjectId
(String aId) Deprecated.Since 2017.0, you should use a"resource IDs" condition
instead.final ILcdDynamicFilter
asPredicate
(TLcdOGCFilterContext aFilterContext) Convenience method that evaluates this filter into a predicate that can be used to restrict collections of (OGC) features.boolean
Returns theILcdOGCCondition
object for this instance.getFeatureId
(int index) Deprecated.Since 2017.0, you should use a"resource IDs" condition
instead.int
Deprecated.Since 2017.0, you should use a"resource IDs" condition
instead.Deprecated.Since 2017.0, you should use a"resource IDs" condition
instead.getObjectId
(int index) Deprecated.Since 2017.0, you should use a"resource IDs" condition
instead.int
Deprecated.Since 2017.0, you should use a"resource IDs" condition
instead.Deprecated.Since 2017.0, you should use a"resource IDs" condition
instead.int
hashCode()
void
insertFeatureIdAt
(String aId, int aIndex) Deprecated.Since 2017.0, you should use a"resource IDs" condition
instead.void
insertObjectIdAt
(String aId, int aIndex) Deprecated.Since 2017.0, you should use a"resource IDs" condition
instead.boolean
removeFeatureId
(String aId) Deprecated.Since 2017.0, you should use a"resource IDs" condition
instead.boolean
removeObjectId
(String aId) Deprecated.Since 2017.0, you should use a"resource IDs" condition
instead.void
setCondition
(ILcdOGCCondition aCondition) Sets theILcdOGCCondition
object for this instance.toString()
Methods inherited from class com.luciad.datamodel.TLcdDataObject
clone, clone, getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue
-
Constructor Details
-
TLcdOGCFilter
public TLcdOGCFilter()Default constructor. -
TLcdOGCFilter
Deprecated.Since 2017.0, you should use a"resource IDs" condition
instead. For WFS 1 servers, it will be translated into a filter with objects IDs.Constructs an instance with a given array of object ID's.- Parameters:
aIds
- an array of object ID's.
-
TLcdOGCFilter
Constructs an instance with a givenILcdOGCCondition
. The easiest way to create a condition is by usingTLcdOGCFilterFactory
.- Parameters:
aCondition
- the givenILcdOGCCondition
.- See Also:
-
-
Method Details
-
removeObjectId
Deprecated.Since 2017.0, you should use a"resource IDs" condition
instead. For WFS 1 servers, it will be translated into a filter with objects IDs.Removes an object ID.- Parameters:
aId
- the object ID to be removed.- Returns:
- true if the argument was an ID of the list; false otherwise.
-
insertObjectIdAt
Deprecated.Since 2017.0, you should use a"resource IDs" condition
instead. For WFS 1 servers, it will be translated into a filter with objects IDs.Adds an object ID to this instance at the position given by the index.- Parameters:
aId
- the object ID to be added.aIndex
- the index of the position.
-
addFeatureId
Deprecated.Since 2017.0, you should use a"resource IDs" condition
instead. For WFS 1 servers, it will be translated into a filter with objects IDs.Adds a feature ID to this instance.- Parameters:
aId
- the feature ID to be added.
-
getFeatureId
Deprecated.Since 2017.0, you should use a"resource IDs" condition
instead. For WFS 1 servers, it will be translated into a filter with objects IDs.Returns the feature ID for a position given by the index.- Parameters:
index
- the index of the position.- Returns:
- the feature ID for the given index.
-
getFeatureIdCount
public int getFeatureIdCount()Deprecated.Since 2017.0, you should use a"resource IDs" condition
instead. For WFS 1 servers, it will be translated into a filter with objects IDs.Returns the count of feature ID's for this instance.- Returns:
- the count of feature ID's for this instance.
-
removeFeatureId
Deprecated.Since 2017.0, you should use a"resource IDs" condition
instead. For WFS 1 servers, it will be translated into a filter with objects IDs.Removes a feature ID.- Parameters:
aId
- the feature ID to be removed.- Returns:
- true if the argument was an ID of the list; false otherwise.
-
insertFeatureIdAt
Deprecated.Since 2017.0, you should use a"resource IDs" condition
instead. For WFS 1 servers, it will be translated into a filter with objects IDs.Adds a feature ID to this instance at the position given by the index.- Parameters:
aId
- the feature ID to be added.aIndex
- the index of the position.
-
getFeatureIds
Deprecated.Since 2017.0, you should use a"resource IDs" condition
instead. For WFS 1 servers, it will be translated into a filter with objects IDs. -
addObjectId
Deprecated.Since 2017.0, you should use a"resource IDs" condition
instead. For WFS 1 servers, it will be translated into a filter with objects IDs.Adds an object ID to this instance.- Parameters:
aId
- the object ID to be added.
-
getObjectId
Deprecated.Since 2017.0, you should use a"resource IDs" condition
instead. For WFS 1 servers, it will be translated into a filter with objects IDs.Returns the object ID for a position given by the index.- Parameters:
index
- the index of the position.- Returns:
- the object ID for the given index.
-
getObjectIdCount
public int getObjectIdCount()Deprecated.Since 2017.0, you should use a"resource IDs" condition
instead. For WFS 1 servers, it will be translated into a filter with objects IDs.Returns the count of object ID's for this instance.- Returns:
- the count of object ID's for this instance.
-
getCondition
Returns theILcdOGCCondition
object for this instance.- Returns:
- the
ILcdOGCCondition
object for this instance.
-
setCondition
Sets theILcdOGCCondition
object for this instance.- Parameters:
aCondition
- theILcdOGCCondition
object for this instance.
-
getObjectIds
Deprecated.Since 2017.0, you should use a"resource IDs" condition
instead. For WFS 1 servers, it will be translated into a filter with objects IDs.Returns the list of object id's.- Returns:
- A list of id's.
-
asPredicate
Convenience method that evaluates this filter into a predicate that can be used to restrict collections of (OGC) features. For more details, refer toTLcdOGCFilterEvaluator
.- Parameters:
aFilterContext
- the context in which to create the filter. The context defines amongst others how a property is retrieved from an (OGC) feature. When creating a filter for filtering the domain objects of anILcdModel
, you might want to use theTLcdOGCFilterContext.forModel(ILcdModel)
method to create this context.- Since:
- 2017.1
- See Also:
-
equals
-
hashCode
public int hashCode() -
toString
- Overrides:
toString
in classTLcdDataObject
-
"resource IDs" condition
instead.