DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.ndr.util
Class InfoStream

java.lang.Object
  extended by org.dlese.dpc.schemedit.ndr.util.InfoStream

public class InfoStream
extends Object

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
InfoStream()
          Constructor for the InfoStream object
InfoStream(Element element)
           
InfoStream(String harvestIdentifier, String nsdlAboutCategory, String repositoryPrimaryIdentifier, String link, String metadataNamespace)
          Constructor for the InfoStream object
 
Method Summary
 Element asElement()
          NOT YET DOCUMENTED
static InfoStream getFakeInfoStream()
          Gets the fakeInfoStream attribute of the InfoStream class
static void main(String[] args)
          The main program for the InfoStream class
 void setHarvestDatasource(String harvestDatasource)
          Sets the harvestDatasource attribute of the InfoStream object
 void setHarvestDatasourcePublic(String harvestDatasourcePublic)
          Sets the harvestDatasourcePublic attribute of the InfoStream object
 void setHarvestDate(String harvestDate)
          Sets the harvestDate attribute of the InfoStream object
 void setHarvestHarvestType(String harvestHarvestType)
          Sets the harvestHarvestType attribute of the InfoStream object
 void setHarvestIdentifier(String harvestIdentifier)
          Sets the harvestIdentifier attribute of the InfoStream object
 void setHarvestRecordDatestamp(String harvestRecordDatestamp)
          Sets the harvestRecordDatestamp attribute of the InfoStream object
 void setLink(String link)
          Sets the link attribute of the InfoStream object
 void setMetadataNamespace(String metadataNamespace)
          Sets the metadataNamespace attribute of the InfoStream object
 void setNsdlAboutCategory(String nsdlAboutCategory)
          Sets the nsdlAboutCategory attribute of the InfoStream object
 void setRepositoryPrimaryIdentifier(String repositoryPrimaryIdentifier)
          Sets the repositoryPrimaryIdentifier attribute of the InfoStream object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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:
nsdlAboutCategory - either "item" or "collection"
repositoryPrimaryIdentifier - metadata identifier (resourceUrl)
link - itemId property from collection metadata object
metadataNamespace - 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.

InfoStream

public InfoStream(Element element)
Method Detail

setNsdlAboutCategory

public void setNsdlAboutCategory(String nsdlAboutCategory)
Sets the nsdlAboutCategory attribute of the InfoStream object

Parameters:
nsdlAboutCategory - The new nsdlAboutCategory value

setRepositoryPrimaryIdentifier

public void setRepositoryPrimaryIdentifier(String repositoryPrimaryIdentifier)
Sets the repositoryPrimaryIdentifier attribute of the InfoStream object

Parameters:
repositoryPrimaryIdentifier - The new repositoryPrimaryIdentifier value

setLink

public void setLink(String link)
Sets the link attribute of the InfoStream object

Parameters:
link - The new link value

setHarvestDate

public void setHarvestDate(String harvestDate)
Sets the harvestDate attribute of the InfoStream object

Parameters:
harvestDate - The new harvestDate value

setHarvestHarvestType

public void setHarvestHarvestType(String harvestHarvestType)
Sets the harvestHarvestType attribute of the InfoStream object

Parameters:
harvestHarvestType - The new harvestHarvestType value

setHarvestDatasourcePublic

public void setHarvestDatasourcePublic(String harvestDatasourcePublic)
Sets the harvestDatasourcePublic attribute of the InfoStream object

Parameters:
harvestDatasourcePublic - The new harvestDatasourcePublic value

setHarvestDatasource

public void setHarvestDatasource(String harvestDatasource)
Sets the harvestDatasource attribute of the InfoStream object

Parameters:
harvestDatasource - The new harvestDatasource value

setHarvestIdentifier

public void setHarvestIdentifier(String harvestIdentifier)
Sets the harvestIdentifier attribute of the InfoStream object

Parameters:
harvestIdentifier - The new harvestIdentifier value

setHarvestRecordDatestamp

public void setHarvestRecordDatestamp(String harvestRecordDatestamp)
Sets the harvestRecordDatestamp attribute of the InfoStream object

Parameters:
harvestRecordDatestamp - The new harvestRecordDatestamp value

setMetadataNamespace

public void setMetadataNamespace(String metadataNamespace)
Sets the metadataNamespace attribute of the InfoStream object

Parameters:
metadataNamespace - The new metadataNamespace value

asElement

public Element asElement()
NOT YET DOCUMENTED

Returns:
NOT YET DOCUMENTED

main

public static void main(String[] args)
                 throws Exception
The main program for the InfoStream class

Parameters:
args - The command line arguments
Throws:
Exception - NOT YET DOCUMENTED

getFakeInfoStream

public static InfoStream getFakeInfoStream()
Gets the fakeInfoStream attribute of the InfoStream class

Returns:
The fakeInfoStream value

DLESE Tools
v1.6.0