public enum XdmNodeKind extends java.lang.Enum<XdmNodeKind>
Enum Constant and Description |
---|
ATTRIBUTE |
COMMENT |
DOCUMENT |
ELEMENT |
NAMESPACE |
PROCESSING_INSTRUCTION |
TEXT |
Modifier and Type | Method and Description |
---|---|
static XdmNodeKind |
forType(int type)
Get the node kind corresponding to one of the integer constants in class
Type , for example Type.ELEMENT . |
protected int |
getNumber() |
static XdmNodeKind |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static XdmNodeKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final XdmNodeKind DOCUMENT
public static final XdmNodeKind ELEMENT
public static final XdmNodeKind ATTRIBUTE
public static final XdmNodeKind TEXT
public static final XdmNodeKind COMMENT
public static final XdmNodeKind PROCESSING_INSTRUCTION
public static final XdmNodeKind NAMESPACE
public static XdmNodeKind[] values()
for (XdmNodeKind c : XdmNodeKind.values()) System.out.println(c);
public static XdmNodeKind 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 namejava.lang.NullPointerException
- if the argument is nullprotected int getNumber()
public static XdmNodeKind forType(int type)
Type
, for example Type.ELEMENT
. These integer
constants are chosen to be consistent with those used in DOM, though the semantics
of the different node kinds are slightly different.type
- the integer type code, for example Type.ELEMENT
or Type.TEXT
XdmNodeKind
;Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.