org.moremotion.process
Class ProcessRecord

java.lang.Object
  extended by org.moremotion.process.ProcessRecord

public class ProcessRecord
extends java.lang.Object

Represents a Process Record that is contained in a FormProcessBlock.

Version:
$Id: ProcessRecord.java 51 2008-03-10 11:46:54Z erkan $

Method Summary
 ProcessBlock getBlock()
           
 java.lang.String getField(java.lang.String name, java.lang.String defValue)
          Returns the value of the specified field of this process record.
 boolean getFieldAsBoolean(java.lang.String name, boolean defValue)
          Returns the value of the specified field of this process record.
 double getFieldAsDouble(java.lang.String name, double defValue)
          Returns the value of the specified field of this process record as double value.
 int getFieldAsInt(java.lang.String name, int defValue)
          Returns the value of the specified field of this process record as integer value.
 int getIndex()
           
 java.lang.Object getObject(java.lang.String name)
          Returns the object with the specified name existing in this record.
 boolean isFieldModified(java.lang.String name)
          Returns true if the given field in the record is modified.
 boolean isModified()
          Returns true if this record is marked as modified.
 boolean isSelected()
          Returns true if this records is marked as selected.
 void setField(java.lang.String name, java.lang.String value)
          Creates a custom name in this record and sets its value.
 void setObject(java.lang.String name, java.lang.Object object)
          Sets an object with the specified name in this record.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getIndex

public int getIndex()

getBlock

public ProcessBlock getBlock()

getField

public java.lang.String getField(java.lang.String name,
                                 java.lang.String defValue)
Returns the value of the specified field of this process record.

Parameters:
name - The name of the name. It can be custom name or a block name.
defValue - The value to be returned if specified name is not found.
Returns:
The value of the custom name or block name or the default value.

getFieldAsInt

public int getFieldAsInt(java.lang.String name,
                         int defValue)
Returns the value of the specified field of this process record as integer value.

Parameters:
name - The name of the name. It can be custom name or a block name.
defValue - The value to be returned if specified name is not found or not a integer value.
Returns:
The value of the custom name or block name or the default value.

getFieldAsDouble

public double getFieldAsDouble(java.lang.String name,
                               double defValue)
Returns the value of the specified field of this process record as double value.

Parameters:
name - The name of the name. It can be custom name or a block name.
defValue - The value to be returned if specified name is not found or not a valid double.
Returns:
The value of the custom name or block name or the default value.

getFieldAsBoolean

public boolean getFieldAsBoolean(java.lang.String name,
                                 boolean defValue)
Returns the value of the specified field of this process record.

Parameters:
name - The name of the name. It can be custom name or a block name.
defValue - The value to be returned if specified name is not found.
Returns:
The value of the custom name or block name or the default value.

setField

public void setField(java.lang.String name,
                     java.lang.String value)
Creates a custom name in this record and sets its value.

Parameters:
name - The name of the custom name to be set
value - Value to set

setObject

public void setObject(java.lang.String name,
                      java.lang.Object object)
Sets an object with the specified name in this record.

Parameters:
name - The name of the object to be set
object - The object to set

getObject

public java.lang.Object getObject(java.lang.String name)
Returns the object with the specified name existing in this record.


isModified

public boolean isModified()
Returns true if this record is marked as modified.


isFieldModified

public boolean isFieldModified(java.lang.String name)
Returns true if the given field in the record is modified.


isSelected

public boolean isSelected()
Returns true if this records is marked as selected.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2002-2008 MOR YAZILIM. All Rights Reserved.