|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.velocity.tools.plugin.taglib.model.Tag
@ObjectCreate(pattern="taglib/tag") public class Tag
It represents a tag in a tag library descriptor.
| Constructor Summary | |
|---|---|
Tag()
|
|
| Method Summary | |
|---|---|
void |
addAttribute(Attribute attribute)
Adds an attribute to the supported attributes. |
List<Attribute> |
getAttributes()
Returns the contained attributes. |
String |
getBodyContent()
Returns the body content of the tag. |
String |
getDescription()
Returns the description of the tag. |
String |
getName()
Returns the name of the tag. |
Class<?> |
getReflectedTagClass()
Returns the reflected tag class. |
String |
getTagClass()
Returns the class of the tag. |
boolean |
hasBody()
It tells if this tag has a body. |
boolean |
isSimpleTag()
It tells if this tag implements SimpleTag. |
void |
setBodyContent(String bodyContent)
Sets the body content of the tag. |
void |
setDescription(String description)
Sets the description of the tag. |
void |
setName(String name)
Sets the name of the tag. |
void |
setTagClass(String tagClass)
Sets the class of the tag. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Tag()
| Method Detail |
|---|
public String getName()
public void setName(String name)
name - The name of the tag.public String getDescription()
public void setDescription(String description)
description - The description of the tag.public String getTagClass()
public void setTagClass(String tagClass)
tagClass - The class of the tag.public String getBodyContent()
public void setBodyContent(String bodyContent)
bodyContent - The body content of the tag.public List<Attribute> getAttributes()
@SetNext public void addAttribute(Attribute attribute)
attribute - A new supported attribute.public boolean isSimpleTag()
SimpleTag.
true if it is a SimpleTag.public boolean hasBody()
true if this tag has a body.public Class<?> getReflectedTagClass()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||