Add MIT license to System.XML.DLL
[mono.git] / mcs / class / System.XML / System.Xml.Schema / XmlSchemaComplexContentRestriction.cs
index 5028bd5fc8d028fe76dd564b5fe6629c95f694ba..08a56feb6e4dc5c47ec0dc2f87936555238444fa 100755 (executable)
@@ -5,6 +5,27 @@
 //     Dwivedi, Ajay kumar  Adwiv@Yahoo.com\r
 //     Atsushi Enomoto  ginga@kit.hi-ho.ne.jp\r
 //\r
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
 using System;\r
 using System.Xml;\r
 using System.Xml.Serialization;\r
@@ -20,7 +41,7 @@ namespace System.Xml.Schema
                private XmlSchemaObjectCollection attributes;\r
                private XmlQualifiedName baseTypeName;\r
                private XmlSchemaParticle particle;\r
-               private static string xmlname = "restriction";\r
+               const string xmlname = "restriction";\r
 \r
                public XmlSchemaComplexContentRestriction()\r
                {\r
@@ -59,10 +80,14 @@ namespace System.Xml.Schema
                        set{ any = value; }\r
                }\r
 \r
+               // internal properties\r
+               internal override bool IsExtension {\r
+                       get { return false; }\r
+               }\r
+\r
                /// <remarks>\r
                /// 1. base must be present\r
                /// </remarks>\r
-               [MonoTODO]\r
                internal override int Compile(ValidationEventHandler h, XmlSchema schema)\r
                {\r
                        // If this is already compiled this time, simply skip.\r
@@ -136,8 +161,17 @@ namespace System.Xml.Schema
                        return errorCount;\r
                }\r
                \r
-               [MonoTODO]\r
-               internal override int Validate(ValidationEventHandler h, XmlSchema schema)\r
+               internal override XmlQualifiedName GetBaseTypeName ()\r
+               {\r
+                       return baseTypeName;\r
+               }\r
+\r
+               internal override XmlSchemaParticle GetParticle ()\r
+               {\r
+                       return particle;\r
+               }\r
+\r
+               internal override int Validate (ValidationEventHandler h, XmlSchema schema)\r
                {\r
                        return errorCount;\r
                }\r