annotate Implab/JSON/JSONXmlReaderOptions.cs @ 63:908b4f340c69

fixed: JSONXmlReader.Value returns invalid textual representation for numbers.
author cin
date Mon, 23 Jun 2014 17:34:40 +0400
parents 10c7337d29e7
children a809805210d1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
60
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
1 using System;
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
2 using System.Collections.Generic;
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
3 using System.Linq;
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
4 using System.Text;
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
5 using System.Xml;
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
6
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
7 namespace Implab.JSON {
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
8 /// <summary>
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
9 /// Набор необязательных параметров для <see cref="JSONXmlReader"/>, позволяющий управлять процессом
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
10 /// интерпретации <c>JSON</c> документа.
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
11 /// </summary>
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
12 public class JSONXmlReaderOptions {
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
13 /// <summary>
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
14 /// Пространство имен в котором будут располагаться читаемые элементы документа
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
15 /// </summary>
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
16 public string NamespaceURI {
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
17 get;
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
18 set;
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
19 }
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
20
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
21 /// <summary>
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
22 /// Интерпретировать массивы как множественные элементы (убирает один уровень вложенности)
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
23 /// </summary>
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
24 public bool FlattenArrays {
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
25 get;
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
26 set;
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
27 }
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
28
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
29 /// <summary>
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
30 /// Префикс, для узлов документа
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
31 /// </summary>
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
32 public string NodesPrefix {
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
33 get;
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
34 set;
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
35 }
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
36
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
37 /// <summary>
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
38 /// Имя корневого элемента в xml документе
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
39 /// </summary>
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
40 public string RootName {
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
41 get;
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
42 set;
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
43 }
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
44
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
45 /// <summary>
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
46 /// Имя элемента для массивов, если не включена опция <see cref="FlattenArrays"/>.
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
47 /// </summary>
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
48 public string ArrayItemName {
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
49 get;
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
50 set;
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
51 }
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
52
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
53 /// <summary>
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
54 /// Таблица атомизированных строк для построения документа.
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
55 /// </summary>
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
56 public XmlNameTable NameTable {
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
57 get;
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
58 set;
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
59 }
63
908b4f340c69 fixed: JSONXmlReader.Value returns invalid textual representation for numbers.
cin
parents: 60
diff changeset
60
908b4f340c69 fixed: JSONXmlReader.Value returns invalid textual representation for numbers.
cin
parents: 60
diff changeset
61 /// <summary>
908b4f340c69 fixed: JSONXmlReader.Value returns invalid textual representation for numbers.
cin
parents: 60
diff changeset
62 /// Флаг, означающий, что неужно освободить парсер по окончанию работы.
908b4f340c69 fixed: JSONXmlReader.Value returns invalid textual representation for numbers.
cin
parents: 60
diff changeset
63 /// </summary>
908b4f340c69 fixed: JSONXmlReader.Value returns invalid textual representation for numbers.
cin
parents: 60
diff changeset
64 public bool DisposeParser {
908b4f340c69 fixed: JSONXmlReader.Value returns invalid textual representation for numbers.
cin
parents: 60
diff changeset
65 get;
908b4f340c69 fixed: JSONXmlReader.Value returns invalid textual representation for numbers.
cin
parents: 60
diff changeset
66 set;
908b4f340c69 fixed: JSONXmlReader.Value returns invalid textual representation for numbers.
cin
parents: 60
diff changeset
67 }
60
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
68 }
10c7337d29e7 +JSONXmlReaderOptions
cin
parents:
diff changeset
69 }