|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tiles.BasicAttributeContext
org.apache.tiles.Definition
public class Definition
A definition, i.e. a template with (completely or not) filled attributes.
Attributes of a template can be defined with the help of this class.
It can be used as a data transfer object used for registering new
definitions with the Container.
Field Summary | |
---|---|
protected String |
inherit
Extends attribute value. |
protected String |
name
Definition name. |
Fields inherited from class org.apache.tiles.BasicAttributeContext |
---|
attributes, cascadedAttributes, preparer, templateAttribute |
Constructor Summary | |
---|---|
Definition()
Constructor. |
|
Definition(Definition definition)
Copy Constructor. |
|
Definition(String name,
Attribute templateAttribute,
Map<String,Attribute> attributes)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getExtends()
Get extends. |
String |
getName()
Access method for the name property. |
int |
hashCode()
|
boolean |
isExtending()
Get extends flag. |
void |
setExtends(String name)
Set extends. |
void |
setName(String aName)
Sets the value of the name property. |
String |
toString()
Returns a description of the attributes. |
Methods inherited from class org.apache.tiles.BasicAttributeContext |
---|
addAll, addMissing, clear, getAttribute, getCascadedAttribute, getCascadedAttributeNames, getLocalAttribute, getLocalAttributeNames, getPreparer, getTemplateAttribute, inherit, inherit, inheritCascadedAttributes, putAttribute, putAttribute, setPreparer, setTemplateAttribute |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String inherit
protected String name
Constructor Detail |
---|
public Definition()
public Definition(Definition definition)
definition
- The definition to copy.public Definition(String name, Attribute templateAttribute, Map<String,Attribute> attributes)
name
- The name of the definition.templateAttribute
- The template attribute of the definition.attributes
- The attribute map of the definition.Method Detail |
---|
public String getName()
public void setName(String aName)
aName
- the new value of the name propertypublic void setExtends(String name)
name
- Name of the extended definition.public String getExtends()
public boolean equals(Object obj)
equals
in class BasicAttributeContext
public int hashCode()
hashCode
in class BasicAttributeContext
public boolean isExtending()
true
if this definition extends another.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |