public class Tag
extends java.lang.Object
implements java.io.Serializable
Tag represents an tag for xml or html where you can set the position of the
child tags| Constructor and Description |
|---|
Tag() |
| 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(Tag child,
java.lang.Integer position)
Adds the given
Tag child to the given position. |
java.lang.Object |
clone() |
java.util.List<ChildTagPosition> |
getChildren()
Gets the children.
|
java.lang.String |
removeAttribute(java.lang.String name)
Removes the attribute with the given name.
|
boolean |
removeChild(Tag child)
Removes the given
Tag child |
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(Tag child, java.lang.Integer position)
Tag child to the given position.public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic java.util.List<ChildTagPosition> getChildren()
public java.lang.String removeAttribute(java.lang.String name)
name - the namepublic java.lang.String toXmlString()
Tag object an xml string.