Package ucar.unidata.idv
Class DataSourceHistory
java.lang.Object
ucar.unidata.idv.History
ucar.unidata.idv.DataSourceHistory
Holds the information needed to recreate a
DataSource- Author:
- IDV development team
-
Constructor Summary
ConstructorsConstructorDescriptionParameterless ctor for xml encoding/decodingDataSourceHistory(String name, String dataSourceXml, String identifier) Create this object with the gicen name and data source xml -
Method Summary
Modifier and TypeMethodDescriptionbooleanOverride the equals method.Get the DataSourceIdentifier property.Get the DataSourceXml property.inthashCode()Override the hashcode method to hash on the dataSourceXmlbooleanCreate the data source from the xmlvoidsetDataSourceIdentifier(String value) Set the DataSourceIdentifier property.voidsetDataSourceXml(String value) Set the DataSourceXml property.
-
Constructor Details
-
DataSourceHistory
public DataSourceHistory()Parameterless ctor for xml encoding/decoding -
DataSourceHistory
Create this object with the gicen name and data source xml- Parameters:
name- The namedataSourceXml- xml encoded representation of the data sourceidentifier- Some unique identifier
-
-
Method Details
-
hashCode
public int hashCode()Override the hashcode method to hash on the dataSourceXml -
equals
Override the equals method. Compate the data source identifier -
process
Create the data source from the xml -
setDataSourceXml
Set the DataSourceXml property.- Parameters:
value- The new value for DataSourceXml
-
getDataSourceXml
Get the DataSourceXml property.- Returns:
- The DataSourceXml
-
setDataSourceIdentifier
Set the DataSourceIdentifier property.- Parameters:
value- The new value for DataSourceIdentifier
-
getDataSourceIdentifier
Get the DataSourceIdentifier property.- Returns:
- The DataSourceIdentifier
-