FormatterEnums

来源:互联网 发布:万方数据库免费 编辑:程序博客网 时间:2024/04/28 16:39
  1. // ==++==
  2. // 
  3. //   
  4. //    Copyright (c) 2002 Microsoft Corporation.  All rights reserved.
  5. //   
  6. //    The use and distribution terms for this software are contained in the file
  7. //    named license.txt, which can be found in the root of this distribution.
  8. //    By using this software in any fashion, you are agreeing to be bound by the
  9. //    terms of this license.
  10. //   
  11. //    You must not remove this notice, or any other, from this software.
  12. //   
  13. // 
  14. // ==--==
  15. //============================================================
  16. //
  17. // Class: FormatterEnums
  18. // Purpose: Soap XML Formatter Enums
  19. //
  20. // Date:  August 23, 1999
  21. //
  22. //============================================================
  23. namespace System.Runtime.Serialization.Formatters.Soap {
  24.     using System.Threading;
  25.     using System.Runtime.Remoting;
  26.     using System.Runtime.Serialization;
  27.     using System;
  28.     // Enums are for internal use by the XML and Binary Serializers
  29.     // They will eventually be signed to restrict their use
  30.     // Formatter Enums
  31.     [Serializable]
  32.     internal enum InternalSerializerTypeE
  33.     {
  34.         Soap = 1,
  35.         Binary = 2,
  36.     }
  37.     // Writer Enums
  38.     [Serializable]
  39.     internal enum InternalElementTypeE
  40.     {
  41.         ObjectBegin = 0,
  42.         ObjectEnd = 1,
  43.         Member = 2,
  44.     }
  45.     // ParseRecord Enums
  46.     [Serializable]
  47.     internal enum InternalParseTypeE
  48.     {
  49.         Empty = 0,
  50.         SerializedStreamHeader = 1,
  51.         Object = 2,
  52.         Member = 3,
  53.         ObjectEnd = 4,
  54.         MemberEnd = 5,
  55.         Headers = 6,
  56.         HeadersEnd = 7,
  57.         SerializedStreamHeaderEnd = 8,
  58.         Envelope = 9,
  59.         EnvelopeEnd = 10,
  60.         Body = 11,
  61.         BodyEnd = 12,
  62.     }
  63.     [Serializable]
  64.     internal enum InternalObjectTypeE
  65.     {
  66.         Empty = 0,
  67.         Object = 1,
  68.         Array = 2,
  69.     }
  70.     [Serializable]
  71.     internal enum InternalObjectPositionE
  72.     {
  73.         Empty = 0,
  74.         Top = 1,
  75.         Child = 2,
  76.         Headers = 3,
  77.     }
  78.     [Serializable]
  79.     internal enum InternalArrayTypeE
  80.     {
  81.         Empty = 0,
  82.         Single = 1,
  83.         Jagged = 2,
  84.         Rectangular = 3,
  85.         Base64 = 4,
  86.     }
  87.     [Serializable]
  88.     internal enum InternalMemberTypeE
  89.     {
  90.         Empty = 0,
  91.         Header = 1,
  92.         Field = 2,
  93.         Item = 3,
  94.     }
  95.     [Serializable]
  96.     internal enum InternalMemberValueE
  97.     {
  98.         Empty = 0,
  99.         InlineValue = 1,
  100.         Nested = 2,
  101.         Reference = 3,
  102.         Null = 4,
  103.     }
  104.     // XML Parse Enum
  105.     [Serializable]
  106.     internal enum InternalParseStateE
  107.     {
  108.         Initial = 0,
  109.         Object = 1,
  110.         Member = 2,
  111.         MemberChild = 3,
  112.     }
  113.     // Data Type Enums
  114.     [Serializable]
  115.     internal enum InternalPrimitiveTypeE
  116.     {
  117.         Invalid = 0,
  118.         Boolean = 1,
  119.         Byte = 2,
  120.         Char = 3,
  121.         Currency = 4,
  122.         Decimal = 5,
  123.         Double = 6,
  124.         Int16 = 7,
  125.         Int32 = 8,
  126.         Int64 = 9,
  127.         SByte = 10,
  128.         Single = 11,
  129.         TimeSpan = 12,
  130.         DateTime = 13,
  131.         UInt16 = 14,
  132.         UInt32 = 15,
  133.         UInt64 = 16,
  134.         Time = 17,
  135.         Date = 18,
  136.         YearMonth =19,
  137.         Year = 20,
  138.         MonthDay = 21,
  139.         Day = 22,
  140.         Month = 23,
  141.         HexBinary = 24,
  142.         Base64Binary = 25,
  143.         Integer = 26,
  144.         PositiveInteger = 27,
  145.         NonPositiveInteger = 28,
  146.         NonNegativeInteger = 29,
  147.         NegativeInteger = 30,
  148.         AnyUri = 31,
  149.         QName = 32,
  150.         Notation = 33,
  151.         NormalizedString = 34,
  152.         Token = 35,
  153.         Language = 36,
  154.         Name = 37,
  155.         Idrefs = 38,
  156.         Entities = 39,
  157.         Nmtoken = 40,
  158.         Nmtokens = 41,
  159.         NcName = 42,
  160.         Id = 43,
  161.         Idref = 44,
  162.         Entity = 45,
  163.     }
  164.     // ValueType Fixup Enum
  165.     [Serializable]
  166.     enum ValueFixupEnum
  167.     {
  168.         Empty = 0,
  169.         Array = 1,
  170.         Header = 2,
  171.         Member = 3,
  172.     }
  173.     // name space
  174.     [Serializable]
  175.     internal enum InternalNameSpaceE
  176.     {
  177.         None = 0,
  178.         Soap = 1,
  179.         XdrPrimitive = 2,
  180.         XdrString = 3,
  181.         UrtSystem = 4,
  182.         UrtUser = 5,
  183.         UserNameSpace = 6,
  184.         MemberName = 7,
  185.         Interop = 8,
  186.         CallElement = 9
  187.     }
  188.     // These don't represent actual Attribute types. They represent the intent
  189.     // of various SoapXXXAttributes that may be applied to a type.
  190.     [Serializable]
  191.     internal enum SoapAttributeType
  192.     {
  193.         None = 0x0,
  194.         Embedded = 0x1,
  195.         XmlElement = 0x2,
  196.         XmlAttribute = 0x4,
  197.         XmlType = 0x8
  198.     }
  199.     [Serializable]
  200.     internal enum XsdVersion
  201.     {
  202.         V1999 = 0,
  203.         V2000 = 1,
  204.         V2001 = 2,
  205.     }
  206. }