|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.adf.web.data.query.IdentifyCriteria
public class IdentifyCriteria
IdentifyCriteria returns map features and their attribute values based on a search location. This can be conducted on an individual layer, the top-most layer, all layers, or just on all the visible layers.
Depending on the resource type, there are different criteria handlers to fulfill the query. This class defines common elements required by all of the handlers.
QueryCriteria
,
QueryCriteriaHandler
,
Serialized FormField Summary | |
---|---|
static String |
CRITERIA_TYPE
Criteria Type: "Identify" |
Constructor Summary | |
---|---|
IdentifyCriteria()
Instantiates an empty object of IdentifyCriteria. |
|
IdentifyCriteria(WebGeometry webGeometry)
Instantiates an object of IdentifyCriteria with the given geometry. |
|
IdentifyCriteria(WebGeometry webGeometry,
int tolerance)
Instantiates an object of IdentifyCriteria with the given point geometry and search tolerance. |
Method Summary | |
---|---|
String |
getCriteriaType()
A String representing the query type e.g. |
String |
getDisplayFieldName()
Gets the field name which can be used in the query result as a result node title. |
List<? extends LayerDefinition> |
getLayerDefinitions()
Returns the list of LayerDefinition used for identify. |
int |
getMaxRecordCount()
Gets the maximum number of returning records in one query. |
int |
getTolerance()
Returns the tolerance that used to perform identify operation. |
WebGeometry |
getWebGeometry(WebSpatialReference spatialReference)
Gets the geometry in the given spatial reference. |
boolean |
isFetchResultDetails()
Returns true if all the feature details e.g. |
void |
setDisplayFieldName(String displayFieldName)
Sets the field name which can be used in the query result as a result node title. |
void |
setFetchResultDetails(boolean fetchResultDetails)
Sets to true to return all the feature details e.g. |
void |
setLayerDefinitions(List<? extends LayerDefinition> layerDefinitions)
Sets the list of LayerDefinition objects used for identify. |
void |
setMaxRecordCount(int maxRecordCount)
Sets the maximum number of returning records in one query. |
void |
setTolerance(int tolerance)
Sets the tolerance that used to perform identify operation. |
void |
setWebGeometry(WebGeometry webGeometry)
Sets the search geometry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CRITERIA_TYPE
Constructor Detail |
---|
public IdentifyCriteria()
public IdentifyCriteria(WebGeometry webGeometry)
webGeometry
- The valid geometry.public IdentifyCriteria(WebGeometry webGeometry, int tolerance)
webGeometry
- a validtolerance
- a tolerance unit may be in pixels or in geometry's unit,which is depend on the handler's
implementation.QueryCriteriaHandler
Method Detail |
---|
public String getCriteriaType()
QueryCriteria
getCriteriaType
in interface QueryCriteria
public String getDisplayFieldName()
QueryCriteria
getDisplayFieldName
in interface QueryCriteria
public void setDisplayFieldName(String displayFieldName)
QueryCriteria
setDisplayFieldName
in interface QueryCriteria
public int getTolerance()
public void setTolerance(int tolerance)
tolerance
- the tolerance that used to perform identify operation.public WebGeometry getWebGeometry(WebSpatialReference spatialReference)
spatialReference
- the spatial reference of the return geometry.
public void setWebGeometry(WebGeometry webGeometry)
webGeometry
- Point or other valid geometry.public boolean isFetchResultDetails()
QueryCriteria
isFetchResultDetails
in interface QueryCriteria
public void setFetchResultDetails(boolean fetchResultDetails)
QueryCriteria
setFetchResultDetails
in interface QueryCriteria
public int getMaxRecordCount()
QueryCriteria
getMaxRecordCount
in interface QueryCriteria
public void setMaxRecordCount(int maxRecordCount)
QueryCriteria
setMaxRecordCount
in interface QueryCriteria
maxRecordCount
- the new value.public void setLayerDefinitions(List<? extends LayerDefinition> layerDefinitions)
LayerDefinition
objects used for identify.
layerDefinitions
- the list of layer definition objectspublic List<? extends LayerDefinition> getLayerDefinitions()
LayerDefinition
used for identify.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |