org.deegree_impl.services.wfs.protocol
Class WFSQuery_Impl

java.lang.Object
  extended byorg.deegree_impl.services.wfs.protocol.WFSQuery_Impl
All Implemented Interfaces:
WFSQuery
Direct Known Subclasses:
CASQuery_Impl

public class WFSQuery_Impl
extends java.lang.Object
implements WFSQuery

Each individual query packaged in a GetFeature request is defined using the query value. The query value defines which feature type to query, what properties to retrieve and what constraints (spatial and non-spatial) to apply to those properties.

----------------------------------------------------------------------

Version:
$Revision: 1.5 $ $Date: 2004/02/09 08:00:22 $
Author:
Andreas Poth

Field Summary
private  Filter filter
           
private  java.lang.String handle
           
private  java.util.ArrayList propertyNames
           
private  java.lang.String typeName
           
private  java.lang.String version
           
 
Constructor Summary
WFSQuery_Impl()
          default constructor
WFSQuery_Impl(java.lang.String[] propertyNames, java.lang.String handle, java.lang.String version, java.lang.String typeName, Filter filter)
          constructor initializing the class with the
 
Method Summary
 void addPropertyNames(java.lang.String propertyNames)
          adds the
 java.lang.String exportAsXML()
          exports the WFSQuery as XML expression
 Filter getFilter()
          returns the filter that limits the query
 java.lang.String getHandle()
          The handle attribute is included to allow a client to associate a mnemonic name to the request.
 java.lang.String[] getPropertyNames()
          The property names is used to enumerate the feature properties or attributes that should be selected.
 java.lang.String getTypeName()
          The typeName attribute is used to indicate the name of the feature type or class to be queried.
 java.lang.String getVersion()
          The version attribute is included in order to accommodate systems that support feature versioning.
 void setFilter(Filter filter)
          sets the filter that limits the query
 void setHandle(java.lang.String handle)
          sets the
 void setPropertyNames(java.lang.String[] propertyNames)
          sets the
 void setTypeName(java.lang.String typeName)
          sets the
 void setVersion(java.lang.String version)
          sets the
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

propertyNames

private java.util.ArrayList propertyNames

filter

private Filter filter

handle

private java.lang.String handle

typeName

private java.lang.String typeName

version

private java.lang.String version
Constructor Detail

WFSQuery_Impl

public WFSQuery_Impl()
default constructor


WFSQuery_Impl

public WFSQuery_Impl(java.lang.String[] propertyNames,
                     java.lang.String handle,
                     java.lang.String version,
                     java.lang.String typeName,
                     Filter filter)
constructor initializing the class with the

Method Detail

getPropertyNames

public java.lang.String[] getPropertyNames()
The property names is used to enumerate the feature properties or attributes that should be selected. If no property names are specified then all properties should be fetched.

Specified by:
getPropertyNames in interface WFSQuery

addPropertyNames

public void addPropertyNames(java.lang.String propertyNames)
adds the


setPropertyNames

public void setPropertyNames(java.lang.String[] propertyNames)
sets the


getHandle

public java.lang.String getHandle()
The handle attribute is included to allow a client to associate a mnemonic name to the request. The purpose of the handle attribute is to provide an error handling mechanism for locating a statement that might fail.

Specified by:
getHandle in interface WFSQuery

setHandle

public void setHandle(java.lang.String handle)
sets the


getVersion

public java.lang.String getVersion()
The version attribute is included in order to accommodate systems that support feature versioning. A value of ALL indicates that all versions of a feature should be fetched. Otherwise an integer can be specified to return the n th version of a feature. The version numbers start at '1' which is the oldest version. If a version value larger than the largest version is specified then the latest version is return. The default action shall be for the query to return the latest version. Systems that do not support versioning can ignore the parameter and return the only version that they have.

Specified by:
getVersion in interface WFSQuery

setVersion

public void setVersion(java.lang.String version)
sets the


getTypeName

public java.lang.String getTypeName()
The typeName attribute is used to indicate the name of the feature type or class to be queried.

Specified by:
getTypeName in interface WFSQuery

setTypeName

public void setTypeName(java.lang.String typeName)
sets the


getFilter

public Filter getFilter()
returns the filter that limits the query

Specified by:
getFilter in interface WFSQuery

setFilter

public void setFilter(Filter filter)
sets the filter that limits the query


exportAsXML

public java.lang.String exportAsXML()
exports the WFSQuery as XML expression

Specified by:
exportAsXML in interface WFSQuery

toString

public java.lang.String toString()
Returns: