public enum XmlNodeType extends Enum<XmlNodeType> implements NodeType
Enum Constant and Description |
---|
CDATA |
COMMENT |
DOCTYPE |
ELEMENT |
PROCESSING_INSTRUCTION |
TEXT |
XML_DECLARATION |
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 XmlNodeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static XmlNodeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final XmlNodeType DOCTYPE
public static final XmlNodeType CDATA
public static final XmlNodeType XML_DECLARATION
public static final XmlNodeType PROCESSING_INSTRUCTION
public static final XmlNodeType COMMENT
public static final XmlNodeType ELEMENT
public static final XmlNodeType TEXT
public static XmlNodeType[] values()
for (XmlNodeType c : XmlNodeType.values()) System.out.println(c);
public static XmlNodeType 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.