public class TemplateInfo extends Object
Modifier and Type | Field and Description |
---|---|
static String |
LAYOUT_TEMPLATE
Constants for tempStorage hash map.
|
static String |
NAVIGATION_TEMPLATE
Constants for tempStorage hash map.
|
static String |
SERVICE_NAME
Constants for tempStorage hash map.
|
Constructor and Description |
---|
TemplateInfo(RunData data)
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getLayoutTemplate()
Get the value of layout.
|
String |
getNavigationTemplate()
Get the value of navigationTemplate.
|
String |
getScreenTemplate()
Get the value of screen for the RunData parameters.
|
String |
getService()
Get the value of service.
|
String |
getString(String name)
Return a String from the temp hash map.
|
String[] |
getStringArray(String name)
Return a String[] from the temp hash map.
|
Object |
getTemp(String name)
Get an object from temporary storage.
|
Object |
getTemp(String name,
Object def)
Get an object from temporary storage, or a default value.
|
Object[] |
getTempKeys()
Returns all the available names in the temporary storage.
|
Object |
getTemplateContext(String name)
Get the value of Template context.
|
Object |
removeTemp(String name)
Remove an object from the temporary storage.
|
void |
setLayoutTemplate(String v)
Set the value of layout.
|
void |
setNavigationTemplate(String v)
Set the value of navigationTemplate.
|
void |
setScreenTemplate(String v)
Set the value of screen.
|
void |
setService(String v)
Set the value of service.
|
void |
setTemp(String name,
Object value)
Put an object into temporary storage.
|
void |
setTemplateContext(String name,
Object v)
Set the value of context.
|
public static final String NAVIGATION_TEMPLATE
public static final String LAYOUT_TEMPLATE
public static final String SERVICE_NAME
public TemplateInfo(RunData data)
data
- A Turbine RunData object.public String getNavigationTemplate()
public void setNavigationTemplate(String v)
v
- Value to assign to navigationTemplate.public String getScreenTemplate()
public void setScreenTemplate(String v)
v
- Value to assign to screen.public String getLayoutTemplate()
public void setLayoutTemplate(String v)
v
- Value to assign to layout.public Object getTemplateContext(String name)
name
- The name of the template context.public void setTemplateContext(String name, Object v)
name
- The name of the template context.v
- Value to assign to context.public String getService()
public void setService(String v)
v
- Value to assign to service.public Object getTemp(String name)
name
- A String with the name of the object.public Object getTemp(String name, Object def)
name
- A String with the name of the object.def
- An Object, the default value.public void setTemp(String name, Object value)
name
- A String with the name of the object.value
- An Object, the value.public String[] getStringArray(String name)
name
- A String with the name of the object.public String getString(String name)
name
- A String with the name of the object.public Object removeTemp(String name)
name
- A String with the name of the object.null
if the name was not a key.public Object[] getTempKeys()
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.