Ver Fonte

2003-12-14 Tim Coleman <[email protected]>
* ChangeLog XmlCommand.cs XmlQueryArgumentList.cs
* XmlQueryCompileException.cs XmlQueryException.cs XsltProcessor.cs:
Move classes from the System.Data.SqlXml assembly where they
did not belong.

svn path=/trunk/mcs/; revision=21114

Tim Coleman há 22 anos atrás
pai
commit
5bc274334a

+ 5 - 0
mcs/class/System.XML/System.Xml.Query/ChangeLog

@@ -0,0 +1,5 @@
+2003-12-14  Tim Coleman <[email protected]>
+	* ChangeLog XmlCommand.cs XmlQueryArgumentList.cs
+	* XmlQueryCompileException.cs XmlQueryException.cs XsltProcessor.cs:
+		Move classes from the System.Data.SqlXml assembly where they
+		did not belong.

+ 26 - 0
mcs/class/System.XML/System.Xml.Query/XmlCommand.cs

@@ -0,0 +1,26 @@
+//
+// System.Xml.Query.XmlCommand
+//
+// Author:
+//   Tim Coleman ([email protected])
+//
+// Copyright (C) Tim Coleman, 2003
+//
+
+#if NET_1_2
+
+using System.IO;
+
+namespace System.Xml.Query {
+        public abstract class XmlCommand
+        {
+		#region Methods
+
+		public abstract void Execute (string contextDocumentUri, XmlResolver dataSources, XmlQueryArgumentList argList, TextWriter results);
+		public abstract void Execute (string contextDocumentUri, XmlResolver dataSources, XmlQueryArgumentList argList, Stream results);
+
+		#endregion // Methods
+        }
+}
+
+#endif // NET_1_2

+ 96 - 0
mcs/class/System.XML/System.Xml.Query/XmlQueryArgumentList.cs

@@ -0,0 +1,96 @@
+//
+// System.Xml.Query.XmlQueryArgumentList
+//
+// Author:
+//   Tim Coleman ([email protected])
+//
+// Copyright (C) Tim Coleman, 2003
+//
+
+#if NET_1_2
+
+using System.Collections;
+using System.Xml;
+
+namespace System.Xml.Query {
+        public class XmlQueryArgumentList
+        {
+		#region Fields
+
+		Hashtable extensionObjects;
+		Hashtable parameters;
+
+		#endregion // Fields
+
+		#region Constructors
+
+		[MonoTODO]
+		public XmlQueryArgumentList ()
+		{
+			extensionObjects = new Hashtable ();
+			parameters = new Hashtable ();
+		}
+
+		#endregion // Constructors
+
+		#region Methods
+
+		[MonoTODO]
+		public void AddExtensionObject (string namespaceUri, object value)
+		{
+			extensionObjects [namespaceUri] = value;
+		}
+
+		[MonoTODO]
+		public void AddParam (string localName, string namespaceUri, object value)
+		{
+			AddParam (new XmlQualifiedName (localName, namespaceUri), value);
+		}
+
+		[MonoTODO]
+		private void AddParam (XmlQualifiedName qname, object value)
+		{
+			parameters [qname] = value;
+		}
+
+		[MonoTODO]
+		public object GetExtensionObject (string namespaceUri)
+		{
+			return extensionObjects [namespaceUri];
+		}
+
+		[MonoTODO]
+		public object GetParam (string localName, string namespaceUri)
+		{
+			return GetParam (new XmlQualifiedName (localName, namespaceUri));
+		}
+
+		[MonoTODO]
+		private object GetParam (XmlQualifiedName qname)
+		{
+			return parameters [qname];
+		}
+
+		[MonoTODO]
+		public void RemoveExtensionObject (string namespaceUri)
+		{
+			extensionObjects.Remove (namespaceUri);	
+		}
+
+		[MonoTODO]
+		public void RemoveParam (string localName, string namespaceUri)
+		{
+			RemoveParam (new XmlQualifiedName (localName, namespaceUri));
+		}
+
+		[MonoTODO]
+		private void RemoveParam (XmlQualifiedName qname)
+		{
+			parameters.Remove (qname);
+		}
+
+		#endregion // Methods
+        }
+}
+
+#endif // NET_1_2

+ 63 - 0
mcs/class/System.XML/System.Xml.Query/XmlQueryCompileException.cs

@@ -0,0 +1,63 @@
+//
+// System.Xml.Query.XmlQueryCompileException
+//
+// Author:
+//   Tim Coleman ([email protected])
+//
+// Copyright (C) Tim Coleman, 2003
+//
+
+#if NET_1_2
+
+using System;
+using System.Runtime.Serialization;
+
+namespace System.Xml.Query {
+        public class XmlQueryCompileException : XmlQueryException
+        {
+		#region Constructors
+
+		public XmlQueryCompileException (SerializationInfo info, StreamingContext context)
+			: base (info, context)
+		{
+		}
+
+		public XmlQueryCompileException ()
+			: base ("An XML Query Compile Exception has occurred.")
+		{
+		}
+
+		public XmlQueryCompileException (string res)
+			: base (res)
+		{
+		}
+
+		public XmlQueryCompileException (string resource, Exception exception)
+			: base (resource, exception)
+		{
+		}
+
+		#endregion // Constructors
+
+		#region Properties
+	
+		[MonoTODO]
+		public override string Message {
+			get { throw new NotImplementedException(); }
+		}
+
+		#endregion // Properties
+
+		#region Methods
+
+		[MonoTODO]
+		public override void GetObjectData (SerializationInfo info, StreamingContext context)
+		{
+			throw new NotImplementedException();
+		}
+
+		#endregion // Methods
+        }
+}
+
+#endif // NET_1_2

+ 84 - 0
mcs/class/System.XML/System.Xml.Query/XmlQueryException.cs

@@ -0,0 +1,84 @@
+//
+// System.Xml.Query.XmlQueryException
+//
+// Author:
+//   Tim Coleman ([email protected])
+//
+// Copyright (C) Tim Coleman, 2003
+//
+
+#if NET_1_2
+
+using System;
+using System.Runtime.Serialization;
+
+namespace System.Xml.Query {
+        public class XmlQueryException : SystemException
+        {
+		#region Constructors
+
+		public XmlQueryException (SerializationInfo info, StreamingContext context)
+			: base (info, context)
+		{
+		}
+
+		public XmlQueryException ()
+			: base ("An XML Query Exception has occurred.")
+		{
+		}
+
+		public XmlQueryException (string res)
+			: base (res)
+		{
+		}
+
+		public XmlQueryException (string resource, Exception exception)
+			: base (resource, exception)
+		{
+		}
+
+		#endregion // Constructors
+
+		#region Properties
+
+		[MonoTODO]
+		public int LineNumber {
+			get { throw new NotImplementedException (); }
+		}
+
+		[MonoTODO]
+		public int LinePosition {
+			get { throw new NotImplementedException (); }
+		}
+	
+		[MonoTODO]
+		public override string Message {
+			get { throw new NotImplementedException(); }
+		}
+
+		[MonoTODO]
+		public string SourceUri {
+			get { throw new NotImplementedException(); }
+		}
+
+		#endregion // Properties
+
+		#region Methods
+
+		[MonoTODO]
+		public override void GetObjectData (SerializationInfo info, StreamingContext context)
+		{
+			throw new NotImplementedException();
+		}
+
+		[MonoTODO]
+		public void SetMessage (string message, bool addLineInfo)
+		{
+			throw new NotImplementedException ();
+		}
+
+		#endregion // Methods
+        }
+}
+
+#endif // NET_1_2

+ 71 - 0
mcs/class/System.XML/System.Xml.Query/XsltProcessor.cs

@@ -0,0 +1,71 @@
+//
+// System.Xml.Query.XsltProcessor
+//
+// Author:
+//   Tim Coleman ([email protected])
+//
+// Copyright (C) Tim Coleman, 2003
+//
+
+#if NET_1_2
+
+using System.IO;
+
+namespace System.Xml.Query {
+        public class XsltProcessor
+        {
+		#region Constructors
+	
+		[MonoTODO]
+		public XsltProcessor ()
+		{
+		}
+
+		#endregion // Constructors
+
+		#region Properties
+	
+		[MonoTODO]
+		public XmlCommand XmlCommand {
+			get { throw new NotImplementedException (); }
+		}
+
+		#endregion // Properties
+
+		#region Methods
+
+		[MonoTODO]
+		public void Compile (string stylesheetUri, XmlResolver resolver)
+		{ 
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public void Compile (string stylesheetUri)
+		{ 
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public void Execute (string contextDocumentUri, XmlResolver dataSources, XmlQueryArgumentList argList, TextWriter results)
+		{ 
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public void Execute (string contextDocumentUri, XmlResolver dataSources, XmlQueryArgumentList argList, Stream results)
+		{ 
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public void Execute (string contextDocumentUri, string resultDocumentUri)
+		{ 
+			throw new NotImplementedException ();
+		}
+
+		#endregion // Methods
+        }
+}
+
+#endif // NET_1_2