mscorlib(4.0.0.0) API with additions
XmlSchemaObject.cs
3 
4 namespace System.Xml.Schema
5 {
7  [PermissionSet(SecurityAction.InheritanceDemand, Name = "FullTrust")]
8  public abstract class XmlSchemaObject
9  {
10  private int lineNum;
11 
12  private int linePos;
13 
14  private string sourceUri;
15 
16  private XmlSerializerNamespaces namespaces;
17 
18  private XmlSchemaObject parent;
19 
20  private bool isProcessing;
21 
24  [XmlIgnore]
25  public int LineNumber
26  {
27  get
28  {
29  return lineNum;
30  }
31  set
32  {
33  lineNum = value;
34  }
35  }
36 
39  [XmlIgnore]
40  public int LinePosition
41  {
42  get
43  {
44  return linePos;
45  }
46  set
47  {
48  linePos = value;
49  }
50  }
51 
54  [XmlIgnore]
55  public string SourceUri
56  {
57  get
58  {
59  return sourceUri;
60  }
61  set
62  {
63  sourceUri = value;
64  }
65  }
66 
69  [XmlIgnore]
70  public XmlSchemaObject Parent
71  {
72  get
73  {
74  return parent;
75  }
76  set
77  {
78  parent = value;
79  }
80  }
81 
84  [XmlNamespaceDeclarations]
86  {
87  get
88  {
89  if (namespaces == null)
90  {
91  namespaces = new XmlSerializerNamespaces();
92  }
93  return namespaces;
94  }
95  set
96  {
97  namespaces = value;
98  }
99  }
100 
101  [XmlIgnore]
102  internal virtual string IdAttribute
103  {
104  get
105  {
106  return null;
107  }
108  set
109  {
110  }
111  }
112 
113  [XmlIgnore]
114  internal virtual string NameAttribute
115  {
116  get
117  {
118  return null;
119  }
120  set
121  {
122  }
123  }
124 
125  [XmlIgnore]
126  internal bool IsProcessing
127  {
128  get
129  {
130  return isProcessing;
131  }
132  set
133  {
134  isProcessing = value;
135  }
136  }
137 
138  internal virtual void OnAdd(XmlSchemaObjectCollection container, object item)
139  {
140  }
141 
142  internal virtual void OnRemove(XmlSchemaObjectCollection container, object item)
143  {
144  }
145 
146  internal virtual void OnClear(XmlSchemaObjectCollection container)
147  {
148  }
149 
150  internal virtual void SetUnhandledAttributes(XmlAttribute[] moreAttributes)
151  {
152  }
153 
154  internal virtual void AddAnnotation(XmlSchemaAnnotation annotation)
155  {
156  }
157 
158  internal virtual XmlSchemaObject Clone()
159  {
160  return (XmlSchemaObject)MemberwiseClone();
161  }
162  }
163 }
Contains the XML namespaces and prefixes that the T:System.Xml.Serialization.XmlSerializer uses to ge...
XmlSchemaObject Parent
Gets or sets the parent of this T:System.Xml.Schema.XmlSchemaObject.
Definition: __Canon.cs:3
Represents the root class for the Xml schema object model hierarchy and serves as a base class for cl...
XmlSerializerNamespaces Namespaces
Gets or sets the T:System.Xml.Serialization.XmlSerializerNamespaces to use with this schema object.
SecurityAction
Specifies the security actions that can be performed using declarative security.
int LineNumber
Gets or sets the line number in the file to which the schema element refers.
int LinePosition
Gets or sets the line position in the file to which the schema element refers.
string SourceUri
Gets or sets the source location for the file that loaded the schema.