Files
mono/mcs/class/System.XML/System.Xml/XmlText.cs
T
Daniel Weber e4c6a12643 Fix constructors
svn path=/trunk/mcs/; revision=1400
2001-11-20 22:43:26 +00:00

89 lines
1.8 KiB
C#

// -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
//
// System.Xml.XmlText
//
// Author:
// Daniel Weber ([email protected])
//
// (C) 2001 Daniel Weber
using System;
namespace System.Xml
{
/// <summary>
/// Represents the text content of an element or attribute
/// </summary>
public class XmlText : XmlNode
{
// Private data members
// public properties
public override string LocalName
{
get
{
return "#text";
}
}
/// <summary>
/// Get the name of the node.
/// </summary>
public override string Name
{
get
{
return "#text";
}
}
public override XmlNodeType NodeType
{
get
{
return XmlNodeType.Text;
}
}
// Public Methods
//===========================================================================
/// <summary>
/// Override. Throw InvalidOperationException - text nodes do not have child nodes
/// </summary>
/// <param name="newChild">N/A</param>
/// <param name="refChild">N/A</param>
/// <returns>N/A</returns>
public override XmlNode InsertAfter(XmlNode newChild, XmlNode refChild)
{
throw new InvalidOperationException("#text nodes do not have child nodes");
}
public override XmlNode CloneNode( bool deep)
{
throw new NotImplementedException();
}
public override void WriteContentTo(XmlWriter w)
{
throw new NotImplementedException();
}
public override void WriteTo(XmlWriter w)
{
throw new NotImplementedException();
}
// Internal method calls
//===========================================================================
// Constructors
//===========================================================================
internal XmlText (XmlDocument aOwnerDoc ) : base(aOwnerDoc)
{
}
}
}