The Labs \ Source Viewer \ SSCLI \ System.Xml.Xsl \ XmlCommand

  1. //------------------------------------------------------------------------------
  2. // <copyright file="XmlCommand.cs" company="Microsoft">
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. // </copyright>
  14. //------------------------------------------------------------------------------
  15. using System.Collections;
  16. using System.IO;
  17. using System.Text;
  18. using System.Xml.XPath;
  19. namespace System.Xml.Xsl
  20. {
  21.    
  22.     /// <summary>
  23.     /// Executable query object that is produced by a QilExpression -> Executable generator. Implementations
  24.     /// should be stateless so that Execute can be concurrently called by multiple threads.
  25.     /// </summary>
  26.     internal abstract class XmlCommand
  27.     {
  28.         /// <devdoc>
  29.         /// <para>
  30.         /// Executes the query over the provided XPathNavigator with the given XsltArgumentList
  31.         /// as run-time parameters. The results are output to the provided XmlWriter.
  32.         /// </para>
  33.         /// </devdoc>
  34.         public abstract void Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results);
  35.        
  36.         /// <devdoc>
  37.         /// <para>
  38.         /// Executes the query over the provided XPathNavigator with the given XsltArgumentList
  39.         /// as run-time parameters. The results are output to the provided TextWriter.
  40.         /// </para>
  41.         /// </devdoc>
  42.         public abstract void Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, TextWriter results);
  43.        
  44.         /// <devdoc>
  45.         /// <para>
  46.         /// Executes the query over the provided XPathNavigator with the given XsltArgumentList
  47.         /// as run-time parameters. The results are output to the provided Stream.
  48.         /// </para>
  49.         /// </devdoc>
  50.         public abstract void Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, Stream results);
  51.        
  52.         /// <devdoc>
  53.         /// <para>
  54.         /// Executes the query by accessing datasources via the XmlResolver and using
  55.         /// run-time parameters as provided by the XsltArgumentList. The default document
  56.         /// is mapped into the XmlResolver with the provided name. The results are output
  57.         /// to the provided XmlWriter.
  58.         /// </para>
  59.         /// </devdoc>
  60.         public abstract void Execute(XmlReader contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results);
  61.        
  62.         /// <devdoc>
  63.         /// <para>
  64.         /// Executes the query by accessing datasources via the XmlResolver and using
  65.         /// run-time parameters as provided by the XsltArgumentList. The default document
  66.         /// is mapped into the XmlResolver with the provided name. The results are output
  67.         /// to the provided TextWriter.
  68.         /// </para>
  69.         /// </devdoc>
  70.         public abstract void Execute(XmlReader contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, TextWriter results);
  71.        
  72.         /// <devdoc>
  73.         /// <para>
  74.         /// Executes the query by accessing datasources via the XmlResolver and using
  75.         /// run-time parameters as provided by the XsltArgumentList. The default document
  76.         /// is mapped into the XmlResolver with the provided name. The results are output
  77.         /// to the provided Stream.
  78.         /// </para>
  79.         /// </devdoc>
  80.         public abstract void Execute(XmlReader contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, Stream results);
  81.        
  82.         /// <devdoc>
  83.         /// <para>
  84.         /// Executes the query by accessing datasources via the XmlResolver and using
  85.         /// run-time parameters as provided by the XsltArgumentList. The default document
  86.         /// is mapped into the XmlResolver with the provided name. The results are returned
  87.         /// as an IList.
  88.         /// </para>
  89.         /// </devdoc>
  90.         public abstract IList Evaluate(XmlReader contextDocument, XmlResolver dataSources, XsltArgumentList argumentList);
  91.     }
  92. }

Developer Fusion