|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.adf.web.util.QueryUtil
public class QueryUtil
This utility class is mainly used for Query Operations.
| Method Summary | |
|---|---|
static LayerDefinition |
getLayerDefinition(List<? extends LayerDefinition> layerDefinitions,
String resourceId,
int layerId)
Returns the layer definition object from the layer definition list based on the specified resource and layer id. |
static Map<Integer,String> |
getLayerMap(List<? extends WebLayerInfo> layerList)
Returns the key value pair with layer index and layer name of all the resource(s). |
static WebLayerInfo |
getWebLayerInfo(List<? extends WebLayerInfo> layerList,
GISResource resource,
int layerId)
Returns the WebLayerInfo object from the list of WebLayerInfo objects based on the
specified layer id and resource object. |
static Map<String,Object> |
replaceAliasName(Map<? extends String,?> details,
Map<? extends String,? extends String> aliases)
Convenient method to replace the default field name with the alias field name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static LayerDefinition getLayerDefinition(List<? extends LayerDefinition> layerDefinitions,
String resourceId,
int layerId)
layerDefinitions - the list of layer definition objectsresourceId - the resource idlayerId - the layer id
LayerDefinition object
public static Map<String,Object> replaceAliasName(Map<? extends String,?> details,
Map<? extends String,? extends String> aliases)
details - the default field name and the valuealiases - the default and alias field name
public static Map<Integer,String> getLayerMap(List<? extends WebLayerInfo> layerList)
WebContext wContext = ....; Map layers = SearchAttributesUtil.getLayerMap(wContext.getWebQuery().getQueryLayers());
layerList - the list of WebLayerInfo objects
Map the key value pair with layer index and layer name of all the resource(s).
public static WebLayerInfo getWebLayerInfo(List<? extends WebLayerInfo> layerList,
GISResource resource,
int layerId)
WebLayerInfo object from the list of WebLayerInfo objects based on the
specified layer id and resource object.
layerList - the list of WebLayerInfo objectsresource - the GISResource objectlayerId - the layer id
WebLayerInfo object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||