com.rhi.architecture.parc
Class ListRecordSet

java.lang.Object
  extended bycom.rhi.architecture.parc.AbstractRecord
      extended bycom.rhi.architecture.parc.ListRecordSet
All Implemented Interfaces:
Record

public class ListRecordSet
extends AbstractRecord

The RecordSet is a group of Records. It is an implementation of the composite element of GOF Composite pattern.

Since:
1.0
Author:
Lakshmi & Anju

Field Summary
 
Fields inherited from class com.rhi.architecture.parc.AbstractRecord
DEFAULT_SEPARATOR
 
Constructor Summary
ListRecordSet()
          Constructor
ListRecordSet(java.lang.Object source)
          Constructor
 
Method Summary
 void add(Record r)
          Add a new Record to the set.
 java.lang.Object getSourceKey()
          returns the Source Key
 java.util.Iterator iterator()
          Return the Iterator of the List
 boolean remove(Record r)
          Remove a Record from the set.
 
Methods inherited from class com.rhi.architecture.parc.AbstractRecord
addError, getErrors, isErrored, isValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.rhi.architecture.parc.Record
toString
 

Constructor Detail

ListRecordSet

public ListRecordSet()
Constructor


ListRecordSet

public ListRecordSet(java.lang.Object source)
Constructor

Parameters:
source -
Method Detail

getSourceKey

public java.lang.Object getSourceKey()
returns the Source Key

Returns:
Object - source key

add

public void add(Record r)
Add a new Record to the set. New Records are appended to the end of the Collection

Parameters:
r -
Since:
1.0

remove

public boolean remove(Record r)
Remove a Record from the set.

Parameters:
r -
Returns:
boolean
Since:
1.0

iterator

public java.util.Iterator iterator()
Return the Iterator of the List

Returns:
Iterator


Copyright © 2002-2004 Robert Half International. All Rights Reserved.