org.geotools.data
Class NewQuery.QueryAs

java.lang.Object
  extended byorg.geotools.data.NewQuery.QueryAs
Enclosing class:
NewQuery

public static class NewQuery.QueryAs
extends java.lang.Object

Provides a mapping from from an expression to attribute.

(JG: This idea is the best! I really would like late binding though)

Author:
davidz

Constructor Summary
NewQuery.QueryAs(FeatureType schema, java.lang.String attribute)
          Direct mapping of attribute with no changes
NewQuery.QueryAs(java.lang.String attributeName, Expression formula)
           
 
Method Summary
 java.lang.String getAttributeName()
           
 Expression getFormula()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewQuery.QueryAs

public NewQuery.QueryAs(java.lang.String attributeName,
                        Expression formula)

NewQuery.QueryAs

public NewQuery.QueryAs(FeatureType schema,
                        java.lang.String attribute)
                 throws IllegalFilterException
Direct mapping of attribute with no changes

Throws:
IllegalFilterException
Method Detail

getFormula

public Expression getFormula()
Returns:
Returns the formula.

getAttributeName

public java.lang.String getAttributeName()
Returns:
Returns the attributeName.


Copyright © GeoTools. All Rights Reserved.