ucar.unidata.idv
Class DataSourceHistory

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

public class DataSourceHistory
extends History

Holds the information needed to recreate a DataSource

Author:
IDV development team

Constructor Summary
DataSourceHistory()
          Parameterless ctor for xml encoding/decoding
DataSourceHistory(String name, String dataSourceXml, String identifier)
          Create this object with the gicen name and data source xml
 
Method Summary
 boolean equals(Object o)
          Override the equals method.
 String getDataSourceIdentifier()
          Get the DataSourceIdentifier property.
 String getDataSourceXml()
          Get the DataSourceXml property.
 int hashCode()
          Override the hashcode method to hash on the dataSourceXml
 boolean process(IntegratedDataViewer idv)
          Create the data source from the xml
 void setDataSourceIdentifier(String value)
          Set the DataSourceIdentifier property.
 void setDataSourceXml(String value)
          Set the DataSourceXml property.
 
Methods inherited from class ucar.unidata.idv.History
findWithAlias, getAlias, getName, hasAlias, setAlias, setName, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 Detail

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