|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<XmlNodeType>
org.tinygroup.xmlparser.XmlNodeType
public enum XmlNodeType
| Enum Constant Summary | |
|---|---|
CDATA
|
|
COMMENT
|
|
DOCTYPE
|
|
ELEMENT
|
|
PROCESSING_INSTRUCTION
|
|
TEXT
|
|
XML_DECLARATION
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
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
| Method Detail |
|---|
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 name
NullPointerException - if the argument is nullpublic boolean isHasHeader()
isHasHeader in interface NodeTypepublic boolean isHasBody()
isHasBody in interface NodeTypepublic boolean isHasContent()
isHasContent in interface NodeTypepublic NodeSign getHead()
getHead in interface NodeTypepublic NodeSign getTail()
getTail in interface NodeType
public void getHeader(StringBuffer sb,
String str)
getHeader in interface NodeTypestr -
public void getTail(StringBuffer sb,
String str)
getTail in interface NodeTypestr - public boolean isText()
isText in interface NodeType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||