Mercurial > pub > ImplabNet
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 |
rev | line source |
---|---|
60 | 1 using System; |
2 using System.Collections.Generic; | |
3 using System.Linq; | |
4 using System.Text; | |
5 using System.Xml; | |
6 | |
7 namespace Implab.JSON { | |
8 /// <summary> | |
9 /// Набор необязательных параметров для <see cref="JSONXmlReader"/>, позволяющий управлять процессом | |
10 /// интерпретации <c>JSON</c> документа. | |
11 /// </summary> | |
12 public class JSONXmlReaderOptions { | |
13 /// <summary> | |
14 /// Пространство имен в котором будут располагаться читаемые элементы документа | |
15 /// </summary> | |
16 public string NamespaceURI { | |
17 get; | |
18 set; | |
19 } | |
20 | |
21 /// <summary> | |
22 /// Интерпретировать массивы как множественные элементы (убирает один уровень вложенности) | |
23 /// </summary> | |
24 public bool FlattenArrays { | |
25 get; | |
26 set; | |
27 } | |
28 | |
29 /// <summary> | |
30 /// Префикс, для узлов документа | |
31 /// </summary> | |
32 public string NodesPrefix { | |
33 get; | |
34 set; | |
35 } | |
36 | |
37 /// <summary> | |
38 /// Имя корневого элемента в xml документе | |
39 /// </summary> | |
40 public string RootName { | |
41 get; | |
42 set; | |
43 } | |
44 | |
45 /// <summary> | |
46 /// Имя элемента для массивов, если не включена опция <see cref="FlattenArrays"/>. | |
47 /// </summary> | |
48 public string ArrayItemName { | |
49 get; | |
50 set; | |
51 } | |
52 | |
53 /// <summary> | |
54 /// Таблица атомизированных строк для построения документа. | |
55 /// </summary> | |
56 public XmlNameTable NameTable { | |
57 get; | |
58 set; | |
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 | 68 } |
69 } |