gov.nasa.pds.imaging.generation.generate
Class GeneratedElements

java.lang.Object
  extended by gov.nasa.pds.imaging.generation.generate.GeneratedElements
All Implemented Interfaces:
PDSContext

public class GeneratedElements
extends Object
implements PDSContext


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
GeneratedElements()
           
 
Method Summary
 void addMapping(String key, Class<?> value)
           
 String get(String value)
           
 String getContext()
           
 String getUnits(String key)
           
 void setConfigPath(String path)
           
 void setInputPath(String filePath)
           
 void setMappings()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

genValsMap

public Map<String,Class<?>> genValsMap
Map that will hole the String -> Class mappings specified in the XML

Constructor Detail

GeneratedElements

public GeneratedElements()
Method Detail

setMappings

public void setMappings()
                 throws Exception
Specified by:
setMappings in interface PDSContext
Throws:
Exception

addMapping

public void addMapping(String key,
                       Class<?> value)

get

public String get(String value)
           throws TemplateException
Specified by:
get in interface PDSContext
Throws:
TemplateException

setInputPath

public void setInputPath(String filePath)
Specified by:
setInputPath in interface PDSContext

getContext

public String getContext()
Specified by:
getContext in interface PDSContext

getUnits

public String getUnits(String key)
Specified by:
getUnits in interface PDSContext

setConfigPath

public void setConfigPath(String path)
Specified by:
setConfigPath in interface PDSContext


Copyright © 2010-2011 Planetary Data System. All Rights Reserved.