gov.nasa.pds.imaging.generate.automatic
Class AutoGeneratedElements

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

public class AutoGeneratedElements
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
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

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

AutoGeneratedElements

public AutoGeneratedElements()
Method Detail

addMapping

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

get

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

getContext

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

getUnits

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

setParameters

public void setParameters(PDSObject pdsObject,
                          String confPath)
Specified by:
setParameters in interface PDSContext

setMappings

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


Copyright © 2010–2014 Planetary Data System. All rights reserved.