public class ElementBuilder extends Object
Modifier and Type | Method and Description |
---|---|
ElementBuilder |
addChild(Element element) |
ElementBuilder |
child(String name) |
static ElementBuilder |
create(String name) |
static ElementBuilder |
create(String name,
String xmlns) |
Element |
getElement() |
ElementBuilder |
setAttribute(String key,
String value) |
ElementBuilder |
setAttributes(Map<String,String> attrs) |
ElementBuilder |
setValue(String value) |
ElementBuilder |
setXMLNS(String xmlns) |
ElementBuilder |
up() |
public static final ElementBuilder create(String name) throws XMLException
XMLException
public static final ElementBuilder create(String name, String xmlns) throws XMLException
XMLException
public ElementBuilder child(String name) throws XMLException
XMLException
public ElementBuilder addChild(Element element) throws XMLException
XMLException
public Element getElement()
public ElementBuilder setAttribute(String key, String value) throws XMLException
XMLException
public ElementBuilder setAttributes(Map<String,String> attrs) throws XMLException
XMLException
public ElementBuilder setValue(String value) throws XMLException
XMLException
public ElementBuilder setXMLNS(String xmlns) throws XMLException
XMLException
public ElementBuilder up() throws XMLException
XMLException
Copyright © 2006–2023 Tigase. All rights reserved.