Class XPathQueryManager.CustomQueryContext
This class represents a custom context for XPath queries. It is derived from XsltContext.
Inheritance
Namespace: Mapsui.Providers.Wfs.Xml
Assembly: Mapsui.Desktop.dll
Syntax
public class CustomQueryContext : XsltContext
Constructors
| Improve this Doc 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
| Improve this Doc View SourceWhitespace
Method from XsltContext.
Declaration
public override bool Whitespace { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc 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<System.String, System.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 |
---|---|---|
System.String | name | The name of the parameter |
System.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 |
---|---|---|
System.String | baseUri | |
System.String | nextbaseUri |
Returns
Type | Description |
---|---|
System.Int32 |
GetParam(String)
This method gets a parameter by name.
Declaration
public object GetParam(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the parameter |
Returns
Type | Description |
---|---|
System.Object |
PreserveWhitespace(XPathNavigator)
Method from XsltContext.
Declaration
public override bool PreserveWhitespace(XPathNavigator node)
Parameters
Type | Name | Description |
---|---|---|
XPathNavigator | node |
Returns
Type | Description |
---|---|
System.Boolean |
RemoveParam(String)
This method removes a parameter from the inherent parameter list.
Declaration
public object RemoveParam(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the parameter |
Returns
Type | Description |
---|---|
System.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 |
---|---|---|
System.String | prefix | The prefix of the function |
System.String | name | The name of the function |
XPathResultType[] | argTypes | A list of argument types of the function |
Returns
Type | Description |
---|---|
IXsltContextFunction |
ResolveVariable(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 |
---|---|---|
System.String | prefix | The prefix of the variable |
System.String | name | The name of the variable |
Returns
Type | Description |
---|---|
IXsltContextVariable |