public interface FluentNode extends Node
Node
interface Note: This interface is an implementation
detail of FluentDocument.Builder
and should not be implemented or
extended directly.Modifier and Type | Interface and Description |
---|---|
static class |
FluentNode.InvocationHandler
|
Modifier and Type | Field and Description |
---|---|
static Map<Short,Class<? extends Node>> |
NODE_TYPE_MAP
|
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
static final Map<Short,Class<? extends Node>> NODE_TYPE_MAP
default FluentDocument owner()
FluentDocument
.default String name()
Node.getNodeName()
.Node.getNodeName()
default String value()
Node.getNodeValue()
.Node.getNodeValue()
default FluentNode value(String value)
default String content()
Node.getTextContent()
default FluentNode content(String content)
default FluentNode add(Stream<Node> stream)
default FluentNode add(Node... nodes)
default FluentNode fragment(Stream<Node> stream)
DocumentFragment
Node
.stream
- The Stream
of Node
s to
append to the newly created
DocumentFragment
.DocumentFragment
.default FluentNode fragment(Node... nodes)
DocumentFragment
Node
.nodes
- The Node
s to append to the newly
created DocumentFragment
.DocumentFragment
.default FluentNode element(String name, Stream<Node> stream)
default FluentNode element(String name, Node... nodes)
default FluentNode elementNS(String ns, String qn, Node... nodes)
default FluentNode attr(String name)
default FluentNode attr(String name, String value)
default FluentNode attrNS(String ns, String qn)
default FluentNode attrNS(String ns, String qn, String value)
default FluentNode text(String content)
default FluentNode cdata(String data)
CDATASection
Node
.data
- The CDATASection
data.CDATASection
.default FluentNode comment(String data)
Copyright © 2015–2020 Allen D. Ball. All rights reserved.