public class HtmlNode extends NodeImpl<HtmlNode,HtmlNodeType>
Modifier and Type | Field and Description |
---|---|
static HashSet<String> |
singleNodeNames |
Constructor and Description |
---|
HtmlNode(HtmlNodeType nodeType)
构造方法
|
HtmlNode(HtmlNodeType nodeType,
String nodeName)
构造方法
|
HtmlNode(String nodeName)
构造方法
|
HtmlNode(String nodeName,
HtmlNodeType nodeType)
构造方法
|
Modifier and Type | Method and Description |
---|---|
HtmlNode |
addContent(String content)
添加内容节点
|
protected String |
decode(String string) |
protected String |
encode(String string) |
String |
getPureText()
返回纯文本内容
|
HtmlNode |
getRoot()
获取根结点
|
boolean |
isCaseSensitive()
是否大小写敏感
|
boolean |
isSingleNode()
检测是否为非对称结点 若为对称结点返回false 若为非对称结点返回true
|
addAll, addNode, foreach, getAttribute, getAttribute, getAttributeList, getAttributes, getBody, getCaseSensitiveName, getContent, getFooter, getHeader, getNodeName, getNodeType, getParent, getSingleAttribute, getSubNode, getSubNodeRecursively, getSubNodes, getSubNodes, getSubNodesByPath, getSubNodesRecursively, removeAttribute, removeNode, removeNode, removeSubNotes, setAttribute, setAttribute, setContent, setNodeName, setParent, setSingleAttribute, toString, toStringBuffer, write, write
public HtmlNode(HtmlNodeType nodeType)
nodeType
- public HtmlNode(String nodeName)
nodeName
- public HtmlNode(HtmlNodeType nodeType, String nodeName)
nodeType
- nodeName
- public HtmlNode(String nodeName, HtmlNodeType nodeType)
nodeName
- nodeType
- public boolean isSingleNode()
NodeImpl
isSingleNode
in interface Node<HtmlNode>
isSingleNode
in class NodeImpl<HtmlNode,HtmlNodeType>
public HtmlNode addContent(String content)
Node
protected String encode(String string)
encode
in class NodeImpl<HtmlNode,HtmlNodeType>
protected String decode(String string)
decode
in class NodeImpl<HtmlNode,HtmlNodeType>
public boolean isCaseSensitive()
Node
Copyright © 2006–2018 TinyGroup. All rights reserved.