Constructor and Description |
---|
ElementWriter() |
Modifier and Type | Method and Description |
---|---|
XmlWriter.ElementWriter |
attribute(String name,
String value) |
XmlWriter.ElementWriter |
attributeIf(boolean condition,
String name,
String value) |
XmlWriter.ElementWriter |
attributeIf(String name,
Optional<String> value) |
XmlWriter.ElementWriter |
attributes(Map<String,String> attributes) |
XmlWriter.ElementWriter |
content(Runnable contentWriter) |
XmlWriter.ElementWriter |
content(String content) |
XmlWriter.ElementWriter |
contentIf(boolean condition,
Runnable contentWriter) |
XmlWriter.ElementWriter |
tag(String tag) |
void |
write() |
public XmlWriter.ElementWriter tag(String tag)
public XmlWriter.ElementWriter attributes(Map<String,String> attributes)
public XmlWriter.ElementWriter attribute(String name, String value)
public XmlWriter.ElementWriter attributeIf(boolean condition, String name, String value)
public XmlWriter.ElementWriter attributeIf(String name, Optional<String> value)
public XmlWriter.ElementWriter content(String content)
public XmlWriter.ElementWriter content(Runnable contentWriter)
public XmlWriter.ElementWriter contentIf(boolean condition, Runnable contentWriter)
public void write()
Copyright © 2024 The Cornutum Project. All rights reserved.