C# 클래스 Mapsui.Providers.Wfs.Xml.XPathQueryManager

This class provides an easy-to-use interface for complex (parameterized) XPath queries.
상속: IXPathQueryManager
파일 보기 프로젝트 열기: pauldendulk/Mapsui 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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.

메소드 상세

AddNamespace() 공개 메소드

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
리턴 void

Clone() 공개 메소드

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

Compile() 공개 메소드

This method compiles an XPath string.
public Compile ( string xPath ) : XPathExpression
xPath string The XPath string
리턴 System.Xml.XPath.XPathExpression

GetIterator() 공개 메소드

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
리턴 System.Xml.XPath.XPathNodeIterator

GetIterator() 공개 메소드

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
리턴 System.Xml.XPath.XPathNodeIterator

GetValueFromNode() 공개 메소드

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
리턴 string

GetValuesFromNodes() 공개 메소드

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
리턴 List

GetValuesFromNodes() 공개 메소드

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
리턴 List

GetXPathQueryManagerInContext() 공개 메소드

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
리턴 IXPathQueryManager

ResetNamespaces() 공개 메소드

This method deletes the current namespace context.
public ResetNamespaces ( ) : void
리턴 void

SetDocumentToParse() 공개 메소드

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

SetDocumentToParse() 공개 메소드

Sets a new XML document.
public SetDocumentToParse ( Stream documentStream ) : void
documentStream Stream A Stream with XML data
리턴 void

SetDocumentToParse() 공개 메소드

Sets a new XML document.
public SetDocumentToParse ( byte document ) : void
document byte A byte array with XML data
리턴 void

SetDocumentToParse() 공개 메소드

Sets a new XmlDocument
public SetDocumentToParse ( string fileName ) : void
fileName string
리턴 void

XPathQueryManager() 공개 메소드

Initializes a new instance of the XPathQueryManager class.
public XPathQueryManager ( ) : System
리턴 System

XPathQueryManager() 공개 메소드

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
리턴 System

XPathQueryManager() 공개 메소드

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

XPathQueryManager() 공개 메소드

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

XPathQueryManager() 공개 메소드

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

XPathQueryManager() 공개 메소드

Initializes a new instance of the XPathQueryManager class.
public XPathQueryManager ( string fileName ) : System
fileName string
리턴 System