| |
|
| org.geotools.filter.DefaultExpression org.geotools.filter.AttributeExpressionImpl
AttributeExpressionImpl | public class AttributeExpressionImpl extends DefaultExpression implements AttributeExpression(Code) | | Defines a complex filter (could also be called logical filter). This filter
holds one or more filters together and relates them logically in an
internally defined manner.
author: Rob Hranac, TOPP version: $Id: AttributeExpressionImpl.java 27862 2007-11-12 19:51:19Z desruisseaux $ |
attPath | protected String attPath(Code) | | Holds all sub filters of this filter.
|
AttributeExpressionImpl | protected AttributeExpressionImpl(FeatureType schema)(Code) | | Constructor with the schema for this attribute.
Parameters: schema - The schema for this attribute. |
AttributeExpressionImpl | public AttributeExpressionImpl(String xpath)(Code) | | Constructor with schema and path to the attribute.
Parameters: xpath - the String xpath to the attribute. |
AttributeExpressionImpl | protected AttributeExpressionImpl(FeatureType schema, String attPath) throws IllegalFilterException(Code) | | Constructor with schema and path to the attribute.
Parameters: schema - The initial (required) sub filter. Parameters: attPath - the xpath to the attribute. throws: IllegalFilterException - If the attribute path is not in theschema. |
accept | public Object accept(ExpressionVisitor visitor, Object extraData)(Code) | | Used by FilterVisitors to perform some action on this filter instance.
Typicaly used by Filter decoders, but may also be used by any thing
which needs infomration from filter structure. Implementations should
always call: visitor.visit(this); It is importatant that this is not
left to a parent class unless the parents API is identical.
Parameters: visitor - The visitor which requires access to this filter, themethod must call visitor.visit(this); |
equals | public boolean equals(Object obj)(Code) | | Compares this filter to the specified object. Returns true if the
passed in object is the same as this expression. Checks to make sure
the expression types are the same as well as the attribute paths and
schemas.
Parameters: obj - - the object to compare this ExpressionAttribute against. true if specified object is equal to this filter; else false |
evaluate | public Object evaluate(Feature feature)(Code) | | Gets the value of this attribute from the passed feature.
Parameters: feature - Feature from which to extract attribute value. |
evaluate | public Object evaluate(Object obj)(Code) | | Gets the value of this property from the passed object.
Parameters: obj - Object from which we need to extract a property value. |
getPropertyName | public String getPropertyName()(Code) | | Gets the path to the attribute to be evaluated by this expression.
org.opengis.filter.expression.PropertyName.getPropertyName |
hashCode | public int hashCode()(Code) | | Override of hashCode method.
a code to hash this object by. |
setPropertyName | public void setPropertyName(String attPath)(Code) | | |
toString | public String toString()(Code) | | Return this expression as a string.
String representation of this attribute expression. |
Fields inherited from org.geotools.filter.DefaultExpression | protected short expressionType(Code)(Java Doc) protected boolean permissiveConstruction(Code)(Java Doc)
|
|
|
|