Class ContextMappings
- java.lang.Object
-
- gov.nasa.pds.imaging.generate.context.ContextMappings
-
public class ContextMappings extends Object
-
-
Field Summary
Fields Modifier and Type Field Description HashMap<String,PDSContext>
contextMap
static String
XML_FILENAME
static String
XML_TAG
XML element name holding the key value
-
Constructor Summary
Constructors Constructor Description ContextMappings()
ContextMappings(PDSObject pdsObject)
Populates the contextMap with those classes specified in the context mappings XML file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMapping(String key, PDSContext value)
-
-
-
Field Detail
-
XML_FILENAME
public static final String XML_FILENAME
- See Also:
- Constant Field Values
-
XML_TAG
public static final String XML_TAG
XML element name holding the key value- See Also:
- Constant Field Values
-
contextMap
public HashMap<String,PDSContext> contextMap
-
-
Constructor Detail
-
ContextMappings
public ContextMappings() throws TemplateException, IOException
- Throws:
TemplateException
IOException
-
ContextMappings
public ContextMappings(PDSObject pdsObject) throws TemplateException, IOException, gov.nasa.pds.tools.LabelParserException
Populates the contextMap with those classes specified in the context mappings XML file.- Throws:
TemplateException
gov.nasa.pds.tools.LabelParserException
Exception
IOException
-
-
Method Detail
-
addMapping
public void addMapping(String key, PDSContext value)
-
-