Package org.apache.tiles.autotag.model
Class TemplateClass
java.lang.Object
org.apache.tiles.autotag.model.TemplateClass
It represents a parsed template class.
-
Constructor Summary
ConstructorsConstructorDescriptionTemplateClass
(String name) Constructor.TemplateClass
(String name, String tagName, String tagClassPrefix, TemplateMethod executeMethod) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the documentation for this class.Returns the method that execute this class.getName()
The name of the parsed class.Returns the collection of regular parameters (no request, no body) of the execute method.Returns the name of the class, without the package part.Returns the tag class prefix.Returns the tag name.boolean
hasBody()
Indicates that this class needs a tag body.void
setDocumentation
(String documentation) Sets the documentation for this class.toString()
-
Constructor Details
-
TemplateClass
Constructor.- Parameters:
name
- The name of the template class.
-
TemplateClass
public TemplateClass(String name, String tagName, String tagClassPrefix, TemplateMethod executeMethod) Constructor.- Parameters:
name
- The name of the template class.tagName
- The name of the tag.tagClassPrefix
- The tag class prefix.executeMethod
- The method that executes the template class.
-
-
Method Details
-
getName
The name of the parsed class.- Returns:
- The name of the class.
-
getSimpleName
Returns the name of the class, without the package part.- Returns:
- The simple class name.
-
getTagName
Returns the tag name.- Returns:
- The tag name.
-
getTagClassPrefix
Returns the tag class prefix.- Returns:
- The tag class prefix.
-
getDocumentation
Returns the documentation for this class.- Returns:
- The documentation.
-
setDocumentation
Sets the documentation for this class.- Parameters:
documentation
- The documentation.
-
getExecuteMethod
Returns the method that execute this class.- Returns:
- The execute method.
-
getParameters
Returns the collection of regular parameters (no request, no body) of the execute method.- Returns:
- The regular parameters.
-
hasBody
public boolean hasBody()Indicates that this class needs a tag body.- Returns:
true
if tag body is needed.
-
toString
-