|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.turbine.util.template.TemplateInfo
public class TemplateInfo
This is a wrapper for Template specific information. It's part of the RunData object and can extract the information it needs to do the job directly from the data.getParameters().
Field Summary | |
---|---|
static String |
LAYOUT_TEMPLATE
|
static String |
NAVIGATION_TEMPLATE
|
static String |
SERVICE_NAME
|
Constructor Summary | |
---|---|
TemplateInfo(RunData data)
Constructor |
Method Summary | |
---|---|
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()
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String NAVIGATION_TEMPLATE
public static final String LAYOUT_TEMPLATE
public static final String SERVICE_NAME
Constructor Detail |
---|
public TemplateInfo(RunData data)
RunData
- A Turbine Rundata object.Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |