es.prodevelop.gvsig.mobile.fmap.core
Class DefaultRow

java.lang.Object
  extended byes.prodevelop.gvsig.mobile.fmap.core.DefaultRow
All Implemented Interfaces:
IRow
Direct Known Subclasses:
DefaultFeature

public class DefaultRow
extends java.lang.Object
implements IRow

This class encapsulates a row of alphanumerical attributes.

Author:
Vicente Caballero Navarro

Constructor Summary
DefaultRow(com.hardcode.gdbms.engine.values.Value[] att)
          Constructor.
DefaultRow(com.hardcode.gdbms.engine.values.Value[] att, java.lang.String id)
          Constructor.
 
Method Summary
 IRow cloneRow()
          Cones the current object
 com.hardcode.gdbms.engine.values.Value getAttribute(int fieldIndex)
           
 com.hardcode.gdbms.engine.values.Value[] getAttributes()
          Gets the array of attribute
 java.lang.String getID()
           
 void setAttributes(com.hardcode.gdbms.engine.values.Value[] att)
          Sets the array of attributes
 void setID(java.lang.String ID)
          Sets the ID.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRow

public DefaultRow(com.hardcode.gdbms.engine.values.Value[] att)
Constructor. Uses a default ID

Parameters:
att - array of attributes

DefaultRow

public DefaultRow(com.hardcode.gdbms.engine.values.Value[] att,
                  java.lang.String id)
Constructor.

Parameters:
att - array of attributes
id - feature ID
Method Detail

getID

public java.lang.String getID()
Specified by:
getID in interface IRow
Returns:
gets the ID

getAttribute

public com.hardcode.gdbms.engine.values.Value getAttribute(int fieldIndex)
Specified by:
getAttribute in interface IRow
Parameters:
fieldIndex - index of the requested field
Returns:
the attribute of the given index

getAttributes

public com.hardcode.gdbms.engine.values.Value[] getAttributes()
Gets the array of attribute

Specified by:
getAttributes in interface IRow
Returns:
the array of attribute

cloneRow

public IRow cloneRow()
Cones the current object

Specified by:
cloneRow in interface IRow
Returns:
anothe rinstance of this object with the same attributes and ID

setID

public void setID(java.lang.String ID)
Sets the ID.

Specified by:
setID in interface IRow
Parameters:
ID - the new ID

setAttributes

public void setAttributes(com.hardcode.gdbms.engine.values.Value[] att)
Sets the array of attributes

Specified by:
setAttributes in interface IRow
Parameters:
att - the new array of attributes