Class XPathQueryManager.CustomQueryContext
This class represents a custom context for XPath queries. It is derived from XsltContext.
Inherited Members
Namespace: Mapsui.Providers.Wfs.Xml
Assembly: Mapsui.Nts.dll
Syntax
public class XPathQueryManager.CustomQueryContext : XsltContext, IEnumerable, IXmlNamespaceResolver
Constructors
| Edit this page View SourceCustomQueryContext()
Initializes a new instance of the XPathQueryManager.CustomQueryContext class.
Declaration
public CustomQueryContext()
CustomQueryContext(NameTable)
Initializes a new instance of the XPathQueryManager.CustomQueryContext class.
Declaration
public CustomQueryContext(NameTable table)
Parameters
Type | Name | Description |
---|---|---|
NameTable | table | A NameTable instance |
Properties
| Edit this page View SourceWhitespace
Method from XsltContext.
Declaration
public override bool Whitespace { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
Methods
| Edit this page View SourceAddNamespace(IDictionary<string, string>)
This method adds a list of namespaces to use in the custom context.
Declaration
public void AddNamespace(IDictionary<string, string> namespaces)
Parameters
Type | Name | Description |
---|---|---|
IDictionary<string, string> | namespaces | A list of namespaces |
AddParam(DictionaryEntry[])
This method adds a list of parameters to the custom context.
Declaration
public void AddParam(DictionaryEntry[] parameters)
Parameters
Type | Name | Description |
---|---|---|
DictionaryEntry[] | parameters | A list of parameters |
AddParam(string, object)
This method adds a parameter to the custom context.
Declaration
public void AddParam(string name, object parameter)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the parameter |
object | parameter | The value of the parameter |
CompareDocument(string, string)
Method from XsltContext.
Declaration
public override int CompareDocument(string baseUri, string nextbaseUri)
Parameters
Type | Name | Description |
---|---|---|
string | baseUri | |
string | nextbaseUri |
Returns
Type | Description |
---|---|
int |
Overrides
| Edit this page View SourceGetParam(string)
This method gets a parameter by name.
Declaration
public object? GetParam(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the parameter |
Returns
Type | Description |
---|---|
object |
PreserveWhitespace(XPathNavigator)
Method from XsltContext.
Declaration
public override bool PreserveWhitespace(XPathNavigator node)
Parameters
Type | Name | Description |
---|---|---|
XPathNavigator | node |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceRemoveParam(string)
This method removes a parameter from the inherent parameter list.
Declaration
public object? RemoveParam(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the parameter |
Returns
Type | Description |
---|---|
object |
ResetParams()
This methods clears the inherent parameter list.
Declaration
public void ResetParams()
ResolveFunction(string, string, XPathResultType[])
This method resolves a function appearing in an XPath expression.
Declaration
public override IXsltContextFunction ResolveFunction(string prefix, string name, XPathResultType[] argTypes)
Parameters
Type | Name | Description |
---|---|---|
string | prefix | The prefix of the function |
string | name | The name of the function |
XPathResultType[] | argTypes | A list of argument types of the function |
Returns
Type | Description |
---|---|
IXsltContextFunction |
Overrides
| Edit this page View SourceResolveVariable(string, string)
This method resolves a variable appearing in an XPath expression.
Declaration
public override IXsltContextVariable ResolveVariable(string prefix, string name)
Parameters
Type | Name | Description |
---|---|---|
string | prefix | The prefix of the variable |
string | name | The name of the variable |
Returns
Type | Description |
---|---|
IXsltContextVariable |