Saxon.Api
Class XdmNodeKind
-
public class XdmNodeKind
- extends XdmItemType
Instances of XdmNodeKind
represent the item types denoted in XPath as document-node()
,
element()
, attribute()
, text()
, and so on. These are all represented by singular named instances.
Field Summary |
|
---|---|
static XdmNodeKind | Attribute
The item type |
static XdmNodeKind | Comment
The item type |
static XdmNodeKind | Document
The item type |
static XdmNodeKind | Element
The item type |
static XdmNodeKind | Namespace
The item type |
static XdmNodeKind | ProcessingInstruction
The item type |
static XdmNodeKind | Text
The item type |
Method Summary |
|
---|---|
static XdmNodeKind | ForNode (XdmNode node) Get the item type representing the node kind of a supplied node |
static XdmNodeKind | ForNodeType (XmlNodeType type)
Get the item type corresponding to an |
bool | Matches (XdmItem item) Determine whether this item type matches a given item. |
bool | Subsumes (XdmItemType other)
Determine whether this ItemType subsumes another ItemType. Specifically,
|
Field Detail
ProcessingInstruction
The item type processing-instruction()
Method Detail
ForNode
ForNodeType
Get the item type corresponding to an XmlNodeType
as defined in the System.Xml
package
Parameters:
type
- The XmlNodeType
to be convertedReturns:
XdmNodeKind
Matches
Determine whether this item type matches a given item.
Parameters:
item
- item the item to be tested against this item typeReturns:
Subsumes
Determine whether this ItemType subsumes another ItemType. Specifically,
A.subsumes(B)
is true if every value that matches the ItemType B also matches
the ItemType A.
Parameters:
other
- the other ItemTypeReturns:
Get the item type representing the node kind of a supplied node
Parameters:
node
- The node whose node kind is requiredReturns: