| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454 |
- //
- // System.Xml.Serialization.XmlSerializationReader.cs
- //
- // Author:
- // Tim Coleman ([email protected])
- //
- // Copyright (C) Tim Coleman, 2002
- //
- using System;
- using System.Collections;
- using System.Xml;
- namespace System.Xml.Serialization {
- public abstract class XmlSerializationReader {
- #region Fields
- XmlDocument document;
- XmlReader reader;
- #endregion
- [MonoTODO]
- protected XmlSerializationReader ()
- {
- throw new NotImplementedException ();
- }
- protected XmlDocument Document {
- get { return document; }
- }
- protected XmlReader Reader {
- get { return reader; }
- }
- #region Methods
- [MonoTODO ("Implement")]
- protected void AddFixup (XmlSerializationReader.CollectionFixup fixup)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected void AddFixup (XmlSerializationReader.Fixup fixup)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected void AddReadCallback (string name, string ns, Type type, XmlSerializationReadCallback read)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected void AddTarget (string id, object o)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected Exception CreateAbstractTypeException (string name, string ns)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected Exception CreateInvalidCastException (string name, object value)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected Exception CreateReadOnlyCollectionException (string name)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected Exception CreateUnknownConstantException (string value, Type enumType)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected Exception CreateUnknownNodeException ()
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected Exception CreateUnknownTypeException (XmlQualifiedName type)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected Array EnsureArrayIndex (Array a, int index, Type elementType)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected void FixupArrayRefs (object fixup)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected int GetArrayLength (string name, string ns)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected bool GetNullAttr ()
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected object GetTarget (string id)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected XmlQualifiedName GetXsiType ()
- {
- throw new NotImplementedException ();
- }
- protected abstract void InitCallbacks ();
- protected abstract void InitIDs ();
- [MonoTODO ("Implement")]
- protected bool IsXmlnsAttribute (string name)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected void ParseWsdlArrayType (XmlAttribute attr)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected XmlQualifiedName ReadElementQualifiedName ()
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected void ReadEndElement ()
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected bool ReadNull ()
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected XmlQualifiedName ReadNullableQualifiedName ()
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected string ReadNullableString ()
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected bool ReadReference (out string fixupReference)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected object ReadReferencedElement ()
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected object ReadReferencedElement (string name, string ns)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected void ReadReferencedElements ()
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected object ReadReferencingElement (out string fixupReference)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected object ReadReferencingElement (string name, string ns, out string fixupReference)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected object ReadReferencingElement (string name, string ns, bool elementCanBeType, out string fixupReference)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected IXmlSerializable ReadSerializable (IXmlSerializable serializable)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected string ReadString (string value)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected object ReadTypedPrimitive (XmlQualifiedName type)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected XmlNode ReadXmlNode (bool wrapped)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected void Referenced (object o)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected Array ShrinkArray (Array a, int length, Type elementType, bool isNullable)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected byte[] ToByteArrayBase64 (bool isNull)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected static byte[] ToByteArrayBase64 (string value)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected byte[] ToByteArrayHex (bool isNull)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected static byte[] ToByteArrayHex (string value)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected static char ToChar (string value)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected static DateTime ToDate (string value)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected static DateTime ToDateTime (string value)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected static long ToEnum (string value, Hashtable h, string typeName)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected static DateTime ToTime (string value)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected static string ToXmlName (string value)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected static string ToXmlNCName (string value)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected static string ToXmlNmToken (string value)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected static string ToXmlNmTokens (string value)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected XmlQualifiedName ToXmlQualifiedName (string value)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected void UnknownAttribute (object o, XmlAttribute attr)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected void UnknownElement (object o, XmlElement elem)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected void UnknownNode (object o)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO ("Implement")]
- protected void UnreferencedObject (string id, object o)
- {
- throw new NotImplementedException ();
- }
- #endregion // Methods
- protected class CollectionFixup {
-
- #region Fields
- XmlSerializationCollectionFixupCallback callback;
- object collection;
- object collectionItems;
- #endregion // Fields
- #region Constructors
- [MonoTODO]
- public CollectionFixup (object collection, XmlSerializationCollectionFixupCallback callback, object collectionItems)
- {
- this.callback = callback;
- this.collection = collection;
- this.collectionItems = collectionItems;
- }
- #endregion // Constructors
- #region Properties
- public XmlSerializationCollectionFixupCallback Callback {
- get { return callback; }
- }
- public object Collection {
- get { return collection; }
- }
- public object CollectionItems {
- get { return collectionItems; }
- }
- #endregion // Properties
- }
- protected class Fixup {
- #region Fields
- object source;
- string[] ids;
- XmlSerializationFixupCallback callback;
- #endregion // Fields
- #region Constructors
- [MonoTODO]
- public Fixup (object o, XmlSerializationFixupCallback callback, int count)
- {
- this.callback = callback;
- }
- [MonoTODO]
- public Fixup (object o, XmlSerializationFixupCallback callback, string[] ids)
- {
- this.callback = callback;
- }
- #endregion // Constructors
- #region Properties
- public XmlSerializationFixupCallback Callback {
- get { return callback; }
- }
- public string[] Ids {
- get { return ids; }
- }
- public object Source {
- get { return source; }
- set { source = value; }
- }
- #endregion // Properties
- }
- }
- }
|