|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectORG.oclc.oai.server.catalog.RecordFactory
edu.ucsb.nceas.metacat.oaipmh.provider.server.catalog.MetacatRecordFactory
public class MetacatRecordFactory
MetacatRecordFactory converts native Metacat documents to OAI-PMH records.
| Field Summary |
|---|
| Fields inherited from class ORG.oclc.oai.server.catalog.RecordFactory |
|---|
debug |
| Constructor Summary | |
|---|---|
MetacatRecordFactory(java.util.Properties properties)
Construct a MetacatRecordFactory capable of producing the Crosswalk(s) specified in the properties file. |
|
| Method Summary | |
|---|---|
java.lang.String[] |
createHeader(java.lang.Object nativeItem)
Convert a native "item" to a "record" String. |
java.lang.String |
fromOAIIdentifier(java.lang.String oaiIdentifier)
Utility method to parse the 'local identifier' from the OAI identifier |
java.util.Iterator |
getAbouts(java.lang.Object nativeItem)
Get the about elements from the item |
java.lang.String |
getDatestamp(java.lang.Object nativeItem)
get the datestamp from the item |
java.lang.String |
getLocalIdentifier(java.lang.Object nativeItem)
Extract the local identifier from the native item |
java.lang.String |
getOAIIdentifier(java.lang.Object nativeItem)
Construct an OAI identifier from the native item |
java.lang.String |
getOAIIdentifierOld(java.lang.Object nativeItem)
Construct an OAI identifier from the native item |
java.util.Iterator |
getSetSpecs(java.lang.Object nativeItem)
get the setspec from the item |
boolean |
isDeleted(java.lang.Object nativeItem)
Is the record deleted? |
java.lang.String |
quickCreate(java.lang.Object nativeItem,
java.lang.String schemaLocation,
java.lang.String metadataPrefix)
Allows classes that implement RecordFactory to override the default create() method. |
| Methods inherited from class ORG.oclc.oai.server.catalog.RecordFactory |
|---|
create, create, create, create, createHeader, createHeader, createMetadata, createMetadata, createMetadata, getCrosswalks, getSchemaLocations, quickCreateMetadata |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MetacatRecordFactory(java.util.Properties properties)
throws java.lang.IllegalArgumentException
properties - Contains information to configure the factory: specifically, the
names of the crosswalk(s) supported
java.lang.IllegalArgumentException - Something is wrong with the argument.| Method Detail |
|---|
public java.lang.String fromOAIIdentifier(java.lang.String oaiIdentifier)
fromOAIIdentifier in class ORG.oclc.oai.server.catalog.RecordFactoryoaiIdentifier - OAI identifier e.g.
"urn:lsid:knb.ecoinformatics.org:knb-lter-gce:169"
public java.lang.String getOAIIdentifier(java.lang.Object nativeItem)
getOAIIdentifier in class ORG.oclc.oai.server.catalog.RecordFactorynativeItem - native Item object
public java.lang.String getOAIIdentifierOld(java.lang.Object nativeItem)
nativeItem - native Item object
public java.lang.String getLocalIdentifier(java.lang.Object nativeItem)
getLocalIdentifier in class ORG.oclc.oai.server.catalog.RecordFactorynativeItem - native Item object
public java.lang.String getDatestamp(java.lang.Object nativeItem)
throws java.lang.IllegalArgumentException
getDatestamp in class ORG.oclc.oai.server.catalog.RecordFactorynativeItem - a native item presumably containing a datestamp somewhere
java.lang.IllegalArgumentException - Something is wrong with the argument.
public java.util.Iterator getSetSpecs(java.lang.Object nativeItem)
throws java.lang.IllegalArgumentException
getSetSpecs in class ORG.oclc.oai.server.catalog.RecordFactorynativeItem - a native item presumably containing a setspec somewhere
java.lang.IllegalArgumentException - Something is wrong with the argument.
public java.util.Iterator getAbouts(java.lang.Object nativeItem)
throws java.lang.IllegalArgumentException
getAbouts in class ORG.oclc.oai.server.catalog.RecordFactorynativeItem - a native item presumably containing about information somewhere
java.lang.IllegalArgumentException - Something is wrong with the argument.
public boolean isDeleted(java.lang.Object nativeItem)
throws java.lang.IllegalArgumentException
isDeleted in class ORG.oclc.oai.server.catalog.RecordFactorynativeItem - a native item presumably containing a possible delete indicator
java.lang.IllegalArgumentException - Something is wrong with the argument.
public java.lang.String quickCreate(java.lang.Object nativeItem,
java.lang.String schemaLocation,
java.lang.String metadataPrefix)
quickCreate in class ORG.oclc.oai.server.catalog.RecordFactorynativeItem - the native recordschemaURL - the schemaURL desired for the responsethe - metadataPrefix from the request
public java.lang.String[] createHeader(java.lang.Object nativeItem)
throws java.lang.IllegalArgumentException
createHeader in class ORG.oclc.oai.server.catalog.RecordFactorynativeItem - the native record.
java.lang.IllegalArgumentException - One of the header components for this record is bad.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||