Class TagBean
- java.lang.Object
-
- org.shredzone.commons.taglib.processor.TagBean
-
- All Implemented Interfaces:
Comparable<TagBean>
public class TagBean extends Object implements Comparable<TagBean>
This bean stores all information about a tag. Parts of this bean are immutable.- Author:
- Richard "Shred" Körber
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAttribute(AttributeBean attribute)
Adds a tag attribute to the tag bean.int
compareTo(TagBean o)
boolean
equals(Object obj)
Collection<AttributeBean>
getAttributes()
Gets all tag attributes.String
getBeanFactoryReference()
A reference to the bean factory.String
getBeanName()
Name of the bean.String
getBodycontent()
String
getClassName()
String
getInfo()
Information about the tag.String
getName()
String
getProxyClassName()
Name of the proxy class.String
getType()
int
hashCode()
boolean
isTryCatchFinally()
Does the tag class implement theTryCatchFinally
interface?void
setBeanFactoryReference(String beanFactoryReference)
void
setBeanName(String beanName)
void
setInfo(String info)
void
setProxyClassName(String proxyClassName)
void
setTryCatchFinally(boolean tryCatchFinally)
-
-
-
Method Detail
-
getClassName
@Nonnull public String getClassName()
-
getBodycontent
@Nonnull public String getBodycontent()
-
getProxyClassName
public String getProxyClassName()
Name of the proxy class.
-
setProxyClassName
public void setProxyClassName(String proxyClassName)
-
getBeanFactoryReference
public String getBeanFactoryReference()
A reference to the bean factory.
-
setBeanFactoryReference
public void setBeanFactoryReference(String beanFactoryReference)
-
getBeanName
public String getBeanName()
Name of the bean.
-
setBeanName
public void setBeanName(String beanName)
-
isTryCatchFinally
public boolean isTryCatchFinally()
Does the tag class implement theTryCatchFinally
interface?
-
setTryCatchFinally
public void setTryCatchFinally(boolean tryCatchFinally)
-
addAttribute
public void addAttribute(@Nonnull AttributeBean attribute)
Adds a tag attribute to the tag bean.- Parameters:
attribute
-AttributeBean
of the tag attribute
-
getAttributes
@Nonnull public Collection<AttributeBean> getAttributes()
Gets all tag attributes.- Returns:
- Collection of
AttributeBean
of all tag attributes
-
equals
public boolean equals(Object obj)
Two
TagBean
are considered equal when their names are equal.
-
compareTo
public int compareTo(TagBean o)
- Specified by:
compareTo
in interfaceComparable<TagBean>
-
-