public enum DOMNodePosition extends java.lang.Enum<DOMNodePosition>
DOMNode against another
DOMNode in the same or different documents.
| Enum Constant and Description |
|---|
ATTRIBUTE_FOLLOWING
Attribute follows the other attribute.
|
ATTRIBUTE_PRECEDING
Attribute precedes the other attribute.
|
CONTAINED_BY_AND_FOLLOWING
Node is contained by the other node and follows it in a DOM tree.
|
CONTAINS_AND_PRECEDING
Node contains the other node and precedes it in a DOM tree.
|
DISCONNECTED
Nodes have different roots (aka documents).
|
FOLLOWING
Node is following the other node in a DOM tree.
|
ITSELF
Node gets compared to itself.
|
PRECEDING
Node is preceeding the other node in a DOM tree.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBitmask() |
static DOMNodePosition |
getValue(int bitmask) |
static DOMNodePosition |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
返回具有指定名称的此类型的枚举常量。 |
static DOMNodePosition[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
以声明顺序返回包含此枚举类型的常量的数组。 |
public static final DOMNodePosition ITSELF
public static final DOMNodePosition DISCONNECTED
public static final DOMNodePosition PRECEDING
public static final DOMNodePosition FOLLOWING
public static final DOMNodePosition CONTAINS_AND_PRECEDING
public static final DOMNodePosition CONTAINED_BY_AND_FOLLOWING
public static final DOMNodePosition ATTRIBUTE_PRECEDING
public static final DOMNodePosition ATTRIBUTE_FOLLOWING
public static DOMNodePosition[] values()
for (DOMNodePosition c : DOMNodePosition.values()) System.out.println(c);
public static DOMNodePosition valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
-要返回的枚举常量的名称。
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null
public int getBitmask()
public static DOMNodePosition getValue(int bitmask)