-
Notifications
You must be signed in to change notification settings - Fork 173
/
ContentPart.java
77 lines (61 loc) · 1.38 KB
/
ContentPart.java
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
package org.asciidoctor;
import java.util.List;
import java.util.Map;
public class ContentPart {
private String id;
private int level;
private String context;
private String style;
private String role;
private String title;
private Map<String, Object> attributes;
private String content;
private List<ContentPart> parts;
private ContentPart() {
super();
}
public String getId() {
return id;
}
public int getLevel() {
return level;
}
public String getContext() {
return context;
}
public String getStyle() {
return style;
}
public String getRole() {
return role;
}
public String getTitle() {
return title;
}
public Map<String, Object> getAttributes() {
return attributes;
}
public String getContent() {
return content;
}
public List<ContentPart> getParts() {
return parts;
}
public void setParts(List<ContentPart> parts) {
this.parts = parts;
}
public static ContentPart createContentPart(String id, int level,String context, String title,
String style, String role, Map<String, Object> attributes,
String textContent) {
ContentPart contentPart = new ContentPart();
contentPart.level=level;
contentPart.id=id;
contentPart.context=context;
contentPart.style=style;
contentPart.role=role;
contentPart.title=title;
contentPart.attributes=attributes;
contentPart.content=textContent;
return contentPart;
}
}