Package ball.xml
Interface FluentNode
-
- All Superinterfaces:
Node
- All Known Subinterfaces:
FluentDocument
public interface FluentNode extends Node
FluentNode
interface Note: This interface is an implementation detail ofFluentDocument.Builder
and should not be implemented or extended directly.- Author:
- Allen D. Ball
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
FluentNode.InvocationHandler
-
Field Summary
Fields Modifier and Type Field Description static Map<Short,Class<? extends Node>>
NODE_TYPE_MAP
-
Fields inherited from interface org.w3c.dom.Node
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
-
-
Method Summary
-
Methods inherited from interface org.w3c.dom.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
-
-
-
-
Field Detail
-
NODE_TYPE_MAP
static final Map<Short,Class<? extends Node>> NODE_TYPE_MAP
-
-
Method Detail
-
owner
default FluentDocument owner()
- Returns:
- The owner
FluentDocument
.
-
name
default String name()
SeeNode.getNodeName()
.- Returns:
Node.getNodeName()
-
value
default String value()
SeeNode.getNodeValue()
.- Returns:
Node.getNodeValue()
-
value
default FluentNode value(String value)
-
content
default String content()
- Returns:
Node.getTextContent()
-
content
default FluentNode content(String content)
-
add
default FluentNode add(Stream<Node> stream)
-
add
default FluentNode add(Node... nodes)
-
fragment
default FluentNode fragment(Stream<Node> stream)
Create anDocumentFragment
Node
.- Parameters:
stream
- TheStream
ofNode
s to append to the newly createdDocumentFragment
.- Returns:
- The newly created
DocumentFragment
.
-
fragment
default FluentNode fragment(Node... nodes)
Create anDocumentFragment
Node
.- 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)
-
elementNS
default FluentNode elementNS(String ns, String qn, Node... nodes)
-
attr
default FluentNode attr(String name)
-
attr
default FluentNode attr(String name, String value)
-
attrNS
default FluentNode attrNS(String ns, String qn)
-
attrNS
default FluentNode attrNS(String ns, String qn, String value)
-
text
default FluentNode text(String content)
-
cdata
default FluentNode cdata(String data)
Create aCDATASection
Node
.- Parameters:
data
- TheCDATASection
data.- Returns:
- The newly created
CDATASection
.
-
comment
default FluentNode comment(String data)
-
-