Package org.dlese.dpc.schemedit.ndr.util
Class InfoStream
java.lang.Object
org.dlese.dpc.schemedit.ndr.util.InfoStream
See http://ndr.comm.nsdl.org/cgi-bin/wiki.pl?addMetadata for documentation
of the InfoStream in MetadataObjects.
NOTE: OAI Harvest info is not relevant to NCS collections, but is required in the info stream, so we use values that will at lease schema-validate for harvest-related elements.
- Version:
- $Id: InfoStream.java,v 1.3 2009/03/20 23:33:56 jweather Exp $
- Author:
- Jonathan Ostwald
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for the InfoStream objectInfoStream(String harvestIdentifier, String nsdlAboutCategory, String repositoryPrimaryIdentifier, String link, String metadataNamespace) Constructor for the InfoStream objectInfoStream(org.dom4j.Element element) -
Method Summary
Modifier and TypeMethodDescriptionorg.dom4j.ElementNOT YET DOCUMENTEDstatic InfoStreamGets the fakeInfoStream attribute of the InfoStream classstatic voidThe main program for the InfoStream classvoidsetHarvestDatasource(String harvestDatasource) Sets the harvestDatasource attribute of the InfoStream objectvoidsetHarvestDatasourcePublic(String harvestDatasourcePublic) Sets the harvestDatasourcePublic attribute of the InfoStream objectvoidsetHarvestDate(String harvestDate) Sets the harvestDate attribute of the InfoStream objectvoidsetHarvestHarvestType(String harvestHarvestType) Sets the harvestHarvestType attribute of the InfoStream objectvoidsetHarvestIdentifier(String harvestIdentifier) Sets the harvestIdentifier attribute of the InfoStream objectvoidsetHarvestRecordDatestamp(String harvestRecordDatestamp) Sets the harvestRecordDatestamp attribute of the InfoStream objectvoidSets the link attribute of the InfoStream objectvoidsetMetadataNamespace(String metadataNamespace) Sets the metadataNamespace attribute of the InfoStream objectvoidsetNsdlAboutCategory(String nsdlAboutCategory) Sets the nsdlAboutCategory attribute of the InfoStream objectvoidsetRepositoryPrimaryIdentifier(String repositoryPrimaryIdentifier) Sets the repositoryPrimaryIdentifier attribute of the InfoStream object
-
Constructor Details
-
InfoStream
public InfoStream()Constructor for the InfoStream object -
InfoStream
public InfoStream(String harvestIdentifier, String nsdlAboutCategory, String repositoryPrimaryIdentifier, String link, String metadataNamespace) Constructor for the InfoStream object- Parameters:
harvestIdentifier- the metadata provider's unique ID for this metadata. (e.g. the metadata provider's OAI identifier). This should be the same as the value of the uniqueID property.nsdlAboutCategory- either "item" or "collection"repositoryPrimaryIdentifier- metadata identifier (resourceUrl)link- itemId property from collection metadata objectmetadataNamespace- XML namespace URI of this format's metadata.
-
InfoStream
public InfoStream(org.dom4j.Element element)
-
-
Method Details
-
setNsdlAboutCategory
Sets the nsdlAboutCategory attribute of the InfoStream object- Parameters:
nsdlAboutCategory- The new nsdlAboutCategory value
-
setRepositoryPrimaryIdentifier
Sets the repositoryPrimaryIdentifier attribute of the InfoStream object- Parameters:
repositoryPrimaryIdentifier- The new repositoryPrimaryIdentifier value
-
setLink
Sets the link attribute of the InfoStream object- Parameters:
link- The new link value
-
setHarvestDate
Sets the harvestDate attribute of the InfoStream object- Parameters:
harvestDate- The new harvestDate value
-
setHarvestHarvestType
Sets the harvestHarvestType attribute of the InfoStream object- Parameters:
harvestHarvestType- The new harvestHarvestType value
-
setHarvestDatasourcePublic
Sets the harvestDatasourcePublic attribute of the InfoStream object- Parameters:
harvestDatasourcePublic- The new harvestDatasourcePublic value
-
setHarvestDatasource
Sets the harvestDatasource attribute of the InfoStream object- Parameters:
harvestDatasource- The new harvestDatasource value
-
setHarvestIdentifier
Sets the harvestIdentifier attribute of the InfoStream object- Parameters:
harvestIdentifier- The new harvestIdentifier value
-
setHarvestRecordDatestamp
Sets the harvestRecordDatestamp attribute of the InfoStream object- Parameters:
harvestRecordDatestamp- The new harvestRecordDatestamp value
-
setMetadataNamespace
Sets the metadataNamespace attribute of the InfoStream object- Parameters:
metadataNamespace- The new metadataNamespace value
-
asElement
public org.dom4j.Element asElement()NOT YET DOCUMENTED- Returns:
- NOT YET DOCUMENTED
-
main
The main program for the InfoStream class- Parameters:
args- The command line arguments- Throws:
Exception- NOT YET DOCUMENTED
-
getFakeInfoStream
Gets the fakeInfoStream attribute of the InfoStream class- Returns:
- The fakeInfoStream value
-