org.fcrepo.oai
Class SimpleRecord

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

public class SimpleRecord
extends Object
implements Record

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

Author:
Chris Wilper

Constructor Summary
SimpleRecord(Header header, String metadata, Set abouts)
           
 
Method Summary
 Set getAbouts()
          Get the 'about' portions of the record.
 Header getHeader()
          Get the header portion of the record.
 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,
                    String metadata,
                    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 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 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


Copyright © 2012 DuraSpace. All Rights Reserved.