com.rhi.architecture.parc
Class MapRecordSet

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

public class MapRecordSet
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
MapRecordSet()
          Constructor
MapRecordSet(java.lang.Object source)
          Constructor
 
Method Summary
 java.lang.Object get(java.lang.Object key)
          get a Record from the set for the given key
 java.lang.Object getSourceKey()
          returns the Source Key
 void put(java.lang.Object key, Record r)
          Add a new Record to 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

MapRecordSet

public MapRecordSet()
Constructor


MapRecordSet

public MapRecordSet(java.lang.Object source)
Constructor

Parameters:
source -
Method Detail

getSourceKey

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

Returns:
Object

put

public void put(java.lang.Object key,
                Record r)
Add a new Record to the set. New Records are appended to the end of the Collection

Parameters:
key -
r -
Since:
1.0

get

public java.lang.Object get(java.lang.Object key)
get a Record from the set for the given key

Parameters:
key -
Returns:
Object
Since:
1.0


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