| |
|
| org.geotools.filter.DefaultExpression org.geotools.filter.LiteralExpressionImpl
All known Subclasses: org.geotools.filter.BBoxExpressionImpl,
LiteralExpressionImpl | public class LiteralExpressionImpl extends DefaultExpression implements LiteralExpression(Code) | | Defines an expression that holds a literal for return.
author: Rob Hranac, Vision for New York version: $Id: LiteralExpressionImpl.java 29355 2008-02-18 10:47:10Z aaime $ |
LiteralExpressionImpl | protected LiteralExpressionImpl()(Code) | | Constructor with literal.
|
LiteralExpressionImpl | protected LiteralExpressionImpl(int value)(Code) | | Constructor with literal. This alternative constructor is a convinience
one for integers an Integer object will be constructed, and no
IllegalFilterException can ever be thrown.
Parameters: value - The integer to store inside this expression. |
LiteralExpressionImpl | protected LiteralExpressionImpl(long value)(Code) | | |
LiteralExpressionImpl | protected LiteralExpressionImpl(double value)(Code) | | Constructor with literal. This alternative constructor is a convinience
one for doubles an Double object will be constructed, and no
IllegalFilterException can ever be thrown.
Parameters: value - The double to store inside this expression. |
LiteralExpressionImpl | protected LiteralExpressionImpl(String value)(Code) | | Constructor with literal. This alternative constructor is a convinience
one for doubles an Double object will be constructed, and no
IllegalFilterException can ever be thrown.
Parameters: value - The double to store inside this expression. |
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 literals.
Parameters: obj - - the object to compare this ExpressionLiteral against. true if specified object is equal to this expression; falseotherwise. |
evaluate | public Object evaluate(Feature feature) throws IllegalArgumentException(Code) | | Gets the value of this literal.
Parameters: feature - Required by the interface but not used. the literal held by this expression. Ignores the passed infeature. The literal held by this expression is almost invariablya java.lang.String (so that no leading-zeros are lost during a string->Class conversion. This method will attempt to form the internalString into a Integer, Double or BigInteger, before failing anddefaulting to a String. To speed things up significantly, use theevaluate(Object, Class) method so that we don't have to guessat what you expect back from this evaluate method! throws: IllegalArgumentException - Feature does not match declared schema. |
getType | public short getType()(Code) | | Returns the literal type.
the short representation of the expression type. |
getValue | public Object getValue()(Code) | | Retrieves the literal of this expression.
the literal held by this expression. |
hashCode | public int hashCode()(Code) | | Override of hashCode method.
the hash code for this literal expression |
setValue | final public void setValue(Object literal)(Code) | | Sets the literal.
Parameters: literal - The literal to store inside this expression. throws: IllegalFilterException - This literal type is not in scope. |
toString | public String toString()(Code) | | Return this filter as a string.
String representation of this geometry filter. |
Fields inherited from org.geotools.filter.DefaultExpression | protected short expressionType(Code)(Java Doc) protected boolean permissiveConstruction(Code)(Java Doc)
|
|
|
|