org.moremotion.process
Class MemoryProcessBlock

java.lang.Object
  extended by org.moremotion.process.MemoryProcessBlock
All Implemented Interfaces:
ProcessBlock

public class MemoryProcessBlock
extends java.lang.Object
implements ProcessBlock

Represents a Process Block that includes one or more Process Records.

Version:
$Id: MemoryProcessBlock.java 63 2008-03-14 16:29:03Z erkan $

Method Summary
 void addRecord(MemoryProcessRecord record)
          Adds a process record to this process block.
 void clearRecords()
          Clears all the process records of this process block.
 java.lang.String getField(java.lang.String fieldName, int index)
           
 java.lang.String[] getFieldNames()
          Returns the names of the block fields.
 java.lang.Object getObject(java.lang.String fieldName, int index)
           
 ProcessRecord getRecord(int index)
          Returns the process record that has the specified index number.
 int getRecordCount()
          Returns the number of process records available in this block.
 boolean isFieldModified(java.lang.String fieldName, int index)
           
 boolean isModified(int index)
           
 boolean isSelected(int index)
           
 void setField(java.lang.String fieldName, java.lang.String value, int index)
           
 void setObject(java.lang.String fieldName, java.lang.Object object, int index)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

addRecord

public void addRecord(MemoryProcessRecord record)
               throws ProcessManagingException
Adds a process record to this process block.

Parameters:
record - MemoryProcessRecord object to add to this block
Throws:
ProcessManagingException

clearRecords

public void clearRecords()
Clears all the process records of this process block.


getRecordCount

public int getRecordCount()
Returns the number of process records available in this block.

Specified by:
getRecordCount in interface ProcessBlock

getRecord

public ProcessRecord getRecord(int index)
Returns the process record that has the specified index number.


getFieldNames

public java.lang.String[] getFieldNames()
Returns the names of the block fields.

Specified by:
getFieldNames in interface ProcessBlock

getField

public java.lang.String getField(java.lang.String fieldName,
                                 int index)
Specified by:
getField in interface ProcessBlock

isSelected

public boolean isSelected(int index)
Specified by:
isSelected in interface ProcessBlock

isModified

public boolean isModified(int index)
Specified by:
isModified in interface ProcessBlock

isFieldModified

public boolean isFieldModified(java.lang.String fieldName,
                               int index)
Specified by:
isFieldModified in interface ProcessBlock

setField

public void setField(java.lang.String fieldName,
                     java.lang.String value,
                     int index)
Specified by:
setField in interface ProcessBlock

getObject

public java.lang.Object getObject(java.lang.String fieldName,
                                  int index)
Specified by:
getObject in interface ProcessBlock

setObject

public void setObject(java.lang.String fieldName,
                      java.lang.Object object,
                      int index)
Specified by:
setObject in interface ProcessBlock

toString

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


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