public enum HtmlNodeType extends Enum<HtmlNodeType> implements NodeType
Enum Constant and Description |
---|
CDATA |
COMMENT |
DOCTYPE |
ELEMENT |
PROCESSING_INSTRUCTION |
TEXT |
Modifier and Type | Method and Description |
---|---|
NodeSign |
getHead()
获取头标签
|
void |
getHeader(StringBuffer sb,
String str)
获取头标签的标识 符 为输入参数添加头标签
|
NodeSign |
getTail()
获取结尾标签
|
void |
getTail(StringBuffer sb,
String str)
获取结尾标签的标识符 为输入参数添加结束标签
|
boolean |
isHasBody()
是否有子结点
|
boolean |
isHasContent()
是否有文本内容
|
boolean |
isHasHeader()
是否有头部
|
boolean |
isText() |
static HtmlNodeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HtmlNodeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HtmlNodeType DOCTYPE
public static final HtmlNodeType CDATA
public static final HtmlNodeType PROCESSING_INSTRUCTION
public static final HtmlNodeType COMMENT
public static final HtmlNodeType ELEMENT
public static final HtmlNodeType TEXT
public static HtmlNodeType[] values()
for (HtmlNodeType c : HtmlNodeType.values()) System.out.println(c);
public static HtmlNodeType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isHasHeader()
NodeType
isHasHeader
in interface NodeType
public boolean isHasBody()
NodeType
public boolean isHasContent()
NodeType
isHasContent
in interface NodeType
public NodeSign getHead()
public NodeSign getTail()
public void getHeader(StringBuffer sb, String str)
public void getTail(StringBuffer sb, String str)
Copyright © 2006–2018 TinyGroup. All rights reserved.