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