Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAtsushi Eno <atsushieno@gmail.com>2005-12-08 10:11:03 +0300
committerAtsushi Eno <atsushieno@gmail.com>2005-12-08 10:11:03 +0300
commit9ff75fb951295c5a995e8af668009b0508ccf446 (patch)
tree16a485aaa7d69e0df3db797c9dce024b1ab30692 /mcs/class/System.XML
parent99c907944c8403aa060be61e4ae65f44c3806e0c (diff)
2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
* XmlSchemaValidationException.cs : oops, there is SourceObject other than SourceSchemaObject. * XmlSchemaCompilationSettings.cs : oops, actually XmlSchemaSet is also used in 1.x profile (internally) * XmlSchemaSimpleTypeList.cs : added set_BaseItemType bogus (just to fill API compatibility). svn path=/trunk/mcs/; revision=54095
Diffstat (limited to 'mcs/class/System.XML')
-rw-r--r--mcs/class/System.XML/System.Xml.Schema/ChangeLog9
-rw-r--r--mcs/class/System.XML/System.Xml.Schema/XmlSchemaCompilationSettings.cs10
-rw-r--r--mcs/class/System.XML/System.Xml.Schema/XmlSchemaSimpleTypeList.cs6
-rw-r--r--mcs/class/System.XML/System.Xml.Schema/XmlSchemaValidationException.cs7
4 files changed, 28 insertions, 4 deletions
diff --git a/mcs/class/System.XML/System.Xml.Schema/ChangeLog b/mcs/class/System.XML/System.Xml.Schema/ChangeLog
index bf263dec181..802f40b40bf 100644
--- a/mcs/class/System.XML/System.Xml.Schema/ChangeLog
+++ b/mcs/class/System.XML/System.Xml.Schema/ChangeLog
@@ -1,5 +1,14 @@
2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
+ * XmlSchemaValidationException.cs :
+ oops, there is SourceObject other than SourceSchemaObject.
+ * XmlSchemaCompilationSettings.cs : oops, actually XmlSchemaSet is
+ also used in 1.x profile (internally)
+ * XmlSchemaSimpleTypeList.cs : added set_BaseItemType bogus (just to
+ fill API compatibility).
+
+2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
+
* XmlSchemaCompilationSettings.cs : new file.
* XmlSchemaSet.cs : added CompilationSettings property.
* XmlSchemaComplexType.cs : support for EnableUpaCheck.
diff --git a/mcs/class/System.XML/System.Xml.Schema/XmlSchemaCompilationSettings.cs b/mcs/class/System.XML/System.Xml.Schema/XmlSchemaCompilationSettings.cs
index debd6655404..bed7ffe93fa 100644
--- a/mcs/class/System.XML/System.Xml.Schema/XmlSchemaCompilationSettings.cs
+++ b/mcs/class/System.XML/System.Xml.Schema/XmlSchemaCompilationSettings.cs
@@ -27,7 +27,6 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_2_0
using System;
using System.Collections;
@@ -36,7 +35,12 @@ using System.Xml.Serialization;
namespace System.Xml.Schema
{
- public sealed class XmlSchemaCompilationSettings
+#if NET_2_0
+ public
+#else
+ internal
+#endif
+ sealed class XmlSchemaCompilationSettings
{
public XmlSchemaCompilationSettings ()
{
@@ -50,5 +54,3 @@ namespace System.Xml.Schema
}
}
}
-
-#endif
diff --git a/mcs/class/System.XML/System.Xml.Schema/XmlSchemaSimpleTypeList.cs b/mcs/class/System.XML/System.Xml.Schema/XmlSchemaSimpleTypeList.cs
index 8024b42dfeb..8e975cf4054 100644
--- a/mcs/class/System.XML/System.Xml.Schema/XmlSchemaSimpleTypeList.cs
+++ b/mcs/class/System.XML/System.Xml.Schema/XmlSchemaSimpleTypeList.cs
@@ -72,6 +72,12 @@ namespace System.Xml.Schema
[XmlIgnore]
public XmlSchemaSimpleType BaseItemType {
get { return validatedListItemSchemaType; }
+ // LAMESPEC: Since it is "post compilation information"
+ // this setter should not exist. Here I just ignore
+ // to not break the whole API. If this setter means
+ // something, then it means that MS implementation is
+ // buggy.
+ set { }
}
#endif
diff --git a/mcs/class/System.XML/System.Xml.Schema/XmlSchemaValidationException.cs b/mcs/class/System.XML/System.Xml.Schema/XmlSchemaValidationException.cs
index df9258c1908..25d41ae7e3a 100644
--- a/mcs/class/System.XML/System.Xml.Schema/XmlSchemaValidationException.cs
+++ b/mcs/class/System.XML/System.Xml.Schema/XmlSchemaValidationException.cs
@@ -40,6 +40,8 @@ namespace System.Xml.Schema
[Serializable]
public class XmlSchemaValidationException : XmlSchemaException
{
+ object source_object;
+
protected XmlSchemaValidationException ()
: base ()
{
@@ -94,6 +96,11 @@ namespace System.Xml.Schema
// Never use it. It actually does nothing even on MS.NET 2.0.
protected internal void SetSourceObject (object o)
{
+ source_object = o;
+ }
+
+ public object SourceObject {
+ get { return source_object; }
}
}
}