|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tiles.mgmt.TileDefinition
public class TileDefinition
Data transfer object used for registering new definitions with the Container.
Field Summary | |
---|---|
protected java.util.Map<java.lang.String,Attribute> |
attributes
Attributes defined for the definition. |
protected java.lang.String |
inherit
Extends attribute value. |
protected java.lang.String |
name
TileDefinition name |
protected java.lang.String |
preparer
Associated ViewPreparer URL or classname, if defined |
protected java.lang.String |
role
Role associated to definition. |
protected java.lang.String |
template
Template path. |
Constructor Summary | |
---|---|
TileDefinition()
Constructor. |
Method Summary | |
---|---|
void |
addAttribute(Attribute attribute)
Add an attribute to this definition. |
java.lang.Object |
getAttribute(java.lang.String key)
Returns the value of the named attribute as an Object, or null if no attribute of the given name exists. |
java.util.Map<java.lang.String,Attribute> |
getAttributes()
Access method for the attributes property. |
java.lang.String |
getExtends()
Get extends. |
java.lang.String |
getName()
Access method for the name property. |
java.lang.String |
getPreparer()
Get associated preparerInstance |
java.lang.String |
getRole()
Access method for the role property. |
java.lang.String |
getTemplate()
Access method for the template property. |
void |
putAttribute(java.lang.String key,
Attribute value)
Put a new attribute in this definition. |
void |
setExtends(java.lang.String name)
Set extends. |
void |
setName(java.lang.String aName)
Sets the value of the name property. |
void |
setPreparer(java.lang.String url)
Set associated preparerInstance URL. |
void |
setRole(java.lang.String role)
Sets the value of the role property. |
void |
setTemplate(java.lang.String template)
Sets the value of the template property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String inherit
protected java.lang.String name
protected java.lang.String template
protected java.util.Map<java.lang.String,Attribute> attributes
protected java.lang.String role
protected java.lang.String preparer
Constructor Detail |
---|
public TileDefinition()
Method Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String aName)
aName
- the new value of the name propertypublic java.lang.String getTemplate()
public void setTemplate(java.lang.String template)
template
- the new value of the path propertypublic java.lang.String getRole()
public void setRole(java.lang.String role)
role
- the new value of the path propertypublic java.util.Map<java.lang.String,Attribute> getAttributes()
public java.lang.Object getAttribute(java.lang.String key)
key
- name of the attribute
public void putAttribute(java.lang.String key, Attribute value)
key
- String key for attributevalue
- Attibute value.public void addAttribute(Attribute attribute)
attribute
- Attribute to add.public java.lang.String getPreparer()
public void setPreparer(java.lang.String url)
url
- Url called locallypublic void setExtends(java.lang.String name)
name
- Name of the extended definition.public java.lang.String getExtends()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |