536cd135cc
Former-commit-id: 5624ac747d633e885131e8349322922b6a59baaa
66 lines
2.4 KiB
C#
66 lines
2.4 KiB
C#
//------------------------------------------------------------------------------
|
|
// <copyright file="XmlSchemaAnnotated.cs" company="Microsoft">
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// </copyright>
|
|
// <owner current="true" primary="true">Microsoft</owner>
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace System.Xml.Schema {
|
|
|
|
using System.Collections;
|
|
using System.Xml.Serialization;
|
|
|
|
/// <include file='doc\XmlSchemaAnnotated.uex' path='docs/doc[@for="XmlSchemaAnnotated"]/*' />
|
|
/// <devdoc>
|
|
/// <para>[To be supplied.]</para>
|
|
/// </devdoc>
|
|
public class XmlSchemaAnnotated : XmlSchemaObject {
|
|
string id;
|
|
XmlSchemaAnnotation annotation;
|
|
XmlAttribute[] moreAttributes;
|
|
|
|
/// <include file='doc\XmlSchemaAnnotated.uex' path='docs/doc[@for="XmlSchemaAnnotated.Id"]/*' />
|
|
/// <devdoc>
|
|
/// <para>[To be supplied.]</para>
|
|
/// </devdoc>
|
|
[XmlAttribute("id", DataType="ID")]
|
|
public string Id {
|
|
get { return id; }
|
|
set { id = value; }
|
|
}
|
|
|
|
/// <include file='doc\XmlSchemaAnnotated.uex' path='docs/doc[@for="XmlSchemaAnnotated.Annotation"]/*' />
|
|
/// <devdoc>
|
|
/// <para>[To be supplied.]</para>
|
|
/// </devdoc>
|
|
[XmlElement("annotation", typeof(XmlSchemaAnnotation))]
|
|
public XmlSchemaAnnotation Annotation {
|
|
get { return annotation; }
|
|
set { annotation = value; }
|
|
}
|
|
|
|
/// <include file='doc\XmlSchemaAnnotated.uex' path='docs/doc[@for="XmlSchemaAnnotated.UnhandledAttributes"]/*' />
|
|
/// <devdoc>
|
|
/// <para>[To be supplied.]</para>
|
|
/// </devdoc>
|
|
[XmlAnyAttribute]
|
|
public XmlAttribute[] UnhandledAttributes {
|
|
get { return moreAttributes; }
|
|
set { moreAttributes = value; }
|
|
}
|
|
|
|
[XmlIgnore]
|
|
internal override string IdAttribute {
|
|
get { return Id; }
|
|
set { Id = value; }
|
|
}
|
|
|
|
internal override void SetUnhandledAttributes(XmlAttribute[] moreAttributes) {
|
|
this.moreAttributes = moreAttributes;
|
|
}
|
|
internal override void AddAnnotation(XmlSchemaAnnotation annotation) {
|
|
this.annotation = annotation;
|
|
}
|
|
}
|
|
}
|