Class InfoStream

java.lang.Object
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 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 object
      metadataNamespace - XML namespace URI of this format's metadata.
    • InfoStream

      public InfoStream(org.dom4j.Element element)
  • Method Details

    • 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 org.dom4j.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