-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathNote.cs
More file actions
149 lines (141 loc) · 3.94 KB
/
Copy pathNote.cs
File metadata and controls
149 lines (141 loc) · 3.94 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
using Gedcomx.Model.Rt;
// <auto-generated>
//
//
// Generated by <a href="http://enunciate.codehaus.org">Enunciate</a>.
// </auto-generated>
using System;
namespace Gx.Common
{
/// <remarks>
/// A note about a genealogical resource (e.g. conclusion or source).
/// </remarks>
/// <summary>
/// A note about a genealogical resource (e.g. conclusion or source).
/// </summary>
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://gedcomx.org/v1/", TypeName = "Note")]
[System.Xml.Serialization.XmlRootAttribute(Namespace = "http://gedcomx.org/v1/", ElementName = "note")]
public partial class Note : Gx.Links.HypermediaEnabledData, IAttributable
{
private string _lang;
private string _subject;
private string _text;
private Gx.Common.Attribution _attribution;
/// <summary>
/// The language of the note.
/// </summary>
[System.Xml.Serialization.XmlAttributeAttribute(AttributeName = "lang", Namespace = "http://www.w3.org/XML/1998/namespace")]
[Newtonsoft.Json.JsonProperty("lang")]
public string Lang
{
get
{
return this._lang;
}
set
{
this._lang = value;
}
}
/// <summary>
/// The subject of the note.
/// </summary>
[System.Xml.Serialization.XmlElementAttribute(ElementName = "subject", Namespace = "http://gedcomx.org/v1/")]
[Newtonsoft.Json.JsonProperty("subject")]
public string Subject
{
get
{
return this._subject;
}
set
{
this._subject = value;
}
}
/// <summary>
/// The text of the note.
/// </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;
}
}
/// <summary>
/// Attribution metadata for a note.
/// </summary>
[System.Xml.Serialization.XmlElementAttribute(ElementName = "attribution", Namespace = "http://gedcomx.org/v1/")]
[Newtonsoft.Json.JsonProperty("attribution")]
public Gx.Common.Attribution Attribution
{
get
{
return this._attribution;
}
set
{
this._attribution = value;
}
}
/**
* Accept a visitor.
*
* @param visitor The visitor.
*/
public void Accept(IGedcomxModelVisitor visitor)
{
visitor.VisitNote(this);
}
/**
* Build up this note with a locale.
*
* @param lang The locale.
*/
public Note SetLang(String lang)
{
this.Lang = lang;
return this;
}
/**
* Build up this note with a subject.
*
* @param text The subject.
* @return this.
*/
public Note SetSubject(String text)
{
this.Subject = text;
return this;
}
/**
* Build up this note with some text.
*
* @param text The text.
*/
public Note SetText(String text)
{
this.Text = text;
return this;
}
/**
* Build up this note with attribution.
*
* @param attribution The attribution.
* @return this.
*/
public Note SetAttribution(Attribution attribution)
{
this.Attribution = attribution;
return this;
}
}
}