gov.nasa.pds.citool.util.References Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of catalog-legacy Show documentation
Show all versions of catalog-legacy Show documentation
The Legacy Catalog Tool provides functionality for ingesting PDS3 catalog files into the PDS4 infrastructure including the Registry Service.
package gov.nasa.pds.citool.util;
import java.util.HashMap;
import java.util.Map;
public class References
{
private static References instance = new References();
private Map refs;
private References()
{
refs = new HashMap();
}
public static References getInstance()
{
return instance;
}
public void put(String key, String value)
{
refs.put(key, value);
}
public String get(String key)
{
String val = refs.get(key);
return (val == null) ? key : val;
}
public void clear()
{
refs.clear();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy