// 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
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
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
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