C# Class Mapsui.Providers.Wfs.Xml.XPathQueryManager

This class provides an easy-to-use interface for complex (parameterized) XPath queries.
Inheritance: IXPathQueryManager
Afficher le fichier Open project: pauldendulk/Mapsui Class Usage Examples

Méthodes publiques

Méthode Description
AddNamespace ( string prefix, string ns ) : void

This method adds a namespace for XPath queries.

Clone ( ) : IXPathQueryManager

This method returns a clone of the current instance. The cloned instance operates on the same (read-only) XmlDocument instance.

Compile ( string xPath ) : XPathExpression

This method compiles an XPath string.

GetIterator ( XPathExpression xPath ) : XPathNodeIterator

This method returns an XPathNodeIterator instance positioned at the nodes the XPath expression addresses.

GetIterator ( XPathExpression xPath, DictionaryEntry queryParameters ) : XPathNodeIterator

This method returns an XPathNodeIterator instance positioned at the nodes the XPath expression addresses.

GetValueFromNode ( XPathExpression xPath, DictionaryEntry queryParameters = null ) : string

This method returns the value of the first node the XPath expression addresses.

GetValuesFromNodes ( XPathExpression xPath ) : List

This method returns a collection of the values of all nodes the XPath expression addresses.

GetValuesFromNodes ( XPathExpression xPath, DictionaryEntry queryParameters ) : List

This method returns a collection of the values of all nodes the XPath expression addresses.

GetXPathQueryManagerInContext ( XPathExpression xPath, DictionaryEntry queryParameters = null ) : IXPathQueryManager

This method returns an instance of XPathQueryManager in the context of the first node the XPath expression addresses.

ResetNamespaces ( ) : void

This method deletes the current namespace context.

SetDocumentToParse ( HttpClientUtil httpClientUtil ) : void

Sets a new XML document.

SetDocumentToParse ( Stream documentStream ) : void

Sets a new XML document.

SetDocumentToParse ( byte document ) : void

Sets a new XML document.

SetDocumentToParse ( string fileName ) : void

Sets a new XmlDocument

XPathQueryManager ( ) : System

Initializes a new instance of the XPathQueryManager class.

XPathQueryManager ( HttpClientUtil httpClientUtil ) : System

Initializes a new instance of the XPathQueryManager class.

XPathQueryManager ( Stream documentStream ) : System

Initializes a new instance of the XPathQueryManager class.

XPathQueryManager ( XPathDocument xPathDoc ) : System

Initializes a new instance of the XPathQueryManager class.

XPathQueryManager ( byte document ) : System

Initializes a new instance of the XPathQueryManager class.

XPathQueryManager ( string fileName ) : System

Initializes a new instance of the XPathQueryManager class.

Private Methods

Méthode Description
FindXPath ( XPathExpression xPath ) : void

This method sets the inherent XPathNodeIterator instance.

InitializeCustomContext ( CustomQueryContext paramContext ) : void
InitializeXPathObjects ( Stream xmlStream ) : void

This method does some XPath specific initializations.

SetDocumentToParse ( XPathDocument xPathDoc ) : void

Sets a new XML document.

XPathQueryManager ( XPathDocument xPathDoc, XPathNavigator xNav, CustomQueryContext paramContext ) : System

Initializes a new instance of the XPathQueryManager class.

XPathQueryManager ( XPathDocument xPathDoc, XPathNodeIterator xIter, CustomQueryContext paramContext ) : System

Initializes a new instance of the XPathQueryManager class.

Method Details

AddNamespace() public méthode

This method adds a namespace for XPath queries.
public AddNamespace ( string prefix, string ns ) : void
prefix string The namespace prefix
ns string The namespace URI
Résultat void

Clone() public méthode

This method returns a clone of the current instance. The cloned instance operates on the same (read-only) XmlDocument instance.
public Clone ( ) : IXPathQueryManager
Résultat IXPathQueryManager

Compile() public méthode

This method compiles an XPath string.
public Compile ( string xPath ) : XPathExpression
xPath string The XPath string
Résultat System.Xml.XPath.XPathExpression

GetIterator() public méthode

This method returns an XPathNodeIterator instance positioned at the nodes the XPath expression addresses.
public GetIterator ( XPathExpression xPath ) : XPathNodeIterator
xPath System.Xml.XPath.XPathExpression The compiled XPath expression
Résultat System.Xml.XPath.XPathNodeIterator

GetIterator() public méthode

This method returns an XPathNodeIterator instance positioned at the nodes the XPath expression addresses.
public GetIterator ( XPathExpression xPath, DictionaryEntry queryParameters ) : XPathNodeIterator
xPath System.Xml.XPath.XPathExpression The compiled XPath expression
queryParameters System.Collections.DictionaryEntry Parameters for the compiled XPath expression
Résultat System.Xml.XPath.XPathNodeIterator

GetValueFromNode() public méthode

This method returns the value of the first node the XPath expression addresses.
public GetValueFromNode ( XPathExpression xPath, DictionaryEntry queryParameters = null ) : string
xPath System.Xml.XPath.XPathExpression The compiled XPath expression
queryParameters System.Collections.DictionaryEntry Parameters for the compiled XPath expression
Résultat string

GetValuesFromNodes() public méthode

This method returns a collection of the values of all nodes the XPath expression addresses.
public GetValuesFromNodes ( XPathExpression xPath ) : List
xPath System.Xml.XPath.XPathExpression The compiled XPath expression
Résultat List

GetValuesFromNodes() public méthode

This method returns a collection of the values of all nodes the XPath expression addresses.
public GetValuesFromNodes ( XPathExpression xPath, DictionaryEntry queryParameters ) : List
xPath System.Xml.XPath.XPathExpression The compiled XPath expression
queryParameters System.Collections.DictionaryEntry Parameters for the compiled XPath expression
Résultat List

GetXPathQueryManagerInContext() public méthode

This method returns an instance of XPathQueryManager in the context of the first node the XPath expression addresses.
public GetXPathQueryManagerInContext ( XPathExpression xPath, DictionaryEntry queryParameters = null ) : IXPathQueryManager
xPath System.Xml.XPath.XPathExpression The compiled XPath expression
queryParameters System.Collections.DictionaryEntry Parameters for the compiled XPath expression
Résultat IXPathQueryManager

ResetNamespaces() public méthode

This method deletes the current namespace context.
public ResetNamespaces ( ) : void
Résultat void

SetDocumentToParse() public méthode

Sets a new XML document.
public SetDocumentToParse ( HttpClientUtil httpClientUtil ) : void
httpClientUtil Mapsui.Providers.Wfs.Utilities.HttpClientUtil A configured instance for performing web requests
Résultat void

SetDocumentToParse() public méthode

Sets a new XML document.
public SetDocumentToParse ( Stream documentStream ) : void
documentStream Stream A Stream with XML data
Résultat void

SetDocumentToParse() public méthode

Sets a new XML document.
public SetDocumentToParse ( byte document ) : void
document byte A byte array with XML data
Résultat void

SetDocumentToParse() public méthode

Sets a new XmlDocument
public SetDocumentToParse ( string fileName ) : void
fileName string
Résultat void

XPathQueryManager() public méthode

Initializes a new instance of the XPathQueryManager class.
public XPathQueryManager ( ) : System
Résultat System

XPathQueryManager() public méthode

Initializes a new instance of the XPathQueryManager class.
public XPathQueryManager ( HttpClientUtil httpClientUtil ) : System
httpClientUtil Mapsui.Providers.Wfs.Utilities.HttpClientUtil A configured instance for performing web requests
Résultat System

XPathQueryManager() public méthode

Initializes a new instance of the XPathQueryManager class.
public XPathQueryManager ( Stream documentStream ) : System
documentStream Stream A Stream with XML data
Résultat System

XPathQueryManager() public méthode

Initializes a new instance of the XPathQueryManager class.
public XPathQueryManager ( XPathDocument xPathDoc ) : System
xPathDoc System.Xml.XPath.XPathDocument An XmlDocument instance
Résultat System

XPathQueryManager() public méthode

Initializes a new instance of the XPathQueryManager class.
public XPathQueryManager ( byte document ) : System
document byte A byte array with XML data
Résultat System

XPathQueryManager() public méthode

Initializes a new instance of the XPathQueryManager class.
public XPathQueryManager ( string fileName ) : System
fileName string
Résultat System