File tree Expand file tree Collapse file tree 2 files changed +40
-40
lines changed
src/main/java/com/apiflows Expand file tree Collapse file tree 2 files changed +40
-40
lines changed Original file line number Diff line number Diff line change 55
66public class OpenAPIWorkflow {
77
8- public enum Format {
9- JSON , YAML
10- }
11-
12- private String location ;
13- private String content ;
14- private Format format ;
15-
168 private String workflowsSpec ;
179 private Info info ;
1810 private List <SourceDescription > sourceDescriptions = new ArrayList <>();
1911 private List <Workflow > workflows = new ArrayList <>();
2012 private Components components ;
2113
22- public String getLocation () {
23- return location ;
24- }
25-
26- public void setLocation (String location ) {
27- this .location = location ;
28- }
29-
30- public String getContent () {
31- return content ;
32- }
33-
34- public void setContent (String content ) {
35- this .content = content ;
36- }
37-
38- public Format getFormat () {
39- return format ;
40- }
41-
42- public void setFormat (Format format ) {
43- this .format = format ;
44- }
45-
46- public boolean isJson () {
47- return Format .JSON .equals (this .format );
48- }
49-
50- public boolean isYaml () {
51- return Format .YAML .equals (this .format );
52- }
53-
5414 public String getWorkflowsSpec () {
5515 return workflowsSpec ;
5616 }
Original file line number Diff line number Diff line change 66
77public class OpenAPIWorkflowParserResult {
88
9+ public enum Format {
10+ JSON , YAML
11+ }
912 private boolean valid = true ;
1013 private List <String > errors = null ;
1114 private OpenAPIWorkflow openAPIWorkflow ;
1215
16+ private String location ;
17+ private String content ;
18+ private Format format ;
19+
1320 public boolean isValid () {
1421 return valid ;
1522 }
@@ -37,4 +44,37 @@ public void setErrors(List<String> errors) {
3744 public void addError (String error ) {
3845 this .errors .add (error );
3946 }
47+
48+ public String getLocation () {
49+ return location ;
50+ }
51+
52+ public void setLocation (String location ) {
53+ this .location = location ;
54+ }
55+
56+ public String getContent () {
57+ return content ;
58+ }
59+
60+ public void setContent (String content ) {
61+ this .content = content ;
62+ }
63+
64+ public Format getFormat () {
65+ return format ;
66+ }
67+
68+ public void setFormat (Format format ) {
69+ this .format = format ;
70+ }
71+
72+ public boolean isJson () {
73+ return Format .JSON .equals (this .format );
74+ }
75+
76+ public boolean isYaml () {
77+ return Format .YAML .equals (this .format );
78+ }
79+
4080}
You can’t perform that action at this time.
0 commit comments