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 |
|
---|---|
bool | Equals (object other) Ask whether this node kind is the same as another |
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 |
int | GetHashCode () Get a hash code |
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
Get the item type representing the node kind of a supplied node
Parameters:
node
- The node whose node kind is requiredReturns:
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:
Ask whether this node kind is the same as another
Parameters:
other
- The other objectReturns: