**** Merged from MCS ****
[mono-project.git] / mcs / class / System.Data.SqlXml / System.Data.Mapping / IDomainSchema.cs
blob0cfea8e71f35acb3d5856d8566fba6ea3fdd9a93
1 //
2 // System.Data.Mapping.IDomainSchema
3 //
4 // Author:
5 // Tim Coleman (tim@timcoleman.com)
6 //
7 // Copyright (C) Tim Coleman, 2003
8 //
11 // Permission is hereby granted, free of charge, to any person obtaining
12 // a copy of this software and associated documentation files (the
13 // "Software"), to deal in the Software without restriction, including
14 // without limitation the rights to use, copy, modify, merge, publish,
15 // distribute, sublicense, and/or sell copies of the Software, and to
16 // permit persons to whom the Software is furnished to do so, subject to
17 // the following conditions:
18 //
19 // The above copyright notice and this permission notice shall be
20 // included in all copies or substantial portions of the Software.
21 //
22 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31 #if NET_2_0
33 using System.IO;
34 using System.Xml;
35 using System.Xml.Schema;
37 namespace System.Data.Mapping {
38 public interface IDomainSchema
40 #region Properties
42 MappingDataSourceType DomainType { get; }
44 #endregion // Properties
46 #region Methods
48 IDomainConstraint GetDomainConstraint (string name, IXmlNamespaceResolver namespaces);
49 IDomainStructure GetDomainStructure (string select, IXmlNamespaceResolver namespaces);
50 void Read (string url, ValidationEventHandler validationEventHandler);
51 void Read (string url);
52 void Read (XmlReader reader, ValidationEventHandler validationEventHandler);
53 void Read (XmlReader reader);
54 void ReadExtensions (XmlReader reader, ValidationEventHandler validationEventHandler);
55 void ReadExtensions (XmlReader reader);
56 void Write (string url, IXmlNamespaceResolver namespaceResolver);
57 void Write (string url);
58 void Write (XmlWriter writer, IXmlNamespaceResolver namespaceResolver);
59 void Write (XmlWriter writer);
60 void Write (Stream stream, IXmlNamespaceResolver namespaceResolver);
61 void Write (Stream stream);
62 void Write (TextWriter writer, IXmlNamespaceResolver namespaceResolver);
63 void Write (TextWriter writer);
64 void WriteExtensions (XmlWriter writer, IXmlNamespaceResolver namespaceResolver);
65 void WriteExtensions (XmlWriter writer);
67 #endregion // Methods
71 #endif // NET_2_0