Saxon.Api

 

 

Saxon.Api

Class XsltExecutable.ParameterDetails

Enclosing class
XsltExecutable

public class XsltExecutable.ParameterDetails

Information about a global parameter to a stylesheet.

Constructor Summary

ParameterDetails (XdmSequenceType type, bool isRequired)

Create parameter details.

 

Property Summary

 bool IsRequired

Ask whether the parameter is required (mandatory) or optional

 

Method Summary

 char GetDeclaredCardinality()

Gets the declared cardinality of the parameter.

 XdmItemType GetDeclaredItemType()

Gets the declared item type of the parameter.

 XdmSequenceType GetUnderlyingDeclaredType()

Gets the underlying declared type of the parameter.

 

Constructor Detail

ParameterDetails

public ParameterDetails(XdmSequenceType type,
                        bool isRequired)

Create parameter details.

Parameters:

type - The declared type of the parameter.
isRequired - Indicates whether the parameter is required or optional.

Property Detail

IsRequired

public bool IsRequired {get; set; }

Ask whether the parameter is required (mandatory) or optional

Returns:

true if the parameter is mandatory (required="yes"), false if it is optional.

Method Detail

GetDeclaredCardinality

public char GetDeclaredCardinality()

Gets the declared cardinality of the parameter.

Returns:

The occurrence indicator from the type appearing in the as attribute of the xsl:param element

GetDeclaredItemType

public XdmItemType GetDeclaredItemType()

Gets the declared item type of the parameter.

Returns:

The type defined in the as attribute of the xsl:param element, without its occurrence indicator

GetUnderlyingDeclaredType

public XdmSequenceType GetUnderlyingDeclaredType()

Gets the underlying declared type of the parameter.

Returns:

The underlying declared type.