-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathDocument.cs
More file actions
206 lines (192 loc) · 5.63 KB
/
Copy pathDocument.cs
File metadata and controls
206 lines (192 loc) · 5.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
// <auto-generated>
//
//
// Generated by <a href="http://enunciate.codehaus.org">Enunciate</a>.
// </auto-generated>
using System;
using Gedcomx.Model.Rt;
using Gedcomx.Model.Util;
using Gx.Common;
using Gx.Types;
namespace Gx.Conclusion
{
/// <remarks>
/// An abstract document that contains derived (conclusionary) text -- for example, a transcription or researcher analysis.
/// </remarks>
/// <summary>
/// An abstract document that contains derived (conclusionary) text -- for example, a transcription or researcher analysis.
/// </summary>
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://gedcomx.org/v1/", TypeName = "Document")]
[System.Xml.Serialization.XmlRootAttribute(Namespace = "http://gedcomx.org/v1/", ElementName = "document")]
[Newtonsoft.Json.JsonObject("documents")]
public partial class Document : Gx.Conclusion.Conclusion, IAttributable
{
private string _textType;
private bool? _extracted;
private bool _extractedSpecified;
private string _type;
private string _text;
/// <summary>
/// The text type of the document.
/// </summary>
[System.Xml.Serialization.XmlAttributeAttribute(AttributeName = "textType")]
[Newtonsoft.Json.JsonProperty("textType")]
public string TextType
{
get
{
return this._textType;
}
set
{
this._textType = value;
}
}
/// <summary>
/// Whether this document has been identified as "extracted".
/// </summary>
[System.Xml.Serialization.XmlAttributeAttribute(AttributeName = "extracted")]
[Newtonsoft.Json.JsonProperty("extracted")]
public bool Extracted
{
get
{
return this._extracted.GetValueOrDefault();
}
set
{
this._extracted = value;
this._extractedSpecified = true;
}
}
/// <summary>
/// Property for the XML serializer indicating whether the "Extracted" property should be included in the output.
/// </summary>
[System.Xml.Serialization.XmlIgnoreAttribute]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[Newtonsoft.Json.JsonIgnore]
public bool ExtractedSpecified
{
get
{
return this._extractedSpecified;
}
set
{
this._extractedSpecified = value;
}
}
/// <summary>
/// The type of the document.
/// </summary>
[System.Xml.Serialization.XmlAttributeAttribute(AttributeName = "type")]
[Newtonsoft.Json.JsonProperty("type")]
public string Type
{
get
{
return this._type;
}
set
{
this._type = value;
}
}
/// <summary>
/// Convenience property for treating Type as an enum. See Gx.Types.DocumentTypeQNameUtil for details on getter/setter functionality.
/// </summary>
[System.Xml.Serialization.XmlIgnoreAttribute]
[Newtonsoft.Json.JsonIgnore]
public Gx.Types.DocumentType KnownType
{
get
{
return XmlQNameEnumUtil.GetEnumValue<DocumentType>(this._type);
}
set
{
this._type = XmlQNameEnumUtil.GetNameValue(value);
}
}
/// <summary>
/// The document text.
/// </summary>
[System.Xml.Serialization.XmlElementAttribute(ElementName = "text", Namespace = "http://gedcomx.org/v1/")]
[Newtonsoft.Json.JsonProperty("text")]
public string Text
{
get
{
return this._text;
}
set
{
this._text = value;
}
}
/**
* Accept a visitor.
*
* @param visitor The visitor.
*/
public void Accept(IGedcomxModelVisitor visitor)
{
visitor.VisitDocument(this);
}
/**
* Build up this document with an extracted flag.
* @param extracted The extracted flag.
* @return this.
*/
public Document SetExtracted(Boolean extracted)
{
Extracted = extracted;
return this;
}
/**
* Build up this document with a type.
*
* @param type The type.
* @return this.
*/
public Document SetType(String type)
{
Type = type;
return this;
}
/**
* Build up this document with a type.
*
* @param type The type.
* @return this.
*/
public Document SetType(DocumentType type)
{
KnownType = type;
return this;
}
/**
* Build up this document with a text type.
*
* @param textType The text type.
* @return this.
*/
public Document SetTextType(String textType)
{
TextType = textType;
return this;
}
/**
* Build up this document with some text.
*
* @param text The text.
* @return this.
*/
public Document SetText(String text)
{
Text = text;
return this;
}
}
}