Clover Coverage Report - KS Contract Documentation Generator 0.0.1-SNAPSHOT
Coverage timestamp: Wed Dec 31 1969 19:00:00 EST
../../../../../img/srcFileCovDistChart0.png 0% of files have more coverage
32   189   28   1.33
8   132   0.88   12
24     1.17  
2    
 
  OrchestrationObject       Line # 24 32 0% 28 64 0% 0.0
  OrchestrationObject.Source       Line # 27 0 - 0 0 - -1.0
 
No Tests
 
1    /*
2    * Copyright 2009 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.osedu.org/licenses/ECL-2.0
9    *
10    * Unless required by applicable law or agreed to in writing, software
11    * distributed under the License is distributed on an "AS IS" BASIS,
12    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13    * See the License for the specific language governing permissions and
14    * limitations under the License.
15    */
16    package org.kuali.student.contract.model;
17   
18    import java.util.List;
19   
20    /**
21    *
22    * @author nwright
23    */
 
24    public class OrchestrationObject
25    {
26   
 
27    public enum Source
28    {
29    MESSAGE_STRUCTURE, ORCH_OBJS;
30    }
31   
32    private List<OrchestrationObjectField> fields;
33    private String name;
34   
 
35  0 toggle public void setName (String name)
36    {
37  0 this.name = name;
38    }
39   
 
40  0 toggle public String getName ()
41    {
42  0 return name;
43    }
44   
 
45  0 toggle public void setFields (List<OrchestrationObjectField> fields)
46    {
47  0 this.fields = fields;
48    }
49   
 
50  0 toggle public List<OrchestrationObjectField> getFields ()
51    {
52  0 return fields;
53    }
54   
55    private boolean hasOwnCreateUpdate;
56   
 
57  0 toggle public boolean hasOwnCreateUpdate ()
58    {
59  0 return hasOwnCreateUpdate;
60    }
61   
 
62  0 toggle public void setHasOwnCreateUpdate (boolean hasOwnCreateUpdate)
63    {
64  0 this.hasOwnCreateUpdate = hasOwnCreateUpdate;
65    }
66   
67    private OrchestrationObjectField inlineField;
68   
 
69  0 toggle public OrchestrationObjectField getInlineField ()
70    {
71  0 return inlineField;
72    }
73   
 
74  0 toggle public void setInlineField (OrchestrationObjectField inlineField)
75    {
76  0 this.inlineField = inlineField;
77    }
78   
79   
80    private String orchestrationPackagePath;
81   
 
82  0 toggle public String getOrchestrationPackagePath ()
83    {
84  0 return orchestrationPackagePath;
85    }
86   
 
87  0 toggle public void setOrchestrationPackagePath (String packagePath)
88    {
89  0 this.orchestrationPackagePath = packagePath;
90    }
91   
92   
93    private String infoPackagePath;
94   
 
95  0 toggle public String getInfoPackagePath ()
96    {
97  0 return infoPackagePath;
98    }
99   
 
100  0 toggle public void setInfoPackagePath (String infoPackagePath)
101    {
102  0 this.infoPackagePath = infoPackagePath;
103    }
104   
 
105  0 toggle public String getJavaClassInfoName ()
106    {
107  0 return name.substring (0, 1).toUpperCase () + name.substring (1);
108    }
109   
 
110  0 toggle public String getFullyQualifiedJavaClassInfoName ()
111    {
112  0 return this.infoPackagePath + "." + this.getJavaClassInfoName ();
113    }
114   
 
115  0 toggle public String getJavaClassHelperName ()
116    {
117  0 if (inlineField == null)
118    {
119  0 return getJavaClassInfoName () + "Helper";
120    }
121  0 return inlineField.getParent ().getJavaClassInfoName ()
122    + getJavaClassInfoName () + "Helper";
123    }
124   
 
125  0 toggle public String getFullyQualifiedJavaClassHelperName ()
126    {
127  0 return orchestrationPackagePath + "." + getJavaClassHelperName ();
128    }
129   
 
130  0 toggle public String getJavaClassConstantsName ()
131    {
132  0 if (inlineField == null)
133    {
134  0 return getJavaClassInfoName () + "Constants";
135    }
136  0 return inlineField.getParent ().getJavaClassInfoName ()
137    + getJavaClassInfoName () + "Constants";
138    }
139   
 
140  0 toggle public String getFullyQualifiedJavaClassConstantsName ()
141    {
142  0 return orchestrationPackagePath + "." + getJavaClassConstantsName ();
143    }
144   
145   
 
146  0 toggle public String getJavaClassMetadataName ()
147    {
148  0 if (inlineField == null)
149    {
150  0 return getJavaClassInfoName () + "Metadata";
151    }
152  0 return inlineField.getParent ().getJavaClassInfoName ()
153    + getJavaClassInfoName () + "Metadata";
154    }
155   
 
156  0 toggle public String getFullyQualifiedJavaClassMetadataName ()
157    {
158  0 return orchestrationPackagePath + "." + getJavaClassMetadataName ();
159    }
160   
 
161  0 toggle public String getJavaClassAssemblerName ()
162    {
163  0 if (inlineField == null)
164    {
165  0 return getJavaClassInfoName () + "Assembler";
166    }
167  0 return inlineField.getParent ().getJavaClassInfoName ()
168    + getJavaClassInfoName () + "Assembler";
169    }
170   
 
171  0 toggle public String getFullyQualifiedJavaClassAssemblerName ()
172    {
173  0 return orchestrationPackagePath + ".assembler." + getJavaClassAssemblerName ();
174    }
175   
176   
177    private Source source;
178   
 
179  0 toggle public Source getSource ()
180    {
181  0 return source;
182    }
183   
 
184  0 toggle public void setSource (Source source)
185    {
186  0 this.source = source;
187    }
188   
189    }