org.geotools.filter.expression
Class VocabFunction
java.lang.Object
org.geotools.filter.expression.VocabFunction
- All Implemented Interfaces:
- org.opengis.filter.expression.Expression, org.opengis.filter.expression.Function
public class VocabFunction
- extends java.lang.Object
- implements org.opengis.filter.expression.Function
Vocabulary translation; using an external lookup table.
This is similar to a Recode function from the Symbology Enoding 1.1 specifcation
with the difference that the lookup table is named by a URI. This URI can be handled
internally as an optimization; or it can be resolved to an external URL which is dragged
down (as a property file) and cached.
This function expects:
- Expression: often a property name expression
- Literal: URI defining the lookup table to use
- Author:
- Jody Garnett (GeoServer)
Field Summary |
static org.opengis.filter.capability.FunctionName |
NAME
Make the instance of FunctionName available in
a consistent spot. |
Fields inherited from interface org.opengis.filter.expression.Expression |
NIL |
Constructor Summary |
VocabFunction()
|
VocabFunction(java.util.List<org.opengis.filter.expression.Expression> parameters,
org.opengis.filter.expression.Literal fallback)
|
Method Summary |
java.lang.Object |
accept(org.opengis.filter.expression.ExpressionVisitor visitor,
java.lang.Object extraData)
|
java.lang.Object |
evaluate(java.lang.Object object)
|
|
evaluate(java.lang.Object object,
java.lang.Class<T> context)
|
org.opengis.filter.expression.Literal |
getFallbackValue()
|
java.lang.String |
getName()
|
java.util.List<org.opengis.filter.expression.Expression> |
getParameters()
|
static java.util.Properties |
lookup(java.lang.String urn)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
public static final org.opengis.filter.capability.FunctionName NAME
- Make the instance of FunctionName available in
a consistent spot.
VocabFunction
public VocabFunction()
VocabFunction
public VocabFunction(java.util.List<org.opengis.filter.expression.Expression> parameters,
org.opengis.filter.expression.Literal fallback)
getName
public java.lang.String getName()
- Specified by:
getName
in interface org.opengis.filter.expression.Function
getParameters
public java.util.List<org.opengis.filter.expression.Expression> getParameters()
- Specified by:
getParameters
in interface org.opengis.filter.expression.Function
accept
public java.lang.Object accept(org.opengis.filter.expression.ExpressionVisitor visitor,
java.lang.Object extraData)
- Specified by:
accept
in interface org.opengis.filter.expression.Expression
evaluate
public java.lang.Object evaluate(java.lang.Object object)
- Specified by:
evaluate
in interface org.opengis.filter.expression.Expression
evaluate
public <T> T evaluate(java.lang.Object object,
java.lang.Class<T> context)
- Specified by:
evaluate
in interface org.opengis.filter.expression.Expression
lookup
public static java.util.Properties lookup(java.lang.String urn)
getFallbackValue
public org.opengis.filter.expression.Literal getFallbackValue()
- Specified by:
getFallbackValue
in interface org.opengis.filter.expression.Function
Copyright © 1996-2010 Geotools. All Rights Reserved.