|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.imaging.generate.automatic.AutoGeneratedElements
public class AutoGeneratedElements
Field Summary | |
---|---|
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 XML |
static String |
XML_FILENAME
The XML File Path for the file with the generated value mappings |
static String |
XML_KEY
XML element name holding the key value |
static String |
XML_VALUE
XML element name holding the mapped value |
Constructor Summary | |
---|---|
AutoGeneratedElements()
|
Method Summary | |
---|---|
void |
addMapping(String key,
Class<?> value)
|
String |
get(String value)
|
String |
getContext()
|
String |
getUnits(String key)
|
void |
setMappings()
|
void |
setParameters(PDSObject pdsObject,
String confPath)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CONTEXT
public static final String XML_FILENAME
public static final String XML_KEY
public static final String XML_VALUE
public Map<String,Class<?>> genValsMap
Constructor Detail |
---|
public AutoGeneratedElements()
Method Detail |
---|
public void addMapping(String key, Class<?> value)
public String get(String value) throws TemplateException
get
in interface PDSContext
TemplateException
public String getContext()
getContext
in interface PDSContext
public String getUnits(String key)
getUnits
in interface PDSContext
public void setParameters(PDSObject pdsObject, String confPath)
setParameters
in interface PDSContext
public void setMappings() throws Exception
setMappings
in interface PDSContext
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |