1 | package org.etsi.t3d.config; |
---|
2 | |
---|
3 | import org.etsi.common.configuration.ConfigurationProfile; |
---|
4 | |
---|
5 | public class DocumentationProfile extends ConfigurationProfile { |
---|
6 | |
---|
7 | private CommentTagsConfiguration commentTagsConfiguration = new CommentTagsConfiguration(); |
---|
8 | |
---|
9 | private boolean includeConstructBody = true; |
---|
10 | private boolean hideConstructBody = false; |
---|
11 | private boolean showOriginalT3DocTags = false; |
---|
12 | private boolean checkUndocumentedParameters = true; |
---|
13 | private boolean checkConsistentTagUsage = true; |
---|
14 | private boolean checkIdenticalDescriptionTags = true; |
---|
15 | private boolean checkCyclicImports = true; |
---|
16 | |
---|
17 | private String cssFile = System.getenv("T3D_HOME")+"/css/doc.css"; |
---|
18 | private String jsFile = System.getenv("T3D_HOME")+"/js/doc.js"; |
---|
19 | private String xsltFileHTML = System.getenv("T3D_HOME")+"/xslt/html.xsl"; |
---|
20 | private String xsltFileImport = System.getenv("T3D_HOME")+"/xslt/html_import.xsl"; |
---|
21 | |
---|
22 | private String outputDirectory = "DOCUMENTATION"; |
---|
23 | |
---|
24 | public String getJsFile() { |
---|
25 | return jsFile; |
---|
26 | } |
---|
27 | |
---|
28 | public void setJsFile(String jsFile) { |
---|
29 | this.jsFile = jsFile; |
---|
30 | } |
---|
31 | |
---|
32 | public String getOutputDirectory() { |
---|
33 | return outputDirectory; |
---|
34 | } |
---|
35 | |
---|
36 | public void setOutputDirectory(String outputDirectory) { |
---|
37 | this.outputDirectory = outputDirectory; |
---|
38 | } |
---|
39 | |
---|
40 | public void setCssFile(String cssFile) { |
---|
41 | this.cssFile = cssFile; |
---|
42 | } |
---|
43 | |
---|
44 | public String getCssFile() { |
---|
45 | return cssFile; |
---|
46 | } |
---|
47 | |
---|
48 | public void setXsltFileHTML(String xsltFileHTML) { |
---|
49 | this.xsltFileHTML = xsltFileHTML; |
---|
50 | } |
---|
51 | |
---|
52 | public String getXsltFileHTML() { |
---|
53 | return xsltFileHTML; |
---|
54 | } |
---|
55 | |
---|
56 | public void setIncludeConstructBody(boolean includeConstructBody) { |
---|
57 | this.includeConstructBody = includeConstructBody; |
---|
58 | } |
---|
59 | |
---|
60 | public boolean isIncludeConstructBody() { |
---|
61 | return includeConstructBody; |
---|
62 | } |
---|
63 | |
---|
64 | public boolean isHideConstructBody() { |
---|
65 | return hideConstructBody && includeConstructBody; |
---|
66 | } |
---|
67 | |
---|
68 | public void setHideConstructBody(boolean hideConstructBody) { |
---|
69 | this.hideConstructBody = hideConstructBody; |
---|
70 | } |
---|
71 | |
---|
72 | public boolean isCheckUndocumentedParameters() { |
---|
73 | return checkUndocumentedParameters; |
---|
74 | } |
---|
75 | |
---|
76 | public void setCheckUndocumentedParameters(boolean checkUndocumentedParameters) { |
---|
77 | this.checkUndocumentedParameters = checkUndocumentedParameters; |
---|
78 | } |
---|
79 | |
---|
80 | public boolean isShowOriginalT3DocTags() { |
---|
81 | return showOriginalT3DocTags; |
---|
82 | } |
---|
83 | |
---|
84 | public void setShowOriginalT3DocTags(boolean showOriginalT3DocTags) { |
---|
85 | this.showOriginalT3DocTags = showOriginalT3DocTags; |
---|
86 | } |
---|
87 | |
---|
88 | public boolean isCheckCyclicImports() { |
---|
89 | return checkCyclicImports; |
---|
90 | } |
---|
91 | |
---|
92 | public void setCheckCyclicImports(boolean checkCyclicImports) { |
---|
93 | this.checkCyclicImports = checkCyclicImports; |
---|
94 | } |
---|
95 | |
---|
96 | public String getXsltFileImport() { |
---|
97 | return xsltFileImport; |
---|
98 | } |
---|
99 | |
---|
100 | public void setXsltFileImport(String xsltFileImport) { |
---|
101 | this.xsltFileImport = xsltFileImport; |
---|
102 | } |
---|
103 | |
---|
104 | public void setCheckConsistentTagUsage(boolean checkConsistentTagUsage) { |
---|
105 | this.checkConsistentTagUsage = checkConsistentTagUsage; |
---|
106 | } |
---|
107 | |
---|
108 | public boolean isCheckConsistentTagUsage() { |
---|
109 | return checkConsistentTagUsage; |
---|
110 | } |
---|
111 | |
---|
112 | public void setCheckIdenticalDescriptionTags( |
---|
113 | boolean checkIdenticalDescriptionTags) { |
---|
114 | this.checkIdenticalDescriptionTags = checkIdenticalDescriptionTags; |
---|
115 | } |
---|
116 | |
---|
117 | public boolean isCheckIdenticalDescriptionTags() { |
---|
118 | return checkIdenticalDescriptionTags; |
---|
119 | } |
---|
120 | |
---|
121 | public void setCommentTagConfiguration(CommentTagsConfiguration commentTagsConfiguration) { |
---|
122 | this.commentTagsConfiguration = commentTagsConfiguration; |
---|
123 | } |
---|
124 | |
---|
125 | public CommentTagsConfiguration getCommentTagsConfiguration() { |
---|
126 | return commentTagsConfiguration; |
---|
127 | } |
---|
128 | } |
---|