public class Tag extends Object implements 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 |
|---|---|
String |
addAttribute(String name,
String value)
Adds the attribute with the given name and value.
|
boolean |
addChild(Tag child,
Integer position)
Adds the given
Tag child to the given position. |
Object |
clone() |
List<ChildTagPosition> |
getChildren()
Gets the children.
|
String |
removeAttribute(String name)
Removes the attribute with the given name.
|
boolean |
removeChild(Tag child)
Removes the given
Tag child |
String |
toXmlString()
Creates from this
Tag object an xml string. |
public String addAttribute(String name, String value)
name - the namevalue - the valuepublic boolean addChild(Tag child, Integer position)
Tag child to the given position.public Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic List<ChildTagPosition> getChildren()
public String removeAttribute(String name)
name - the nameCopyright © 2015–2019 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.