Class AutoGeneratedElements
- java.lang.Object
-
- gov.nasa.pds.imaging.generate.automatic.AutoGeneratedElements
-
- All Implemented Interfaces:
PDSContext
,PDSObjectContext
public class AutoGeneratedElements extends Object implements PDSObjectContext
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONTEXT
Specifies the CONTEXT to be mapped to the Velocity Templates.Map<String,Class<?>>
genValsMap
Map that will hole the String -> Class mappings specified in the XMLstatic String
XML_FILENAME
The XML File Path for the file with the generated value mappingsstatic String
XML_KEY
XML element name holding the key valuestatic String
XML_VALUE
XML element name holding the mapped value
-
Constructor Summary
Constructors Constructor Description AutoGeneratedElements()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMapping(String key, Class<?> value)
String
get(String value)
String
getContext()
String
getUnits(String key)
void
setMappings()
void
setParameters(PDSObject pdsObject)
-
-
-
Field Detail
-
CONTEXT
public static final String CONTEXT
Specifies the CONTEXT to be mapped to the Velocity Templates.- See Also:
- Constant Field Values
-
XML_FILENAME
public static final String XML_FILENAME
The XML File Path for the file with the generated value mappings- See Also:
- Constant Field Values
-
XML_KEY
public static final String XML_KEY
XML element name holding the key value- See Also:
- Constant Field Values
-
XML_VALUE
public static final String XML_VALUE
XML element name holding the mapped value- See Also:
- Constant Field Values
-
-
Method Detail
-
get
public String get(String value) throws TemplateException
- Specified by:
get
in interfacePDSObjectContext
- Throws:
TemplateException
-
getContext
public String getContext()
- Specified by:
getContext
in interfacePDSContext
-
getUnits
public String getUnits(String key)
- Specified by:
getUnits
in interfacePDSObjectContext
-
setParameters
public void setParameters(PDSObject pdsObject)
- Specified by:
setParameters
in interfacePDSObjectContext
-
setMappings
public void setMappings() throws TemplateException, IOException
- Specified by:
setMappings
in interfacePDSObjectContext
- Throws:
TemplateException
IOException
-
-