Class Eml201
java.lang.Object
ORG.oclc.oai.server.crosswalk.Crosswalk
edu.ucsb.nceas.metacat.oaipmh.provider.server.crosswalk.Eml201
public class Eml201
extends ORG.oclc.oai.server.crosswalk.Crosswalk
Provides eml-2.0.1 documents. We simply return the metadata that was read
from Metacat.
-
Constructor Summary
ConstructorDescriptionEml201
(Properties properties) The constructor assigns the schemaLocation associated with this crosswalk. -
Method Summary
Modifier and TypeMethodDescriptioncreateMetadata
(Object nativeItem) Perform the actual crosswalk.boolean
isAvailableFor
(Object nativeItem) Can this nativeItem be represented in 'eml-2.0.1' format?Methods inherited from class ORG.oclc.oai.server.crosswalk.Crosswalk
getContentType, getDocType, getEncoding, getNamespaceURL, getSchemaLocation, getSchemaURL, toString
-
Constructor Details
-
Eml201
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 classORG.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
Can this nativeItem be represented in 'eml-2.0.1' format?- Specified by:
isAvailableFor
in classORG.oclc.oai.server.crosswalk.Crosswalk
- Parameters:
nativeItem
- a record in native format- Returns:
- true if 'eml-2.0.1' format is possible, false otherwise.
-