java.lang.Object
ORG.oclc.oai.server.crosswalk.Crosswalk
edu.ucsb.nceas.metacat.oaipmh.provider.server.crosswalk.Eml211

public class Eml211 extends ORG.oclc.oai.server.crosswalk.Crosswalk
Provides eml-2.1.1 documents. We simply return the metadata that was read from Metacat.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Eml211(Properties properties)
    The constructor assigns the schemaLocation associated with this crosswalk.
  • Method Summary

    Modifier and Type
    Method
    Description
    createMetadata(Object nativeItem)
    Perform the actual crosswalk.
    boolean
    isAvailableFor(Object nativeItem)
    Can this nativeItem be represented in 'eml-2.1.1' format?

    Methods inherited from class ORG.oclc.oai.server.crosswalk.Crosswalk

    getContentType, getDocType, getEncoding, getNamespaceURL, getSchemaLocation, getSchemaURL, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Eml211

      public Eml211(Properties properties) throws ORG.oclc.oai.server.verb.OAIInternalServerError
      The constructor assigns the schemaLocation associated with this crosswalk. Since the crosswalk is trivial in this case, no properties are utilized.
      Parameters:
      properties - properties that are needed to configure the crosswalk.
      Throws:
      ORG.oclc.oai.server.verb.OAIInternalServerError
  • Method Details

    • createMetadata

      public String createMetadata(Object nativeItem) throws ORG.oclc.oai.server.verb.CannotDisseminateFormatException
      Perform the actual crosswalk.
      Specified by:
      createMetadata in class ORG.oclc.oai.server.crosswalk.Crosswalk
      Parameters:
      nativeItem - A HashMap object that contains the EML string that was retrieved from Metacat and stored as the value of the "recordBytes" key
      Returns:
      emlDoc a String containing the metadata to be stored within the element
      Throws:
      ORG.oclc.oai.server.verb.CannotDisseminateFormatException - nativeItem doesn't support this format.
    • isAvailableFor

      public boolean isAvailableFor(Object nativeItem)
      Can this nativeItem be represented in 'eml-2.1.1' format?
      Specified by:
      isAvailableFor in class ORG.oclc.oai.server.crosswalk.Crosswalk
      Parameters:
      nativeItem - a record in native format
      Returns:
      true if 'eml-2.1.1' format is possible, false otherwise.