Class DataSourceHistory

java.lang.Object
ucar.unidata.idv.History
ucar.unidata.idv.DataSourceHistory

public class DataSourceHistory extends History
Holds the information needed to recreate a DataSource
Author:
IDV development team
  • Constructor Details

    • DataSourceHistory

      public DataSourceHistory()
      Parameterless ctor for xml encoding/decoding
    • DataSourceHistory

      public DataSourceHistory(String name, String dataSourceXml, String identifier)
      Create this object with the gicen name and data source xml
      Parameters:
      name - The name
      dataSourceXml - xml encoded representation of the data source
      identifier - Some unique identifier
  • Method Details

    • hashCode

      public int hashCode()
      Override the hashcode method to hash on the dataSourceXml
      Overrides:
      hashCode in class History
      Returns:
      The hashcode
    • equals

      public boolean equals(Object o)
      Override the equals method. Compate the data source identifier
      Overrides:
      equals in class History
      Parameters:
      o - The other object
      Returns:
      Is equals
    • process

      public boolean process(IntegratedDataViewer idv)
      Create the data source from the xml
      Specified by:
      process in class History
      Parameters:
      idv - The IDV
      Returns:
      Was the creation successful
    • setDataSourceXml

      public void setDataSourceXml(String value)
      Set the DataSourceXml property.
      Parameters:
      value - The new value for DataSourceXml
    • getDataSourceXml

      public String getDataSourceXml()
      Get the DataSourceXml property.
      Returns:
      The DataSourceXml
    • setDataSourceIdentifier

      public void setDataSourceIdentifier(String value)
      Set the DataSourceIdentifier property.
      Parameters:
      value - The new value for DataSourceIdentifier
    • getDataSourceIdentifier

      public String getDataSourceIdentifier()
      Get the DataSourceIdentifier property.
      Returns:
      The DataSourceIdentifier