fedora.oai
Class SimpleRecord

java.lang.Object
  extended byfedora.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.

-----------------------------------------------------------------------------

License and Copyright: The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/.

Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.

The entire file consists of original code. Copyright © 2002-2005 by The Rector and Visitors of the University of Virginia and Cornell University. All rights reserved.

-----------------------------------------------------------------------------

Version:
$Id: SimpleRecord.java,v 1.7 2005/01/11 20:06:05 cwilper Exp $
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