public class InfoStream
extends java.lang.Object
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.
Constructor and Description |
---|
InfoStream()
Constructor for the InfoStream object
|
InfoStream(org.dom4j.Element element) |
InfoStream(java.lang.String harvestIdentifier,
java.lang.String nsdlAboutCategory,
java.lang.String repositoryPrimaryIdentifier,
java.lang.String link,
java.lang.String metadataNamespace)
Constructor for the InfoStream object
|
Modifier and Type | Method and Description |
---|---|
org.dom4j.Element |
asElement()
NOT YET DOCUMENTED
|
static InfoStream |
getFakeInfoStream()
Gets the fakeInfoStream attribute of the InfoStream class
|
static void |
main(java.lang.String[] args)
The main program for the InfoStream class
|
void |
setHarvestDatasource(java.lang.String harvestDatasource)
Sets the harvestDatasource attribute of the InfoStream object
|
void |
setHarvestDatasourcePublic(java.lang.String harvestDatasourcePublic)
Sets the harvestDatasourcePublic attribute of the InfoStream object
|
void |
setHarvestDate(java.lang.String harvestDate)
Sets the harvestDate attribute of the InfoStream object
|
void |
setHarvestHarvestType(java.lang.String harvestHarvestType)
Sets the harvestHarvestType attribute of the InfoStream object
|
void |
setHarvestIdentifier(java.lang.String harvestIdentifier)
Sets the harvestIdentifier attribute of the InfoStream object
|
void |
setHarvestRecordDatestamp(java.lang.String harvestRecordDatestamp)
Sets the harvestRecordDatestamp attribute of the InfoStream object
|
void |
setLink(java.lang.String link)
Sets the link attribute of the InfoStream object
|
void |
setMetadataNamespace(java.lang.String metadataNamespace)
Sets the metadataNamespace attribute of the InfoStream object
|
void |
setNsdlAboutCategory(java.lang.String nsdlAboutCategory)
Sets the nsdlAboutCategory attribute of the InfoStream object
|
void |
setRepositoryPrimaryIdentifier(java.lang.String repositoryPrimaryIdentifier)
Sets the repositoryPrimaryIdentifier attribute of the InfoStream object
|
public InfoStream()
public InfoStream(java.lang.String harvestIdentifier, java.lang.String nsdlAboutCategory, java.lang.String repositoryPrimaryIdentifier, java.lang.String link, java.lang.String metadataNamespace)
nsdlAboutCategory
- either "item" or "collection"repositoryPrimaryIdentifier
- metadata identifier (resourceUrl)link
- itemId property from collection metadata objectmetadataNamespace
- XML namespace URI of this format's metadata.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.public InfoStream(org.dom4j.Element element)
public void setNsdlAboutCategory(java.lang.String nsdlAboutCategory)
nsdlAboutCategory
- The new nsdlAboutCategory valuepublic void setRepositoryPrimaryIdentifier(java.lang.String repositoryPrimaryIdentifier)
repositoryPrimaryIdentifier
- The new repositoryPrimaryIdentifier
valuepublic void setLink(java.lang.String link)
link
- The new link valuepublic void setHarvestDate(java.lang.String harvestDate)
harvestDate
- The new harvestDate valuepublic void setHarvestHarvestType(java.lang.String harvestHarvestType)
harvestHarvestType
- The new harvestHarvestType valuepublic void setHarvestDatasourcePublic(java.lang.String harvestDatasourcePublic)
harvestDatasourcePublic
- The new harvestDatasourcePublic valuepublic void setHarvestDatasource(java.lang.String harvestDatasource)
harvestDatasource
- The new harvestDatasource valuepublic void setHarvestIdentifier(java.lang.String harvestIdentifier)
harvestIdentifier
- The new harvestIdentifier valuepublic void setHarvestRecordDatestamp(java.lang.String harvestRecordDatestamp)
harvestRecordDatestamp
- The new harvestRecordDatestamp valuepublic void setMetadataNamespace(java.lang.String metadataNamespace)
metadataNamespace
- The new metadataNamespace valuepublic org.dom4j.Element asElement()
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- The command line argumentsjava.lang.Exception
- NOT YET DOCUMENTEDpublic static InfoStream getFakeInfoStream()