| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341 |
- //
- // System.Xml.XmlValidatingReader.cs
- //
- // Author:
- // Tim Coleman ([email protected])
- //
- // Copyright (C) Tim Coleman, 2002
- //
- using System.IO;
- using System.Text;
- using System.Xml.Schema;
- namespace System.Xml {
- public class XmlValidatingReader : XmlReader, IXmlLineInfo {
- #region Fields
- EntityHandling entityHandling;
- bool namespaces;
- XmlReader reader;
- ValidationType validationType;
- #endregion // Fields
- #region Constructors
- [MonoTODO]
- public XmlValidatingReader (XmlReader reader)
- : base ()
- {
- if (!(reader is XmlTextReader))
- throw new ArgumentException ();
- this.reader = reader;
- entityHandling = EntityHandling.ExpandEntities;
- namespaces = true;
- validationType = ValidationType.Auto;
- }
- [MonoTODO]
- public XmlValidatingReader (Stream xmlFragment, XmlNodeType fragType, XmlParserContext context)
- : this (new XmlTextReader (xmlFragment))
- {
- }
- public XmlValidatingReader (string xmlFragment, XmlNodeType fragType, XmlParserContext context)
- : this (new XmlTextReader (xmlFragment))
- {
- }
- #endregion // Constructors
- #region Properties
- public override int AttributeCount {
- [MonoTODO]
- get { throw new NotImplementedException (); }
- }
- public override string BaseURI {
- [MonoTODO]
- get { throw new NotImplementedException (); }
- }
- public override bool CanResolveEntity {
- get { return true; }
- }
- public override int Depth {
- [MonoTODO]
- get { throw new NotImplementedException (); }
- }
- public Encoding Encoding {
- [MonoTODO]
- get { throw new NotImplementedException (); }
- }
- public EntityHandling EntityHandling {
- get { return entityHandling; }
- set { entityHandling = value; }
- }
- public override bool EOF {
- [MonoTODO]
- get { throw new NotImplementedException (); }
- }
- public override bool HasValue {
- [MonoTODO]
- get { throw new NotImplementedException (); }
- }
- public override bool IsDefault {
- [MonoTODO]
- get { throw new NotImplementedException (); }
- }
- public override bool IsEmptyElement {
- [MonoTODO]
- get { throw new NotImplementedException (); }
- }
- public override string this [int i] {
- [MonoTODO]
- get { throw new NotImplementedException (); }
- }
- public override string this [string name] {
- [MonoTODO]
- get { throw new NotImplementedException (); }
- }
- public override string this [string localName, string namespaceName] {
- [MonoTODO]
- get { throw new NotImplementedException (); }
- }
- int IXmlLineInfo.LineNumber {
- [MonoTODO]
- get { throw new NotImplementedException (); }
- }
- int IXmlLineInfo.LinePosition {
- [MonoTODO]
- get { throw new NotImplementedException (); }
- }
- public override string LocalName {
- [MonoTODO]
- get { throw new NotImplementedException (); }
- }
- public override string Name {
- [MonoTODO]
- get { throw new NotImplementedException (); }
- }
- public bool Namespaces {
- get { return namespaces; }
- set { namespaces = value; }
- }
- public override string NamespaceURI {
- [MonoTODO]
- get { throw new NotImplementedException (); }
- }
- public override XmlNameTable NameTable {
- [MonoTODO]
- get { throw new NotImplementedException (); }
- }
- public override XmlNodeType NodeType {
- [MonoTODO]
- get { throw new NotImplementedException (); }
- }
- public override string Prefix {
- [MonoTODO]
- get { throw new NotImplementedException (); }
- }
- public override char QuoteChar {
- [MonoTODO]
- get { throw new NotImplementedException (); }
- }
- public XmlReader Reader {
- get { return reader; }
- }
- public override ReadState ReadState {
- [MonoTODO]
- get { throw new NotImplementedException (); }
- }
- public XmlSchemaCollection Schemas {
- [MonoTODO]
- get { throw new NotImplementedException (); }
- }
- public object SchemaType {
- [MonoTODO]
- get { throw new NotImplementedException (); }
- }
- public ValidationType ValidationType {
- get { return validationType; }
- [MonoTODO ("Need to check for exception.")]
- set { validationType = value; }
- }
- public override string Value {
- [MonoTODO]
- get { throw new NotImplementedException (); }
- }
- public override string XmlLang {
- [MonoTODO]
- get { throw new NotImplementedException (); }
- }
- public XmlResolver XmlResolver {
- [MonoTODO]
- set { throw new NotImplementedException (); }
- }
- public override XmlSpace XmlSpace {
- [MonoTODO]
- get { throw new NotImplementedException (); }
- }
- #endregion // Properties
- #region Methods
- [MonoTODO]
- public override void Close ()
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public override string GetAttribute (int i)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public override string GetAttribute (string name)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public override string GetAttribute (string localName, string namespaceName)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- bool IXmlLineInfo.HasLineInfo ()
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public override string LookupNamespace (string prefix)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public override void MoveToAttribute (int i)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public override bool MoveToAttribute (string name)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public override bool MoveToAttribute (string localName, string namespaceName)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public override bool MoveToElement ()
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public override bool MoveToFirstAttribute ()
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public override bool MoveToNextAttribute ()
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public override bool Read ()
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public override bool ReadAttributeValue ()
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public override string ReadInnerXml ()
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public override string ReadOuterXml ()
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public override string ReadString ()
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public object ReadTypedValue ()
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public override void ResolveEntity ()
- {
- throw new NotImplementedException ();
- }
- #endregion // Methods
- #region Events and Delegates
- public event ValidationEventHandler ValidationEventHandler;
- #endregion // Events and Delegates
- }
- }
|