com.esri.core.map
Class WebMapQuery

java.lang.Object
  extended by com.esri.core.map.WebMapQuery

public class WebMapQuery
extends Object

Represents an ArcGIS query task data defined in the web map.

Since:
1.0
Version:
1.0

Field Summary
static String PARAM_DEFAULTVALUE
          The Constant PARAM_DEFAULTVALUE.
static String PARAM_FIELD
          The Constant PARAM_FIELD.
static String PARAM_HELPTIP
          The Constant PARAM_HELPTIP.
static String PARAM_OPERATOR
          The Constant PARAM_OPERATOR.
static String PARAM_PROMPT
          The Constant PARAM_PROMPT.
 
Constructor Summary
WebMapQuery()
           
 
Method Summary
static WebMapQuery fromJson(org.codehaus.jackson.JsonParser jsonParser)
          Creates a QueryTask object from the json.
 String getDisplayField()
          Gets the display field name.
 String getName()
          Returns the query task name.
 List<Hashtable<String,Object>> getParameters()
          Returns a list of predefined query input parameters which are stored in a pair of key and Object hashtable object.
 String getUrl()
          Return the url to perform the query.
 List<String> getVisibleFields()
          Returns a list of visible fields.
 String getWhereClause()
          Returns the predefined the where clause.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAM_DEFAULTVALUE

public static final String PARAM_DEFAULTVALUE
The Constant PARAM_DEFAULTVALUE.

Since:
1.0
See Also:
Constant Field Values

PARAM_FIELD

public static final String PARAM_FIELD
The Constant PARAM_FIELD.

Since:
1.0
See Also:
Constant Field Values

PARAM_HELPTIP

public static final String PARAM_HELPTIP
The Constant PARAM_HELPTIP.

Since:
1.0
See Also:
Constant Field Values

PARAM_OPERATOR

public static final String PARAM_OPERATOR
The Constant PARAM_OPERATOR.

Since:
1.0
See Also:
Constant Field Values

PARAM_PROMPT

public static final String PARAM_PROMPT
The Constant PARAM_PROMPT.

Since:
1.0
See Also:
Constant Field Values
Constructor Detail

WebMapQuery

public WebMapQuery()
Method Detail

getDisplayField

public String getDisplayField()
Gets the display field name.

Returns:
String
Since:
1.0

getName

public String getName()
Returns the query task name.

Returns:
String
Since:
1.0

getParameters

public List<Hashtable<String,Object>> getParameters()
Returns a list of predefined query input parameters which are stored in a pair of key and Object hashtable object. The key are defined as the constants:

Returns:
a list of parameters stored in form of hashtable. PARAM_DEFAULTVALUE PARAM_FIELD PARAM_HELPTIP PARAM_OPERATOR PARAM_PROMPT
Since:
1.0

getUrl

public String getUrl()
Return the url to perform the query.

Returns:
String
Since:
1.0

getVisibleFields

public List<String> getVisibleFields()
Returns a list of visible fields.

Returns:
a list of String
Since:
1.0

getWhereClause

public String getWhereClause()
Returns the predefined the where clause.

Returns:
String
Since:
1.0

fromJson

public static WebMapQuery fromJson(org.codehaus.jackson.JsonParser jsonParser)
                            throws Exception
Creates a QueryTask object from the json.

Parameters:
jsonParser - a JsonParser object
Returns:
a QueryTask object
Throws:
Exception - the exception
Since:
1.0


Copyright © 2012. All Rights Reserved.