// System.Xml.XmlCharacterData.cs // // Author: Daniel Weber (daniel-weber@austin.rr.com) // // Implementation of abstract Xml.XmlCharacterData class // // Provides text manipulation methods used by derived classes // abstract class using System; namespace System.Xml { /// /// Abstratc class to provide text manipulation methods for derived classes /// public abstract class XmlCharacterData : XmlLinkedNode { // ============ Public Properties ===================================== //===================================================================== /// /// Contains the nodes data /// public virtual string Data { get { // TODO - implement Data {get;} throw new NotImplementedException(); } set { // TODO - implement Data {set;} throw new NotImplementedException(); } } /// /// Get/Set the nodes value /// public override string Value { get { // TODO - implement Value {get;} throw new NotImplementedException(); } set { // TODO - implement Value {set;} throw new NotImplementedException(); } } public override string InnerText { get { // TODO - implement InnerText {get;} throw new NotImplementedException(); } set { // TODO - implement InnerText {set;} throw new NotImplementedException(); } } /// /// Returns the length of data, in characters /// public virtual int Length { get { // TODO - implement Length {get;} throw new NotImplementedException(); } } // ============ Public Methods ======================================= //===================================================================== /// /// Appends string strData to the end of data /// /// public virtual void AppendData(string strData) { // TODO - implement AppendData(strData) throw new NotImplementedException(); } /// /// Remove a range of characters from the node /// /// offset, in characters, to start delete /// Number of characters to delete public virtual void DeleteData(int offset, int count) { // TODO - implement DeleteData(offset, count) throw new NotImplementedException(); } /// /// Replaces the number of characters, starting at offset, with the passed string /// /// Offset (in characters) to start replacement /// Number of characters to replace /// Replacement string public virtual void ReplaceData(int offset, int count, string strData) { // TODO - implement ReplaceData(offset, count, strData) throw new NotImplementedException(); } /// /// Retrieves a substring of the specified range /// /// Character offset to begin string /// Number of characters to return /// public virtual string Substring(int offset, int count) { // TODO - implement Substring(offset, count) throw new NotImplementedException(); } // ============ Protected Methods ==================================== //===================================================================== /// /// Listed in beta 2, but no description /// [to be supplied] /// /// /// /// protected internal bool DecideXPNodeTypeForWhitespace( XmlNode node, ref XPathNodeType xnt ) { // TODO throw new NotImplementedException(); } // Constructors internal XmlCharacterData ( XmlDocument aOwnerDoc) : base(aOwnerDoc) { } } }