com.moximedia.aims
Class AimsFeature

java.lang.Object
  extended bycom.moximedia.aims.AimsFeature
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class AimsFeature
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

The AimsFeature class is used to store a record associated with a recordset.

See Also:
Serialized Form

Constructor Summary
AimsFeature()
          Creates a new instance of AimsFeature.
AimsFeature(java.lang.String id, boolean isNew)
          Creates a new instance of AimsFeature.
 
Method Summary
 void addFieldValue(java.lang.String name, java.lang.String value)
          Creates a new field and sets its value.
 AimsEnvelope getExtent()
          Gets the extent of the feature's geometry.
 java.lang.String[] getFieldNames()
          Gets the names of the fields in this feature.
 java.lang.String getFieldValue(java.lang.String fieldName)
          Gets the value of the specified field.
 java.lang.String getId()
          Gets the ID of the feature.
 AimsShapeObject getShape()
          Gets the geometry of the feature.
 boolean isNew()
          Returns an indicator of wheter the feature is new, used in editing.
 void setExtent(AimsEnvelope ext)
          Sets the extent of the feature.
 void setFieldValue(java.lang.String name, java.lang.String value)
          Sets a field value, creating a new field if necessary.
 void setId(java.lang.String id)
          Sets the feature ID.
 void setShape(AimsShapeObject shape)
          Sets the shape geometry for this feature.
 java.lang.String toGmlString()
          Returns a GML string representing this feature's fields and geometry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AimsFeature

public AimsFeature()
Creates a new instance of AimsFeature.


AimsFeature

public AimsFeature(java.lang.String id,
                   boolean isNew)
Creates a new instance of AimsFeature.

Parameters:
id - The feature ID.
isNew - An indicator of wheter the feature is new, used in editing.
Method Detail

isNew

public boolean isNew()
Returns an indicator of wheter the feature is new, used in editing.

Returns:
True if the feature is new, otherwise false.

getFieldNames

public java.lang.String[] getFieldNames()
Gets the names of the fields in this feature.

Returns:
An array of field names.

setFieldValue

public void setFieldValue(java.lang.String name,
                          java.lang.String value)
Sets a field value, creating a new field if necessary.

Parameters:
name - The name of the field.
value - The value of the field.

addFieldValue

public void addFieldValue(java.lang.String name,
                          java.lang.String value)
Creates a new field and sets its value.

Parameters:
name - The name of the field.
value - The value of the field.

getExtent

public AimsEnvelope getExtent()
Gets the extent of the feature's geometry.

Returns:
The extent envelope.

getFieldValue

public java.lang.String getFieldValue(java.lang.String fieldName)
Gets the value of the specified field.

Parameters:
fieldName - The name of the field.
Returns:
The value of the field, or null if the field does not exist.

getId

public java.lang.String getId()
Gets the ID of the feature.

Returns:
The ID of the feature.

getShape

public AimsShapeObject getShape()
Gets the geometry of the feature.

Returns:
The geometry.

setId

public void setId(java.lang.String id)
Sets the feature ID.

Parameters:
id - The feature ID.

setExtent

public void setExtent(AimsEnvelope ext)
Sets the extent of the feature.

Parameters:
ext - The extent.

setShape

public void setShape(AimsShapeObject shape)
Sets the shape geometry for this feature.

Parameters:
shape - The shape geometry.

toGmlString

public java.lang.String toGmlString()
Returns a GML string representing this feature's fields and geometry.

Returns:
The GML string.


Internet Mapping Framework for ArcIMS Java Object Model API (v5.1.00)
Copyright © 2006 Moxi Media Inc. and Province of British Columbia. All Rights Reserved.