com.esri.wms.client
Class Feature

java.lang.Object
  extended by com.esri.wms.client.Feature
All Implemented Interfaces:
Serializable

public class Feature
extends Object
implements Serializable

Specified in the ESRI ArcGIS WMS Server GetFeatureInfo requests. Each feature can have a few fields. The Feature represent the FeatureInfo element in a request:

 <FeatureInfo>
       <Field>
         <FieldName>OBJECTID</FieldName>
         <FieldValue>305</FieldValue>
       </Field>
       <Field>
         <FieldName>Shape</FieldName>
         <FieldValue>NULL</FieldValue>
       </Field>
       <Field>
         <FieldName>LENGTH</FieldName>
         <FieldValue>2.017</FieldValue>
       </Field>
       <Field>
         <FieldName>HWYNAME</FieldName>
         <FieldValue>DIVISADERO ST</FieldValue>
       </Field>
       <Field>
         <FieldName>FCC</FieldName>
         <FieldValue>A31</FieldValue>
       </Field>
       <Field>
         <FieldName>STATEFIPS</FieldName>
         <FieldValue>06</FieldValue>
       </Field>
       <Field>
         <FieldName>ALT1_NAME</FieldName>
         <FieldValue> </FieldValue>
       </Field>
       <Field>
         <FieldName>ROAD_TYPE</FieldName>
         <FieldValue>Primary City Streets</FieldValue>
       </Field>
       <Field>
         <FieldName>Shape_Length</FieldName>
         <FieldValue>2.91931913320069E-02</FieldValue>
       </Field>
     </FeatureInfo>
 

See Also:
Serialized Form

Constructor Summary
Feature()
           
 
Method Summary
 void addField(Field field)
          Add a field to the given feature.
 Map<String,String> getFieldAsMap()
           
 List<Field> getFields()
          Gets the fields of the feature.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Feature

public Feature()
Method Detail

getFields

public List<Field> getFields()
Gets the fields of the feature.

Returns:
the field list.

getFieldAsMap

public Map<String,String> getFieldAsMap()

addField

public void addField(Field field)
Add a field to the given feature.

Parameters:
field - the new field.