public class SimpleTag extends Object implements Serializable
| Constructor and Description |
|---|
SimpleTag() |
| Modifier and Type | Method and Description |
|---|---|
String |
addAttribute(String name,
String value)
Adds the attribute with the given name and value.
|
boolean |
addChild(SimpleTag child)
Adds the given child.
|
Object |
clone() |
String |
removeAttribute(String name)
Removes the attribute with the given name.
|
boolean |
removeChild(SimpleTag child)
Removes the given child if exists.
|
StringBuilder |
toVelocityTemplate()
Creates from this Tag object an velocity template as String object.
|
String |
toXmlString()
Creates from this Tag object an xml string.
|
public String addAttribute(String name, String value)
name - the namevalue - the valuepublic boolean addChild(SimpleTag child)
child - the childpublic Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic String removeAttribute(String name)
name - the namepublic boolean removeChild(SimpleTag child)
child - the childpublic StringBuilder toVelocityTemplate()
public String toXmlString()
Copyright © 2015–2019 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.