Package com.teamdev.jxbrowser.dom
Enum Class NodeType
- All Implemented Interfaces:
Serializable,Comparable<NodeType>,Constable
The values that can be used to distinguish different kind of nodes, such that HTML
element, text, attribute, from each other.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn attribute of the HTML element.A[CDATA]section.A content between the<!--and-->statements.A segment of the document structure.A document node.A document type node.Represents an element node such as<p>or<div>.A `ProcessingInstructionof an XML document such as<?xml-stylesheet ... ?>declaration.The actual text of the HTML element or the attribute. -
Method Summary
Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
ELEMENT_NODE
Represents an element node such as<p>or<div>. -
ATTRIBUTE_NODE
An attribute of the HTML element. -
TEXT_NODE
The actual text of the HTML element or the attribute. -
C_DATA_SECTION_NODE
A[CDATA]section. -
PROCESSING_INSTRUCTIONS_NODE
A `ProcessingInstructionof an XML document such as<?xml-stylesheet ... ?>declaration. -
COMMENT_NODE
A content between the<!--and-->statements. -
DOCUMENT_NODE
A document node. -
DOCUMENT_TYPE_NODE
A document type node. For example,<!DOCTYPE html>for HTML5 documents. -
DOCUMENT_FRAGMENT_NODE
A segment of the document structure.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-