Class Eml2oai_dc
java.lang.Object
ORG.oclc.oai.server.crosswalk.Crosswalk
edu.ucsb.nceas.metacat.oaipmh.provider.server.crosswalk.Eml2oai_dc
public class Eml2oai_dc
extends ORG.oclc.oai.server.crosswalk.Crosswalk
Convert native "item" to oai_dc. In this case, the native "item" is assumed
to already be formatted as an OAI element, with the possible
exception that multiple metadataFormats may be present in the
element. The "crosswalk", merely involves pulling out the one that is
requested.
-
Constructor Summary
ConstructorDescriptionEml2oai_dc
(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 DC format?static void
setDirPath
(String configDir) Methods inherited from class ORG.oclc.oai.server.crosswalk.Crosswalk
getContentType, getDocType, getEncoding, getNamespaceURL, getSchemaLocation, getSchemaURL, toString
-
Constructor Details
-
Eml2oai_dc
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
-
setDirPath
-
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
- the native "item". In this case, it is already formatted as an OAIelement, with the possible exception that multiple metadataFormats are present in the element. - Returns:
- a String containing the FileMap 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 DC format?- Specified by:
isAvailableFor
in classORG.oclc.oai.server.crosswalk.Crosswalk
- Parameters:
nativeItem
- a record in native format- Returns:
- true if DC format is possible, false otherwise.
-