public class AutoGeneratedElements extends Object implements PDSObjectContext
| Modifier and Type | Field and 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 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 and Description |
|---|
AutoGeneratedElements() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMapping(String key,
Class<?> value) |
String |
get(String value) |
String |
getContext() |
String |
getUnits(String key) |
void |
setMappings() |
void |
setParameters(PDSObject pdsObject) |
public static final String CONTEXT
public static final String XML_FILENAME
public static final String XML_KEY
public static final String XML_VALUE
public String get(String value) throws TemplateException
get in interface PDSObjectContextTemplateExceptionpublic String getContext()
getContext in interface PDSContextpublic String getUnits(String key)
getUnits in interface PDSObjectContextpublic void setParameters(PDSObject pdsObject)
setParameters in interface PDSObjectContextpublic void setMappings()
throws Exception
setMappings in interface PDSObjectContextExceptionCopyright © 2020. All rights reserved.