annotate Implab/Formats/JSON/JSONXmlReaderOptions.cs @ 166:b84cdbe82e7f ref20160224

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