annotate Implab/Formats/JSON/JSONXmlReaderOptions.cs @ 195:ea485487a424 v2

minor changes
author cin
date Wed, 04 May 2016 12:28:08 +0300
parents c32688129f14
children 8d5de4eb9c2c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
180
c32688129f14 refactoring complete, JSONParser rewritten
cin
parents: 163
diff changeset
1 
163
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
2 using System.Xml;
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
3
180
c32688129f14 refactoring complete, JSONParser rewritten
cin
parents: 163
diff changeset
4 namespace Implab.Formats.JSON {
163
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
5 /// <summary>
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
6 /// Набор необязательных параметров для <see cref="JSONXmlReader"/>, позволяющий управлять процессом
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
7 /// интерпретации <c>JSON</c> документа.
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
8 /// </summary>
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
9 public class JSONXmlReaderOptions {
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
10 /// <summary>
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
11 /// Пространство имен в котором будут располагаться читаемые элементы документа
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
12 /// </summary>
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
13 public string NamespaceURI {
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
14 get;
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
15 set;
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
16 }
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
17
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
18 /// <summary>
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
19 /// Интерпретировать массивы как множественные элементы (убирает один уровень вложенности), иначе массив
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
20 /// представляется в виде узла, дочерними элементами которого являются элементы массива, имена дочерних элементов
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
21 /// определяются свойством <see cref="ArrayItemName"/>. По умолчанию <c>false</c>.
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
22 /// </summary>
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
23 public bool FlattenArrays {
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
24 get;
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
25 set;
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
26 }
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
27
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
28 /// <summary>
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
29 /// Префикс, для узлов документа
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
30 /// </summary>
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
31 public string NodesPrefix {
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
32 get;
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
33 set;
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
34 }
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
35
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
36 /// <summary>
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
37 /// Имя корневого элемента в xml документе
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
38 /// </summary>
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
39 public string RootName {
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
40 get;
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
41 set;
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
42 }
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
43
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
44 /// <summary>
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
45 /// Имя элемента для массивов, если не включена опция <see cref="FlattenArrays"/>.
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
46 /// По умолчанию <c>item</c>.
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
47 /// </summary>
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
48 public string ArrayItemName {
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
49 get;
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
50 set;
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
51 }
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
52
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
53 /// <summary>
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
54 /// Таблица атомизированных строк для построения документа.
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
55 /// </summary>
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
56 public XmlNameTable NameTable {
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
57 get;
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
58 set;
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
59 }
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
60
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
61 }
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
62 }