com.moximedia.ows
Class Field

java.lang.Object
  extended bycom.moximedia.ows.Field
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

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

The field class is used to store the fields and values in a recordset. A field can contain text or geometry values.

Author:
Doug Cates www.moximedia.com
See Also:
Serialized Form

Constructor Summary
Field()
          Creates a new instance of Field
Field(java.lang.String name, Geometry geom)
          Creates a new instance of a geometry Field
Field(java.lang.String name, java.lang.String value)
          Creates a new instance of Field
 
Method Summary
 java.lang.Object clone()
          Creates a clone of this object.
 Field getCopy()
          Creates a copy of this object.
 Geometry getGeometry()
          Gets the field value.
 java.lang.String getName()
          Gets the field name.
 java.lang.String getValue()
          Gets the field value.
 boolean isGeometry()
           
 void setGeometry(Geometry geometry)
          Sets the field value.
 void setName(java.lang.String name)
          Sets the field name.
 void setValue(java.lang.String value)
          Sets the field value.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Field

public Field()
Creates a new instance of Field


Field

public Field(java.lang.String name,
             java.lang.String value)
Creates a new instance of Field

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

Field

public Field(java.lang.String name,
             Geometry geom)
Creates a new instance of a geometry Field

Parameters:
name - The field name.
geom - The geometry.
Method Detail

clone

public java.lang.Object clone()
Creates a clone of this object. Must be cast back to the correct object type before using.

Returns:
The clone of this object.

getCopy

public Field getCopy()
Creates a copy of this object.

Returns:
The copy of this object.

getGeometry

public Geometry getGeometry()
Gets the field value.

Returns:
The field value.

isGeometry

public boolean isGeometry()

setGeometry

public void setGeometry(Geometry geometry)
Sets the field value.

Parameters:
geometry - The field value.

getName

public java.lang.String getName()
Gets the field name.

Returns:
The field name.

setName

public void setName(java.lang.String name)
Sets the field name.

Parameters:
name - The field name.

getValue

public java.lang.String getValue()
Gets the field value.

Returns:
The field value.

setValue

public void setValue(java.lang.String value)
Sets the field value.

Parameters:
value - The field value.


Internet Mapping Framework for OpenGIS Java Object Model API (v1.3.007)
Copyright © 2005 Moxi Media Inc. and Province of British Columbia. All Rights Reserved.