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