Package org.apache.tiles.autotag.model
Class TemplateMethod
java.lang.Object
org.apache.tiles.autotag.model.TemplateMethod
It represents a parsed method in a parsed template class.
-
Constructor Summary
ConstructorsConstructorDescriptionTemplateMethod
(String name, Iterable<? extends TemplateParameter> parameters) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the documentation for this method.getName()
Returns the name of the method.getParameterByName
(String name) Returns a parameter given its name.Returns the parameters of this method.boolean
hasBody()
Indicates that this method needs a tag body.void
setDocumentation
(String documentation) Sets the documentation for this method.toString()
-
Constructor Details
-
TemplateMethod
Constructor.- Parameters:
name
- The name of the method.parameters
- The map of parameters.
-
-
Method Details
-
getName
Returns the name of the method.- Returns:
- The name of the method.
-
getDocumentation
Returns the documentation for this method.- Returns:
- The documentation.
-
setDocumentation
Sets the documentation for this method.- Parameters:
documentation
- The documentation.
-
getParameters
Returns the parameters of this method.- Returns:
- The parameters.
-
getParameterByName
Returns a parameter given its name.- Parameters:
name
- The name of the parameter.- Returns:
- The parameter.
-
hasBody
public boolean hasBody()Indicates that this method needs a tag body.- Returns:
true
if tag body is needed.
-
toString
-