1
+ /*
2
+ * Licensed under the Apache License, Version 2.0 (the "License");
3
+ * you may not use this file except in compliance with the License.
4
+ * You may obtain a copy of the License at
5
+ *
6
+ * http://www.apache.org/licenses/LICENSE-2.0
7
+ *
8
+ * Unless required by applicable law or agreed to in writing, software
9
+ * distributed under the License is distributed on an "AS IS" BASIS,
10
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ * See the License for the specific language governing permissions and
12
+ * limitations under the License.
13
+ */
14
+
15
+ namespace org.accordproject.commonmark
16
+
17
+ /**
18
+ * A model for a commonmark format markdown file
19
+ */
20
+
21
+ abstract concept Node {
22
+ o String text optional
23
+ o Node[] nodes optional
24
+ o Integer startLine optional
25
+ o Integer endLine optional
26
+ }
27
+
28
+ abstract concept Root extends Node {
29
+ }
30
+
31
+ abstract concept Child extends Node {
32
+ }
33
+
34
+ concept Text extends Child {
35
+ }
36
+
37
+ concept Attribute {
38
+ o String name
39
+ o String value
40
+ }
41
+ concept TagInfo {
42
+ o String tagName
43
+ o String attributeString
44
+ o Attribute[] attributes
45
+ o String content
46
+ o Boolean closed
47
+ }
48
+
49
+ concept CodeBlock extends Child {
50
+ o String info optional
51
+ o TagInfo tag optional
52
+ }
53
+
54
+ concept Code extends Child {
55
+ o String info optional
56
+ }
57
+
58
+ concept HtmlInline extends Child {
59
+ o TagInfo tag optional
60
+ }
61
+
62
+ concept HtmlBlock extends Child {
63
+ o TagInfo tag optional
64
+ }
65
+
66
+ concept Emph extends Child {
67
+ }
68
+
69
+ concept Strong extends Child {
70
+ }
71
+
72
+ concept BlockQuote extends Child {
73
+ }
74
+
75
+ concept Heading extends Child {
76
+ o String level
77
+ }
78
+
79
+ concept ThematicBreak extends Child {
80
+ }
81
+
82
+ concept Softbreak extends Child {
83
+ }
84
+
85
+ concept Linebreak extends Child {
86
+ }
87
+
88
+ concept Link extends Child {
89
+ o String destination
90
+ o String title
91
+ }
92
+
93
+ concept Image extends Child {
94
+ o String destination
95
+ o String title
96
+ }
97
+
98
+ concept Paragraph extends Child {
99
+ }
100
+
101
+ concept List extends Child {
102
+ o String type
103
+ o String start optional
104
+ o String tight
105
+ o String delimiter optional
106
+ }
107
+
108
+ concept Item extends Child {
109
+ }
110
+
111
+ concept Document extends Root {
112
+ o String xmlns
113
+ }
114
+
115
+ concept Table extends Child{
116
+ }
117
+
118
+ concept TableHead extends Child{
119
+ }
120
+
121
+ concept TableBody extends Child{
122
+ }
123
+
124
+ concept TableRow extends Child{
125
+ }
126
+
127
+ concept HeaderCell extends Child{
128
+ }
129
+
130
+ concept TableCell extends Child{
131
+ }
0 commit comments