001: // THIS SOFTWARE IS PROVIDED BY SOFTARIS PTY.LTD. AND OTHER METABOSS
002: // CONTRIBUTORS ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING,
003: // BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
004: // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SOFTARIS PTY.LTD.
005: // OR OTHER METABOSS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
006: // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
007: // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
008: // OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
009: // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
010: // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
011: // EVEN IF SOFTARIS PTY.LTD. OR OTHER METABOSS CONTRIBUTORS ARE ADVISED OF THE
012: // POSSIBILITY OF SUCH DAMAGE.
013: //
014: // Copyright 2000-2005 © Softaris Pty.Ltd. All Rights Reserved.
015: package com.metaboss.sdlctools.frameworks.generation;
016:
017: import com.metaboss.enterprise.bs.BSException;
018: import com.metaboss.sdlctools.models.metabossmodel.datadictionarymodel.DataDictionary;
019: import com.metaboss.sdlctools.models.metabossmodel.datadictionarymodel.DataType;
020: import com.metaboss.sdlctools.models.metabossmodel.datadictionarymodel.Namespace;
021: import com.metaboss.sdlctools.models.metabossmodel.datadictionarymodel.Structure;
022: import com.metaboss.sdlctools.models.metabossmodel.datadictionarymodel.StructureField;
023: import com.metaboss.sdlctools.models.metabossmodel.datadictionarymodel.TypeTemplate;
024: import com.metaboss.sdlctools.models.metabossmodel.designlibrarymodel.DesignLibrary;
025: import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.Enterprise;
026: import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.Event;
027: import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.EventDataField;
028: import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.EventMessageField;
029: import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.EventSubscription;
030: import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.EventSubscriptionOperation;
031: import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.Message;
032: import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.MessageField;
033: import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.Operation;
034: import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.OperationInputField;
035: import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.OperationOutputField;
036: import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.OperationOutputMessage;
037: import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.Service;
038: import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.Servicemodule;
039: import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.systemimplementationmodel.Association;
040: import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.systemimplementationmodel.AssociationRole;
041: import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.systemimplementationmodel.Attribute;
042: import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.systemimplementationmodel.Domain;
043: import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.systemimplementationmodel.Entity;
044: import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.systemimplementationmodel.Report;
045: import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.systemimplementationmodel.ReportOutputElement;
046: import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.systemimplementationmodel.SelectorInputField;
047: import com.metaboss.sdlctools.services.codegeneration.CodeGenerationStylesheetAccessor;
048: import com.metaboss.sdlctools.services.codegenerationstylesheet.STAssociationRoleStylesheet;
049: import com.metaboss.sdlctools.services.codegenerationstylesheet.STAssociationStylesheet;
050: import com.metaboss.sdlctools.services.codegenerationstylesheet.STAttributeStylesheet;
051: import com.metaboss.sdlctools.services.codegenerationstylesheet.STDataDictionaryStylesheet;
052: import com.metaboss.sdlctools.services.codegenerationstylesheet.STDatatypeStylesheet;
053: import com.metaboss.sdlctools.services.codegenerationstylesheet.STDatatypeTranslationStylesheet;
054: import com.metaboss.sdlctools.services.codegenerationstylesheet.STDesignLibraryStylesheet;
055: import com.metaboss.sdlctools.services.codegenerationstylesheet.STDocumentationStylesheet;
056: import com.metaboss.sdlctools.services.codegenerationstylesheet.STDomainStylesheet;
057: import com.metaboss.sdlctools.services.codegenerationstylesheet.STEnterpriseStylesheet;
058: import com.metaboss.sdlctools.services.codegenerationstylesheet.STEntityStylesheet;
059: import com.metaboss.sdlctools.services.codegenerationstylesheet.STEventDataFieldStylesheet;
060: import com.metaboss.sdlctools.services.codegenerationstylesheet.STEventMessageFieldStylesheet;
061: import com.metaboss.sdlctools.services.codegenerationstylesheet.STEventStylesheet;
062: import com.metaboss.sdlctools.services.codegenerationstylesheet.STEventSubscriptionOperationStylesheet;
063: import com.metaboss.sdlctools.services.codegenerationstylesheet.STEventSubscriptionStylesheet;
064: import com.metaboss.sdlctools.services.codegenerationstylesheet.STMessageFieldStylesheet;
065: import com.metaboss.sdlctools.services.codegenerationstylesheet.STMessageStylesheet;
066: import com.metaboss.sdlctools.services.codegenerationstylesheet.STNamespaceStylesheet;
067: import com.metaboss.sdlctools.services.codegenerationstylesheet.STOperationInputFieldStylesheet;
068: import com.metaboss.sdlctools.services.codegenerationstylesheet.STOperationOutputFieldStylesheet;
069: import com.metaboss.sdlctools.services.codegenerationstylesheet.STOperationOutputMessageStylesheet;
070: import com.metaboss.sdlctools.services.codegenerationstylesheet.STOperationStylesheet;
071: import com.metaboss.sdlctools.services.codegenerationstylesheet.STReportOutputElementStylesheet;
072: import com.metaboss.sdlctools.services.codegenerationstylesheet.STReportStylesheet;
073: import com.metaboss.sdlctools.services.codegenerationstylesheet.STSelectorInputFieldStylesheet;
074: import com.metaboss.sdlctools.services.codegenerationstylesheet.STServiceStylesheet;
075: import com.metaboss.sdlctools.services.codegenerationstylesheet.STServicemoduleStylesheet;
076: import com.metaboss.sdlctools.services.codegenerationstylesheet.STStructureFieldStylesheet;
077: import com.metaboss.sdlctools.services.codegenerationstylesheet.STStructureStylesheet;
078: import com.metaboss.sdlctools.services.codegenerationstylesheet.STSystemStylesheet;
079: import com.metaboss.sdlctools.services.codegenerationstylesheet.STTypeTemplateStylesheet;
080:
081: /** Stylesheet Accessor class. Used to access CodeGenerationStylesheet service from inside the templates.
082: * This one fulfills the requirement to be an instance ("bean like") */
083: public class StylesheetAccessor {
084: public STStructureFieldStylesheet getStructureFieldStylesheet(
085: StructureField pStructureField) throws BSException {
086: return CodeGenerationStylesheetAccessor
087: .getStructureFieldStylesheet(pStructureField);
088: }
089:
090: public STStructureFieldStylesheet getStructureFieldStylesheet(
091: String pStructureFieldRef) throws BSException {
092: return CodeGenerationStylesheetAccessor
093: .getStructureFieldStylesheet(pStructureFieldRef);
094: }
095:
096: public STStructureStylesheet getStructureStylesheet(
097: Structure pStructure) throws BSException {
098: return CodeGenerationStylesheetAccessor
099: .getStructureStylesheet(pStructure);
100: }
101:
102: public STStructureStylesheet getStructureStylesheet(
103: String pStructureRef) throws BSException {
104: return CodeGenerationStylesheetAccessor
105: .getStructureStylesheet(pStructureRef);
106: }
107:
108: public STReportStylesheet getReportStylesheet(Report pReport)
109: throws BSException {
110: return CodeGenerationStylesheetAccessor
111: .getReportStylesheet(pReport);
112: }
113:
114: public STReportStylesheet getReportStylesheet(String pReportRef)
115: throws BSException {
116: return CodeGenerationStylesheetAccessor
117: .getReportStylesheet(pReportRef);
118: }
119:
120: public STReportOutputElementStylesheet getReportOutputElementStylesheet(
121: ReportOutputElement pReportOutputElement)
122: throws BSException {
123: return CodeGenerationStylesheetAccessor
124: .getReportOutputElementStylesheet(pReportOutputElement);
125: }
126:
127: public STReportOutputElementStylesheet getReportOutputElementStylesheet(
128: String pReportOutputElementRef) throws BSException {
129: return CodeGenerationStylesheetAccessor
130: .getReportOutputElementStylesheet(pReportOutputElementRef);
131: }
132:
133: public STServicemoduleStylesheet getServicemoduleStylesheet(
134: Servicemodule pServicemodule) throws BSException {
135: return CodeGenerationStylesheetAccessor
136: .getServicemoduleStylesheet(pServicemodule);
137: }
138:
139: public STServicemoduleStylesheet getServicemoduleStylesheet(
140: String pServicemoduleRef) throws BSException {
141: return CodeGenerationStylesheetAccessor
142: .getServicemoduleStylesheet(pServicemoduleRef);
143: }
144:
145: public STEnterpriseStylesheet getEnterpriseStylesheet(
146: Enterprise pEnterprise) throws BSException {
147: return CodeGenerationStylesheetAccessor
148: .getEnterpriseStylesheet(pEnterprise);
149: }
150:
151: public STEnterpriseStylesheet getEnterpriseStylesheet(
152: String pEnterpriseName) throws BSException {
153: return CodeGenerationStylesheetAccessor
154: .getEnterpriseStylesheet(pEnterpriseName);
155: }
156:
157: public STDesignLibraryStylesheet getDesignLibraryStylesheet(
158: DesignLibrary pDesignLibrary) throws BSException {
159: return CodeGenerationStylesheetAccessor
160: .getDesignLibraryStylesheet(pDesignLibrary);
161: }
162:
163: public STDesignLibraryStylesheet getDesignLibraryStylesheet(
164: String pDesignLibraryName) throws BSException {
165: return CodeGenerationStylesheetAccessor
166: .getDesignLibraryStylesheet(pDesignLibraryName);
167: }
168:
169: public STSystemStylesheet getSystemStylesheet(
170: com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.System pSystem)
171: throws BSException {
172: return CodeGenerationStylesheetAccessor
173: .getSystemStylesheet(pSystem);
174: }
175:
176: public STSystemStylesheet getSystemStylesheet(String pSystemRef)
177: throws BSException {
178: return CodeGenerationStylesheetAccessor
179: .getSystemStylesheet(pSystemRef);
180: }
181:
182: public STTypeTemplateStylesheet getTypeTemplateStylesheet(
183: TypeTemplate pTypeTemplate) throws BSException {
184: return CodeGenerationStylesheetAccessor
185: .getTypeTemplateStylesheet(pTypeTemplate);
186: }
187:
188: public STTypeTemplateStylesheet getTypeTemplateStylesheet(
189: String pTypeTemplateRef) throws BSException {
190: return CodeGenerationStylesheetAccessor
191: .getTypeTemplateStylesheet(pTypeTemplateRef);
192: }
193:
194: public STDataDictionaryStylesheet getDataDictionaryStylesheet(
195: DataDictionary pDataDictionary) throws BSException {
196: return CodeGenerationStylesheetAccessor
197: .getDataDictionaryStylesheet(pDataDictionary);
198: }
199:
200: public STDataDictionaryStylesheet getDataDictionaryStylesheet(
201: String pDataDictionaryRef) throws BSException {
202: return CodeGenerationStylesheetAccessor
203: .getDataDictionaryStylesheet(pDataDictionaryRef);
204: }
205:
206: public STNamespaceStylesheet getNamespaceStylesheet(
207: Namespace pNamespace) throws BSException {
208: return CodeGenerationStylesheetAccessor
209: .getNamespaceStylesheet(pNamespace);
210: }
211:
212: public STNamespaceStylesheet getNamespaceStylesheet(
213: String pNamespaceRef) throws BSException {
214: return CodeGenerationStylesheetAccessor
215: .getNamespaceStylesheet(pNamespaceRef);
216: }
217:
218: public STServiceStylesheet getServiceStylesheet(Service pService)
219: throws BSException {
220: return CodeGenerationStylesheetAccessor
221: .getServiceStylesheet(pService);
222: }
223:
224: public STServiceStylesheet getServiceStylesheet(String pServiceRef)
225: throws BSException {
226: return CodeGenerationStylesheetAccessor
227: .getServiceStylesheet(pServiceRef);
228: }
229:
230: public STEventSubscriptionStylesheet getEventSubscriptionStylesheet(
231: EventSubscription pEventSubscription) throws BSException {
232: return CodeGenerationStylesheetAccessor
233: .getEventSubscriptionStylesheet(pEventSubscription);
234: }
235:
236: public STEventSubscriptionStylesheet getEventSubscriptionStylesheet(
237: String pEventSubscriptionRef) throws BSException {
238: return CodeGenerationStylesheetAccessor
239: .getEventSubscriptionStylesheet(pEventSubscriptionRef);
240: }
241:
242: public STSelectorInputFieldStylesheet getSelectorInputFieldStylesheet(
243: String pSelectorInputFieldRef) throws BSException {
244: return CodeGenerationStylesheetAccessor
245: .getSelectorInputFieldStylesheet(pSelectorInputFieldRef);
246: }
247:
248: public STSelectorInputFieldStylesheet getSelectorInputFieldStylesheet(
249: SelectorInputField pSelectorInputField) throws BSException {
250: return CodeGenerationStylesheetAccessor
251: .getSelectorInputFieldStylesheet(pSelectorInputField);
252: }
253:
254: public STOperationStylesheet getOperationStylesheet(
255: Operation pOperation) throws BSException {
256: return CodeGenerationStylesheetAccessor
257: .getOperationStylesheet(pOperation);
258: }
259:
260: public STOperationStylesheet getOperationStylesheet(
261: String pOperationRef) throws BSException {
262: return CodeGenerationStylesheetAccessor
263: .getOperationStylesheet(pOperationRef);
264: }
265:
266: public STOperationInputFieldStylesheet getOperationInputFieldStylesheet(
267: String pOperationInputFieldRef) throws BSException {
268: return CodeGenerationStylesheetAccessor
269: .getOperationInputFieldStylesheet(pOperationInputFieldRef);
270: }
271:
272: public STOperationInputFieldStylesheet getOperationInputFieldStylesheet(
273: OperationInputField pOperationInputField)
274: throws BSException {
275: return CodeGenerationStylesheetAccessor
276: .getOperationInputFieldStylesheet(pOperationInputField);
277: }
278:
279: public STOperationOutputFieldStylesheet getOperationOutputFieldStylesheet(
280: String pOperationOutputFieldRef) throws BSException {
281: return CodeGenerationStylesheetAccessor
282: .getOperationOutputFieldStylesheet(pOperationOutputFieldRef);
283: }
284:
285: public STOperationOutputFieldStylesheet getOperationOutputFieldStylesheet(
286: OperationOutputField pOperationOutputField)
287: throws BSException {
288: return CodeGenerationStylesheetAccessor
289: .getOperationOutputFieldStylesheet(pOperationOutputField);
290: }
291:
292: public STOperationOutputMessageStylesheet getOperationOutputMessageStylesheet(
293: String pOperationOutputMessageRef) throws BSException {
294: return CodeGenerationStylesheetAccessor
295: .getOperationOutputMessageStylesheet(pOperationOutputMessageRef);
296: }
297:
298: public STOperationOutputMessageStylesheet getOperationOutputMessageStylesheet(
299: OperationOutputMessage pOperationOutputMessage)
300: throws BSException {
301: return CodeGenerationStylesheetAccessor
302: .getOperationOutputMessageStylesheet(pOperationOutputMessage);
303: }
304:
305: public STEntityStylesheet getEntityStylesheet(Entity pEntity)
306: throws BSException {
307: return CodeGenerationStylesheetAccessor
308: .getEntityStylesheet(pEntity);
309: }
310:
311: public STEntityStylesheet getEntityStylesheet(String pEntityRef)
312: throws BSException {
313: return CodeGenerationStylesheetAccessor
314: .getEntityStylesheet(pEntityRef);
315: }
316:
317: public STDomainStylesheet getDomainStylesheet(Domain pDomain)
318: throws BSException {
319: return CodeGenerationStylesheetAccessor
320: .getDomainStylesheet(pDomain);
321: }
322:
323: public STDomainStylesheet getDomainStylesheet(String pDomainRef)
324: throws BSException {
325: return CodeGenerationStylesheetAccessor
326: .getDomainStylesheet(pDomainRef);
327: }
328:
329: public STAssociationStylesheet getAssociationStylesheet(
330: Association pAssociation) throws BSException {
331: return CodeGenerationStylesheetAccessor
332: .getAssociationStylesheet(pAssociation);
333: }
334:
335: public STAssociationStylesheet getAssociationStylesheet(
336: String pAssociationRef) throws BSException {
337: return CodeGenerationStylesheetAccessor
338: .getAssociationStylesheet(pAssociationRef);
339: }
340:
341: public STAttributeStylesheet getAttributeStylesheet(
342: Attribute pAttribute) throws BSException {
343: return CodeGenerationStylesheetAccessor
344: .getAttributeStylesheet(pAttribute);
345: }
346:
347: public STAttributeStylesheet getAttributeStylesheet(
348: String pAttributeRef) throws BSException {
349: return CodeGenerationStylesheetAccessor
350: .getAttributeStylesheet(pAttributeRef);
351: }
352:
353: public STAssociationRoleStylesheet getAssociationRoleStylesheet(
354: AssociationRole pAssociationRole) throws BSException {
355: return CodeGenerationStylesheetAccessor
356: .getAssociationRoleStylesheet(pAssociationRole);
357: }
358:
359: public STAssociationRoleStylesheet getAssociationRoleStylesheet(
360: String pAssociationRoleRef) throws BSException {
361: return CodeGenerationStylesheetAccessor
362: .getAssociationRoleStylesheet(pAssociationRoleRef);
363: }
364:
365: public STDatatypeStylesheet getDatatypeStylesheet(DataType pDatatype)
366: throws BSException {
367: return CodeGenerationStylesheetAccessor
368: .getDatatypeStylesheet(pDatatype);
369: }
370:
371: public STDatatypeStylesheet getDatatypeStylesheet(
372: String pDatatypeRef) throws BSException {
373: return CodeGenerationStylesheetAccessor
374: .getDatatypeStylesheet(pDatatypeRef);
375: }
376:
377: public STDatatypeTranslationStylesheet getDatatypeTranslationStylesheet(
378: DataType pDatatype) throws BSException {
379: return CodeGenerationStylesheetAccessor
380: .getDatatypeTranslationStylesheet(pDatatype);
381: }
382:
383: public STDatatypeTranslationStylesheet getDatatypeTranslationStylesheet(
384: String pDatatypeRef) throws BSException {
385: return CodeGenerationStylesheetAccessor
386: .getDatatypeTranslationStylesheet(pDatatypeRef);
387: }
388:
389: public STDocumentationStylesheet getDocumentationStylesheet()
390: throws BSException {
391: return CodeGenerationStylesheetAccessor
392: .getDocumentationStylesheet();
393: }
394:
395: public STMessageStylesheet getMessageStylesheet(Message pMessage)
396: throws BSException {
397: return CodeGenerationStylesheetAccessor
398: .getMessageStylesheet(pMessage);
399: }
400:
401: public STMessageStylesheet getMessageStylesheet(String pMessageRef)
402: throws BSException {
403: return CodeGenerationStylesheetAccessor
404: .getMessageStylesheet(pMessageRef);
405: }
406:
407: public STMessageFieldStylesheet getMessageFieldStylesheet(
408: MessageField pMessageField) throws BSException {
409: return CodeGenerationStylesheetAccessor
410: .getMessageFieldStylesheet(pMessageField);
411: }
412:
413: public STMessageFieldStylesheet getMessageFieldStylesheet(
414: String pMessageFieldRef) throws BSException {
415: return CodeGenerationStylesheetAccessor
416: .getMessageFieldStylesheet(pMessageFieldRef);
417: }
418:
419: public STEventSubscriptionOperationStylesheet getEventSubscriptionOperationStylesheet(
420: EventSubscriptionOperation pEventSubscriptionOperation)
421: throws BSException {
422: return CodeGenerationStylesheetAccessor
423: .getEventSubscriptionOperationStylesheet(pEventSubscriptionOperation);
424: }
425:
426: public STEventSubscriptionOperationStylesheet getEventSubscriptionOperationStylesheet(
427: String pEventSubscriptionOperationRef) throws BSException {
428: return CodeGenerationStylesheetAccessor
429: .getEventSubscriptionOperationStylesheet(pEventSubscriptionOperationRef);
430: }
431:
432: public STEventStylesheet getEventStylesheet(Event pEvent)
433: throws BSException {
434: return CodeGenerationStylesheetAccessor
435: .getEventStylesheet(pEvent);
436: }
437:
438: public STEventStylesheet getEventStylesheet(String pEventRef)
439: throws BSException {
440: return CodeGenerationStylesheetAccessor
441: .getEventStylesheet(pEventRef);
442: }
443:
444: public STEventDataFieldStylesheet getEventDataFieldStylesheet(
445: String pEventDataFieldRef) throws BSException {
446: return CodeGenerationStylesheetAccessor
447: .getEventDataFieldStylesheet(pEventDataFieldRef);
448: }
449:
450: public STEventDataFieldStylesheet getEventDataFieldStylesheet(
451: EventDataField pEventDataField) throws BSException {
452: return CodeGenerationStylesheetAccessor
453: .getEventDataFieldStylesheet(pEventDataField);
454: }
455:
456: public STEventMessageFieldStylesheet getEventMessageFieldStylesheet(
457: String pEventMessageFieldRef) throws BSException {
458: return CodeGenerationStylesheetAccessor
459: .getEventMessageFieldStylesheet(pEventMessageFieldRef);
460: }
461:
462: public STEventMessageFieldStylesheet getEventMessageFieldStylesheet(
463: EventMessageField pEventMessageField) throws BSException {
464: return CodeGenerationStylesheetAccessor
465: .getEventMessageFieldStylesheet(pEventMessageField);
466: }
467: }
|