fedora.oai
Class SimpleRecord

java.lang.Object
  extended by fedora.oai.SimpleRecord
All Implemented Interfaces:
Record

public class SimpleRecord
extends java.lang.Object
implements Record

Title: SimpleRecord.java

Description: A simple implementation of Record that provides getters on the values passed in the constructor.

Version:
$Id: SimpleRecord.java 3965 2005-04-21 12:52:40Z rlw $
Author:
cwilper@cs.cornell.edu

Constructor Summary
SimpleRecord(Header header, java.lang.String metadata, java.util.Set abouts)
           
 
Method Summary
 java.util.Set getAbouts()
          Get the 'about' portions of the record.
 Header getHeader()
          Get the header portion of the record.
 java.lang.String getMetadata()
          Get the metadata portion of the record.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleRecord

public SimpleRecord(Header header,
                    java.lang.String metadata,
                    java.util.Set abouts)
Method Detail

getHeader

public Header getHeader()
Description copied from interface: Record
Get the header portion of the record.

Specified by:
getHeader in interface Record

getMetadata

public java.lang.String getMetadata()
Description copied from interface: Record
Get the metadata portion of the record. This must be an xml chunk in which the W3C schema is identified by the root element's xsi:schemaLocation attribute. If getHeader().isAvailable() is false, this may be null.

Specified by:
getMetadata in interface Record

getAbouts

public java.util.Set getAbouts()
Description copied from interface: Record
Get the 'about' portions of the record. There will be zero or more items in the resulting Set. These are descriptors of the metadata. These must be xml chunks in which the W3C schema is identified by the root element's xsi:schemaLocation attribute. If getHeader().isAvailable() is false, this may be null.

Specified by:
getAbouts in interface Record