public class SimpleTag
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
SimpleTag() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
addAttribute(java.lang.String name,
java.lang.String value)
Adds the attribute with the given name and value.
|
boolean |
addChild(SimpleTag child)
Adds the given child.
|
java.lang.Object |
clone() |
java.lang.String |
removeAttribute(java.lang.String name)
Removes the attribute with the given name.
|
boolean |
removeChild(SimpleTag child)
Removes the given child if exists.
|
java.lang.StringBuilder |
toVelocityTemplate()
Creates from this Tag object an velocity template as String object.
|
java.lang.String |
toXmlString()
Creates from this Tag object an xml string.
|
public java.lang.String addAttribute(java.lang.String name,
java.lang.String value)
name - the namevalue - the valuepublic boolean addChild(SimpleTag child)
child - the childpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic java.lang.String removeAttribute(java.lang.String name)
name - the namepublic boolean removeChild(SimpleTag child)
child - the childpublic java.lang.StringBuilder toVelocityTemplate()
public java.lang.String toXmlString()