org.geotools.data
Class AttributeQuery

java.lang.Object
  extended byorg.geotools.data.AttributeQuery

public class AttributeQuery
extends java.lang.Object

Provide a defined of derived AttribtueType during a Query (immutable).

In practive this works as an "As" statement in SQL. This class is inmutable.

Since:
0.6.0
Author:
jgarnett

Field Summary
 Expression expr
          The expression used to obtain the value
 AttributeType type
          The attribtueType of that this AttributeQuery produces
 
Constructor Summary
AttributeQuery(AttributeType type, Expression expression)
          Construct AttributeQuery.
AttributeQuery(FeatureType schema, java.lang.String attributeName)
          Construct AttributeQuery, basically a no-op that just copies attributeType across.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

public final AttributeType type
The attribtueType of that this AttributeQuery produces


expr

public final Expression expr
The expression used to obtain the value

Constructor Detail

AttributeQuery

public AttributeQuery(FeatureType schema,
                      java.lang.String attributeName)
               throws IllegalFilterException
Construct AttributeQuery, basically a no-op that just copies attributeType across.

Parameters:
schema - Schema to query against
attributeName - Simple attribute name, unsure if xpath is allowed
Throws:
IllegalFilterException

AttributeQuery

public AttributeQuery(AttributeType type,
                      Expression expression)
Construct AttributeQuery.

You can use this for generic mapping from an expression to an attributeType.

Parameters:
expression -


Copyright © GeoTools. All Rights Reserved.