com.esri.aims.mtier.model.axl.map
Class QueryElementFactory

java.lang.Object
  |
  +--com.esri.aims.mtier.model.axl.map.QueryElementFactory

public class QueryElementFactory
extends Object

The QueryElementFactory object contains methods for creating ArcXML elements pertaining to the ArcXML query elements.


Constructor Summary
QueryElementFactory()
          Constructs an instance of a QueryElementFactory object.
 
Method Summary
 com.esri.w3c.dom.Element createBufferElement(String distance, String bufferUnits, String project)
          Creates the ArcXML BUFFER Element.
 com.esri.w3c.dom.Element createHoleElement()
          Creates the ArcXML HOLE Element.
 com.esri.w3c.dom.Element createMultiPointElement()
          Creates the ArcXML MULTIPOINT Element.
 com.esri.w3c.dom.Element createPathElement()
          Creates the ArcXML PATH Element.
 com.esri.w3c.dom.Element createPolyLineElement()
          Creates the ArcXML POLYLINE Element.
 com.esri.w3c.dom.Element createQueryElement(String where, String accuracy, String featurelimit, String joinexpression, String jointables, String subfields)
          Creates the ArcXML QUERY Element.
 com.esri.w3c.dom.Element createRingElement()
          Creates the ArcXML RING Element.
 com.esri.w3c.dom.Element createSpatialFilterElement(String relation)
          Creates the ArcXML SPATIALFILTER Element.
 com.esri.w3c.dom.Element createSpatialQueryElement(String accuracy, String featurelimit, String joinexpression, String jointables, String searchorder, String subfields, String where)
          Creates the ArcXML SPATIALQUERY Element.
 com.esri.w3c.dom.Element createTargetLayerElement(String id)
          Creates the ArcXML TARGETLAYER Element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryElementFactory

public QueryElementFactory()
Constructs an instance of a QueryElementFactory object.

Method Detail

createBufferElement

public com.esri.w3c.dom.Element createBufferElement(String distance,
                                                    String bufferUnits,
                                                    String project)
Creates the ArcXML BUFFER Element.

Parameters:
distance - the buffer area width in buffer units.
bufferUnits - specifies units that apply to buffer.
Returns:
Element

createMultiPointElement

public com.esri.w3c.dom.Element createMultiPointElement()
Creates the ArcXML MULTIPOINT Element.

Returns:
Element

createPathElement

public com.esri.w3c.dom.Element createPathElement()
Creates the ArcXML PATH Element.

Returns:
Element

createPolyLineElement

public com.esri.w3c.dom.Element createPolyLineElement()
Creates the ArcXML POLYLINE Element.

Returns:
Element.

createTargetLayerElement

public com.esri.w3c.dom.Element createTargetLayerElement(String id)
Creates the ArcXML TARGETLAYER Element.

Parameters:
id - reference to a unique layer ID as defined in map configuration file.
Returns:
Element

createQueryElement

public com.esri.w3c.dom.Element createQueryElement(String where,
                                                   String accuracy,
                                                   String featurelimit,
                                                   String joinexpression,
                                                   String jointables,
                                                   String subfields)
Creates the ArcXML QUERY Element.

Parameters:
where - defines where part of SQL expression.
accuracy - within a feature, generalizes points based on the distance specified and the resolution of the image.
featurelimit - maximum number of features to be extracted that meet criteria.
joinexpression - used for join tables with DBF files only. Not requred when a jointable is done on ArcSDE.
jointables - list of joined table names separated by blank space.
subfields - list of fields to be extracted separated by blank space.
Returns:
Element

createRingElement

public com.esri.w3c.dom.Element createRingElement()
Creates the ArcXML RING Element.

Returns:
Element

createHoleElement

public com.esri.w3c.dom.Element createHoleElement()
Creates the ArcXML HOLE Element.

Returns:
Element

createSpatialFilterElement

public com.esri.w3c.dom.Element createSpatialFilterElement(String relation)
Creates the ArcXML SPATIALFILTER Element.

Parameters:
relation - describes spatial relation.
Returns:
Element

createSpatialQueryElement

public com.esri.w3c.dom.Element createSpatialQueryElement(String accuracy,
                                                          String featurelimit,
                                                          String joinexpression,
                                                          String jointables,
                                                          String searchorder,
                                                          String subfields,
                                                          String where)
Creates the ArcXML SPATIALQUERY Element.

Parameters:
accuracy - within a feature, generalizes points based on the distance specified and the resolution of the image.
featurelimit - maximum number of features to be extracted that meet criteria.
joinexpression - used for join tables with DBF files only.
jointables - list of joined table names separated by blank spaces.
searchorder - determines whether the attribute or spatial part of an ArcSDE query is processed first.
subfields - list of fields available for querying or extracting.
where - defines where part of SQL expression.
Returns:
Element