org.apache.velocity.tools.plugin.taglib.model
Class Tag

java.lang.Object
  extended by org.apache.velocity.tools.plugin.taglib.model.Tag

@ObjectCreate(pattern="taglib/tag")
public class Tag
extends Object

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

Tag

public Tag()
Method Detail

getName

public String getName()
Returns the name of the tag.

Returns:
The name of the tag.

setName

public void setName(String name)
Sets the name of the tag.

Parameters:
name - The name of the tag.

getDescription

public String getDescription()
Returns the description of the tag.

Returns:
The description of the tag.

setDescription

public void setDescription(String description)
Sets the description of the tag.

Parameters:
description - The description of the tag.

getTagClass

public String getTagClass()
Returns the class of the tag.

Returns:
The class of the tag.

setTagClass

public void setTagClass(String tagClass)
Sets the class of the tag.

Parameters:
tagClass - The class of the tag.

getBodyContent

public String getBodyContent()
Returns the body content of the tag.

Returns:
The body content of the tag.

setBodyContent

public void setBodyContent(String bodyContent)
Sets the body content of the tag.

Parameters:
bodyContent - The body content of the tag.

getAttributes

public List<Attribute> getAttributes()
Returns the contained attributes.

Returns:
The attributes.

addAttribute

@SetNext
public void addAttribute(Attribute attribute)
Adds an attribute to the supported attributes.

Parameters:
attribute - A new supported attribute.

isSimpleTag

public boolean isSimpleTag()
It tells if this tag implements SimpleTag.

Returns:
true if it is a SimpleTag.

hasBody

public boolean hasBody()
It tells if this tag has a body.

Returns:
true if this tag has a body.

getReflectedTagClass

public Class<?> getReflectedTagClass()
Returns the reflected tag class.

Returns:
The real tag class.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved.