com.blackbear.flatworm
Class MatchedRecord

java.lang.Object
  extended by com.blackbear.flatworm.MatchedRecord

public class MatchedRecord
extends java.lang.Object

The MatchedRecord is used to return the record data from a FileFormat record request. It has a name field, which stores the name of the record found, and a set of beans generated by parsing of the record.


Constructor Summary
MatchedRecord(java.lang.String name, java.util.HashMap beans)
           
 
Method Summary
 java.lang.Object getBean(java.lang.String beanName)
          Gets a specific bean, or null if not found.
 java.lang.String getRecordName()
          Gets the name of the record found.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MatchedRecord

public MatchedRecord(java.lang.String name,
                     java.util.HashMap beans)
Method Detail

getRecordName

public java.lang.String getRecordName()
Gets the name of the record found.

Returns:
The record name

getBean

public java.lang.Object getBean(java.lang.String beanName)
Gets a specific bean, or null if not found.

Parameters:
beanName - The name of the bean to retrieve
Returns:
The bean, or null

toString

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