blob: f0778d8f3e7025eff99dc4efd1f266339149e204 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
//
// System.Xml.XmlEntity.cs
//
// Author:
// Duncan Mak (duncan@ximian.com)
//
// (C) Ximian, Inc.
//
namespace System.Xml
{
public class XmlEntity : XmlNode
{
#region Constructors
internal XmlEntity (string name, string NDATA, string publicId, string systemId,
XmlDocument doc)
: base (doc)
{
this.name = name;
this.NDATA = NDATA;
this.publicId = publicId;
this.systemId = systemId;
this.baseUri = doc.BaseURI;
}
#endregion
#region Fields
string name;
string NDATA;
string publicId;
string systemId;
string baseUri;
#endregion
#region Properties
public override string BaseURI {
get { return baseUri; }
}
[MonoTODO]
public override string InnerText {
get { throw new NotImplementedException (); }
set { throw new InvalidOperationException ("This operation is not supported."); }
}
public override string InnerXml {
get { return String.Empty; }
set { throw new InvalidOperationException ("This operation is not supported."); }
}
public override bool IsReadOnly {
get { return true; } // always read-only.
}
public override string LocalName {
get { return name; }
}
public override string Name {
get { return name; }
}
public override XmlNodeType NodeType {
get { return XmlNodeType.Entity; }
}
public string NotationName {
get {
if (NDATA == null)
return null;
else
return NDATA;
}
}
public override string OuterXml {
get { return String.Empty; }
}
public string PublicId {
get {
if (publicId == null)
return null;
else
return publicId;
}
}
public string SystemId {
get {
if (publicId == null)
return null;
else
return systemId;
}
}
#endregion
#region Methods
public override XmlNode CloneNode (bool deep)
{
throw new InvalidOperationException ("This operation is not supported.");
}
public override void WriteContentTo (XmlWriter w)
{
// No effect.
}
public override void WriteTo (XmlWriter w)
{
// No effect.
}
#endregion
}
}
|