The Labs \ Source Viewer \ SSCLI \ System.Xml.Schema \ XmlSchemaExternal

  1. //------------------------------------------------------------------------------
  2. // <copyright file="XmlSchemaExternal.cs" company="Microsoft">
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. // </copyright>
  14. // <owner current="true" primary="true">priyal</owner>
  15. //------------------------------------------------------------------------------
  16. namespace System.Xml.Schema
  17. {
  18.    
  19.     using System.Collections;
  20.     using System.ComponentModel;
  21.     using System.Xml.Serialization;
  22.    
  23.     /// <include file='doc\XmlSchemaExternal.uex' path='docs/doc[@for="XmlSchemaExternal"]/*' />
  24.     public abstract class XmlSchemaExternal : XmlSchemaObject
  25.     {
  26.         string location;
  27.         Uri baseUri;
  28.         XmlSchema schema;
  29.         string id;
  30.         XmlAttribute[] moreAttributes;
  31.         Compositor compositor;
  32.        
  33.         /// <include file='doc\XmlSchemaExternal.uex' path='docs/doc[@for="XmlSchemaExternal.SchemaLocation"]/*' />
  34.         [XmlAttribute("schemaLocation", DataType = "anyURI")]
  35.         public string SchemaLocation {
  36.             get { return location; }
  37.             set { location = value; }
  38.         }
  39.        
  40.         /// <include file='doc\XmlSchemaExternal.uex' path='docs/doc[@for="XmlSchemaExternal.Schema"]/*' />
  41.         [XmlIgnore()]
  42.         public XmlSchema Schema {
  43.             get { return schema; }
  44.             set { schema = value; }
  45.         }
  46.        
  47.         /// <include file='doc\XmlSchemaExternal.uex' path='docs/doc[@for="XmlSchemaExternal.Id"]/*' />
  48.         [XmlAttribute("id", DataType = "ID")]
  49.         public string Id {
  50.             get { return id; }
  51.             set { id = value; }
  52.         }
  53.        
  54.         /// <include file='doc\XmlSchemaExternal.uex' path='docs/doc[@for="XmlSchemaExternal.UnhandledAttributes"]/*' />
  55.         [XmlAnyAttribute()]
  56.         public XmlAttribute[] UnhandledAttributes {
  57.             get { return moreAttributes; }
  58.             set { moreAttributes = value; }
  59.         }
  60.        
  61.         [XmlIgnore()]
  62.         internal Uri BaseUri {
  63.             get { return baseUri; }
  64.             set { baseUri = value; }
  65.         }
  66.        
  67.         [XmlIgnore()]
  68.         internal override string IdAttribute {
  69.             get { return Id; }
  70.             set { Id = value; }
  71.         }
  72.        
  73.         internal override void SetUnhandledAttributes(XmlAttribute[] moreAttributes)
  74.         {
  75.             this.moreAttributes = moreAttributes;
  76.         }
  77.        
  78.         internal Compositor Compositor {
  79.             get { return compositor; }
  80.             set { compositor = value; }
  81.         }
  82.     }
  83. }

Developer Fusion