Rev 1830 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1830 | Rev 1848 | ||
---|---|---|---|
Line 4... | Line 4... | ||
4 | import java.util.List; |
4 | import java.util.List; |
5 | 5 | ||
6 | /** |
6 | /** |
7 | * Created by jorgemachado on 11/10/17. |
7 | * Created by jorgemachado on 11/10/17. |
8 | */ |
8 | */ |
9 | public class DocumentSection |
9 | public class DocumentSection extends SectionContainer |
10 | { |
10 | { |
11 | 1.5.0/docs/api/java/lang/String.html">String title = ""; |
11 | 1.5.0/docs/api/java/lang/String.html">String title = ""; |
12 | List<DocumentSection> subSections = new ArrayList<DocumentSection>(); |
- | |
- | 12 | ||
13 | List<DocComponent> components = new ArrayList<DocComponent>(); |
13 | List<DocComponent> components = new ArrayList<DocComponent>(); |
14 | 14 | ||
15 | public DocumentSection() { |
15 | public DocumentSection() { |
16 | } |
16 | } |
17 | 17 | ||
Line 25... | Line 25... | ||
25 | 25 | ||
26 | public void setTitle(1.5.0/docs/api/java/lang/String.html">String title) { |
26 | public void setTitle(1.5.0/docs/api/java/lang/String.html">String title) { |
27 | this.title = title; |
27 | this.title = title; |
28 | } |
28 | } |
29 | 29 | ||
30 | public List<DocumentSection> getSubSections() { |
- | |
31 | return subSections; |
- | |
32 | } |
- | |
33 | - | ||
34 | public void setSubSections(List<DocumentSection> subSections) { |
- | |
35 | this.subSections = subSections; |
- | |
36 | } |
- | |
37 | 30 | ||
38 | public List<DocComponent> getComponents() { |
31 | public List<DocComponent> getComponents() { |
39 | return components; |
32 | return components; |
40 | } |
33 | } |
41 | 34 | ||
42 | public void setComponents(List<DocComponent> components) { |
35 | public void setComponents(List<DocComponent> components) { |
43 | this.components = components; |
36 | this.components = components; |
44 | } |
37 | } |
45 | 38 | ||
46 | public DocumentSection findSubSection(1.5.0/docs/api/java/lang/Class.html">Class sectionClass) |
- | |
47 | { |
39 | |
48 | if(getSubSections() != null) |
- | |
49 | for(DocumentSection section: getSubSections()) |
- | |
50 | { |
- | |
51 | if(section.getClass().equals(sectionClass)) |
- | |
52 | { |
- | |
53 | return section; |
- | |
54 | } |
- | |
55 | } |
- | |
56 | return null; |
- | |
57 | } |
- | |
58 | 40 | ||
59 | public DocComponent findDocComponent(1.5.0/docs/api/java/lang/Class.html">Class compClass) |
41 | public DocComponent findDocComponent(1.5.0/docs/api/java/lang/Class.html">Class compClass) |
60 | { |
42 | { |
61 | if(getComponents() != null) |
43 | if(getComponents() != null) |
62 | for(DocComponent comp: getComponents()) |
44 | for(DocComponent comp: getComponents()) |