Package ball.xml
Interface XMLServices
-
- All Known Subinterfaces:
HTMLTemplates
public interface XMLServices
Common XML services.- Author:
- Allen D. Ball
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Stream<Node>
asStream(NodeList list)
default FluentNode
attr(String name)
default FluentNode
attr(String name, String value)
default FluentNode
cdata(String data)
default FluentNode
comment(String data)
FluentDocument
document()
default FluentNode
element(String name, Stream<Node> stream)
default FluentNode
element(String name, Node... nodes)
default FluentNode
fragment(Stream<Node> stream)
default FluentNode
fragment(Node... nodes)
default FluentNode
text(String content)
-
-
-
Method Detail
-
document
FluentDocument document()
-
fragment
default FluentNode fragment(Stream<Node> stream)
- Parameters:
stream
- TheStream
ofNode
s to append to the newly createdDocumentFragment
.- Returns:
- The newly created
DocumentFragment
.
-
fragment
default FluentNode fragment(Node... nodes)
- Parameters:
nodes
- TheNode
s to append to the newly createdDocumentFragment
.- Returns:
- The newly created
DocumentFragment
.
-
element
default FluentNode element(String name, Stream<Node> stream)
-
element
default FluentNode element(String name, Node... nodes)
-
attr
default FluentNode attr(String name)
-
attr
default FluentNode attr(String name, String value)
-
text
default FluentNode text(String content)
-
cdata
default FluentNode cdata(String data)
- Parameters:
data
- TheCDATASection
data.- Returns:
- The newly created
CDATASection
.
-
comment
default FluentNode comment(String data)
-
-