Saxon.Api

 

 

Saxon.Api

Class XdmAnyFunctionType


public class XdmAnyFunctionType
extends XdmItemType

Singleton class representing the item type function(*), which matches any function item.

Field Summary

static XdmAnyFunctionType Instance

The singleton instance of this class: an XdmItemType corresponding to the item type function(*), which matches any function item.

 

Method Summary

 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, A.subsumes(B) is true if every value that matches the ItemType B also matches the ItemType A.

 

Field Detail

Instance

public static readonly XdmAnyFunctionType Instance

The singleton instance of this class: an XdmItemType corresponding to the item type function(*), which matches any function item.

Method Detail

Matches

public override bool Matches(XdmItem item)

Determine whether this item type matches a given item.

Parameters:

item - the item to be tested against this item type

Returns:

true if the item is a function, otherwise false.

Subsumes

public override bool Subsumes(XdmItemType other)

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 ItemType

Returns:

true if this ItemType subsumes the other ItemType. This includes the case where A and B represent the same ItemType.