Source Code Cross Referenced for CodeGenerationStylesheetAccessor.java in  » UML » MetaBoss » com » metaboss » sdlctools » services » codegeneration » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » UML » MetaBoss » com.metaboss.sdlctools.services.codegeneration 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


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.services.codegeneration;
016:
017:        import com.metaboss.enterprise.bs.BSException;
018:        import com.metaboss.enterprise.bs.BSNamingAndDirectoryServiceInvocationException;
019:        import com.metaboss.sdlctools.models.metabossmodel.datadictionarymodel.DataDictionary;
020:        import com.metaboss.sdlctools.models.metabossmodel.datadictionarymodel.DataType;
021:        import com.metaboss.sdlctools.models.metabossmodel.datadictionarymodel.Namespace;
022:        import com.metaboss.sdlctools.models.metabossmodel.datadictionarymodel.Structure;
023:        import com.metaboss.sdlctools.models.metabossmodel.datadictionarymodel.StructureField;
024:        import com.metaboss.sdlctools.models.metabossmodel.datadictionarymodel.TypeTemplate;
025:        import com.metaboss.sdlctools.models.metabossmodel.designlibrarymodel.DesignLibrary;
026:        import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.Enterprise;
027:        import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.Event;
028:        import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.EventDataField;
029:        import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.EventMessageField;
030:        import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.EventSubscription;
031:        import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.EventSubscriptionOperation;
032:        import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.Message;
033:        import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.MessageField;
034:        import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.Operation;
035:        import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.OperationInputField;
036:        import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.OperationOutputField;
037:        import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.OperationOutputMessage;
038:        import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.Service;
039:        import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.Servicemodule;
040:        import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.systemimplementationmodel.Association;
041:        import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.systemimplementationmodel.AssociationRole;
042:        import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.systemimplementationmodel.Attribute;
043:        import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.systemimplementationmodel.Domain;
044:        import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.systemimplementationmodel.Entity;
045:        import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.systemimplementationmodel.Report;
046:        import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.systemimplementationmodel.ReportOutputElement;
047:        import com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.systemimplementationmodel.SelectorInputField;
048:        import com.metaboss.sdlctools.services.codegenerationstylesheet.BSCodeGenerationStylesheet;
049:        import com.metaboss.sdlctools.services.codegenerationstylesheet.STAssociationRoleStylesheet;
050:        import com.metaboss.sdlctools.services.codegenerationstylesheet.STAssociationStylesheet;
051:        import com.metaboss.sdlctools.services.codegenerationstylesheet.STAttributeStylesheet;
052:        import com.metaboss.sdlctools.services.codegenerationstylesheet.STDataDictionaryStylesheet;
053:        import com.metaboss.sdlctools.services.codegenerationstylesheet.STDatatypeStylesheet;
054:        import com.metaboss.sdlctools.services.codegenerationstylesheet.STDatatypeTranslationStylesheet;
055:        import com.metaboss.sdlctools.services.codegenerationstylesheet.STDesignLibraryStylesheet;
056:        import com.metaboss.sdlctools.services.codegenerationstylesheet.STDocumentationStylesheet;
057:        import com.metaboss.sdlctools.services.codegenerationstylesheet.STDomainStylesheet;
058:        import com.metaboss.sdlctools.services.codegenerationstylesheet.STEnterpriseStylesheet;
059:        import com.metaboss.sdlctools.services.codegenerationstylesheet.STEntityStylesheet;
060:        import com.metaboss.sdlctools.services.codegenerationstylesheet.STEventDataFieldStylesheet;
061:        import com.metaboss.sdlctools.services.codegenerationstylesheet.STEventMessageFieldStylesheet;
062:        import com.metaboss.sdlctools.services.codegenerationstylesheet.STEventStylesheet;
063:        import com.metaboss.sdlctools.services.codegenerationstylesheet.STEventSubscriptionOperationStylesheet;
064:        import com.metaboss.sdlctools.services.codegenerationstylesheet.STEventSubscriptionStylesheet;
065:        import com.metaboss.sdlctools.services.codegenerationstylesheet.STMessageFieldStylesheet;
066:        import com.metaboss.sdlctools.services.codegenerationstylesheet.STMessageStylesheet;
067:        import com.metaboss.sdlctools.services.codegenerationstylesheet.STNamespaceStylesheet;
068:        import com.metaboss.sdlctools.services.codegenerationstylesheet.STOperationInputFieldStylesheet;
069:        import com.metaboss.sdlctools.services.codegenerationstylesheet.STOperationOutputFieldStylesheet;
070:        import com.metaboss.sdlctools.services.codegenerationstylesheet.STOperationOutputMessageStylesheet;
071:        import com.metaboss.sdlctools.services.codegenerationstylesheet.STOperationStylesheet;
072:        import com.metaboss.sdlctools.services.codegenerationstylesheet.STReportOutputElementStylesheet;
073:        import com.metaboss.sdlctools.services.codegenerationstylesheet.STReportStylesheet;
074:        import com.metaboss.sdlctools.services.codegenerationstylesheet.STSelectorInputFieldStylesheet;
075:        import com.metaboss.sdlctools.services.codegenerationstylesheet.STServiceStylesheet;
076:        import com.metaboss.sdlctools.services.codegenerationstylesheet.STServicemoduleStylesheet;
077:        import com.metaboss.sdlctools.services.codegenerationstylesheet.STStructureFieldStylesheet;
078:        import com.metaboss.sdlctools.services.codegenerationstylesheet.STStructureStylesheet;
079:        import com.metaboss.sdlctools.services.codegenerationstylesheet.STSystemStylesheet;
080:        import com.metaboss.sdlctools.services.codegenerationstylesheet.STTypeTemplateStylesheet;
081:
082:        /** Accessor class. Used to access CodeGenerationStylesheet service */
083:        public class CodeGenerationStylesheetAccessor {
084:            private static Object sServiceInitialisationSemaphore = new Object();
085:            private static BSCodeGenerationStylesheet sService = null;
086:
087:            private static BSCodeGenerationStylesheet getStylesheetService()
088:                    throws BSNamingAndDirectoryServiceInvocationException {
089:                if (sService == null) {
090:                    synchronized (sServiceInitialisationSemaphore) {
091:                        if (sService == null) {
092:                            try {
093:                                javax.naming.Context lContext = new javax.naming.InitialContext();
094:                                sService = (BSCodeGenerationStylesheet) lContext
095:                                        .lookup(BSCodeGenerationStylesheet.COMPONENT_URL);
096:                            } catch (javax.naming.NamingException e) {
097:                                throw new BSNamingAndDirectoryServiceInvocationException(
098:                                        e);
099:                            }
100:                        }
101:                    }
102:                }
103:                return sService;
104:            }
105:
106:            public static STStructureStylesheet getStructureStylesheet(
107:                    Structure pStructure) throws BSException {
108:                return getStructureStylesheet(pStructure.getRef());
109:            }
110:
111:            public static STStructureStylesheet getStructureStylesheet(
112:                    String pStructureRef) throws BSException {
113:                BSCodeGenerationStylesheet.STGetStructureStylesheetInput lInput = new BSCodeGenerationStylesheet.STGetStructureStylesheetInput();
114:                lInput.setStructureRef(pStructureRef);
115:                STStructureStylesheet lResult = getStylesheetService()
116:                        .getStructureStylesheet(lInput).getStylesheet();
117:                if (lResult == null)
118:                    throw new com.metaboss.enterprise.bs.BSIllegalArgumentException(
119:                            "Structure styleshet not found. StructureRef : "
120:                                    + pStructureRef);
121:                return lResult;
122:            }
123:
124:            public static STReportStylesheet getReportStylesheet(Report pReport)
125:                    throws BSException {
126:                return getReportStylesheet(pReport.getRef());
127:            }
128:
129:            public static STReportStylesheet getReportStylesheet(
130:                    String pReportRef) throws BSException {
131:                BSCodeGenerationStylesheet.STGetReportStylesheetInput lInput = new BSCodeGenerationStylesheet.STGetReportStylesheetInput();
132:                lInput.setReportRef(pReportRef);
133:                STReportStylesheet lResult = getStylesheetService()
134:                        .getReportStylesheet(lInput).getStylesheet();
135:                if (lResult == null)
136:                    throw new com.metaboss.enterprise.bs.BSIllegalArgumentException(
137:                            "Report styleshet not found. ReportRef : "
138:                                    + pReportRef);
139:                return lResult;
140:            }
141:
142:            public static STReportOutputElementStylesheet getReportOutputElementStylesheet(
143:                    ReportOutputElement pReportOutputElement)
144:                    throws BSException {
145:                return getReportOutputElementStylesheet(pReportOutputElement
146:                        .getRef());
147:            }
148:
149:            public static STReportOutputElementStylesheet getReportOutputElementStylesheet(
150:                    String pReportOutputElementRef) throws BSException {
151:                BSCodeGenerationStylesheet.STGetReportOutputElementStylesheetInput lInput = new BSCodeGenerationStylesheet.STGetReportOutputElementStylesheetInput();
152:                lInput.setReportOutputElementRef(pReportOutputElementRef);
153:                STReportOutputElementStylesheet lResult = getStylesheetService()
154:                        .getReportOutputElementStylesheet(lInput)
155:                        .getStylesheet();
156:                if (lResult == null)
157:                    throw new com.metaboss.enterprise.bs.BSIllegalArgumentException(
158:                            "ReportOutputElement styleshet not found. ReportOutputElementRef : "
159:                                    + pReportOutputElementRef);
160:                return lResult;
161:            }
162:
163:            public static STServicemoduleStylesheet getServicemoduleStylesheet(
164:                    Servicemodule pServicemodule) throws BSException {
165:                return getServicemoduleStylesheet(pServicemodule.getRef());
166:            }
167:
168:            public static STServicemoduleStylesheet getServicemoduleStylesheet(
169:                    String pServicemoduleRef) throws BSException {
170:                BSCodeGenerationStylesheet.STGetServicemoduleStylesheetInput lInput = new BSCodeGenerationStylesheet.STGetServicemoduleStylesheetInput();
171:                lInput.setServicemoduleRef(pServicemoduleRef);
172:                STServicemoduleStylesheet lResult = getStylesheetService()
173:                        .getServicemoduleStylesheet(lInput).getStylesheet();
174:                if (lResult == null)
175:                    throw new com.metaboss.enterprise.bs.BSIllegalArgumentException(
176:                            "Servicemodule styleshet not found. ServicemoduleRef : "
177:                                    + lInput.getServicemoduleRef());
178:                return lResult;
179:            }
180:
181:            public static STEnterpriseStylesheet getEnterpriseStylesheet(
182:                    Enterprise pEnterprise) throws BSException {
183:                return getEnterpriseStylesheet(pEnterprise.getName());
184:            }
185:
186:            public static STEnterpriseStylesheet getEnterpriseStylesheet(
187:                    String pEnterpriseName) throws BSException {
188:                BSCodeGenerationStylesheet.STGetEnterpriseStylesheetInput lInput = new BSCodeGenerationStylesheet.STGetEnterpriseStylesheetInput();
189:                lInput.setEnterpriseName(pEnterpriseName);
190:                STEnterpriseStylesheet lResult = getStylesheetService()
191:                        .getEnterpriseStylesheet(lInput).getStylesheet();
192:                if (lResult == null)
193:                    throw new com.metaboss.enterprise.bs.BSIllegalArgumentException(
194:                            "Enterprise styleshet not found. Enterprise Name : "
195:                                    + lInput.getEnterpriseName());
196:                return lResult;
197:            }
198:
199:            public static STDesignLibraryStylesheet getDesignLibraryStylesheet(
200:                    DesignLibrary pDesignLibrary) throws BSException {
201:                return getDesignLibraryStylesheet(pDesignLibrary.getName());
202:            }
203:
204:            public static STDesignLibraryStylesheet getDesignLibraryStylesheet(
205:                    String pDesignLibraryName) throws BSException {
206:                BSCodeGenerationStylesheet.STGetDesignLibraryStylesheetInput lInput = new BSCodeGenerationStylesheet.STGetDesignLibraryStylesheetInput();
207:                lInput.setDesignLibraryName(pDesignLibraryName);
208:                STDesignLibraryStylesheet lResult = getStylesheetService()
209:                        .getDesignLibraryStylesheet(lInput).getStylesheet();
210:                if (lResult == null)
211:                    throw new com.metaboss.enterprise.bs.BSIllegalArgumentException(
212:                            "DesignLibrary styleshet not found. DesignLibrary Name : "
213:                                    + lInput.getDesignLibraryName());
214:                return lResult;
215:            }
216:
217:            public static STSystemStylesheet getSystemStylesheet(
218:                    com.metaboss.sdlctools.models.metabossmodel.enterprisemodel.System pSystem)
219:                    throws BSException {
220:                return getSystemStylesheet(pSystem.getRef());
221:            }
222:
223:            public static STSystemStylesheet getSystemStylesheet(
224:                    String pSystemRef) throws BSException {
225:                BSCodeGenerationStylesheet.STGetSystemStylesheetInput lInput = new BSCodeGenerationStylesheet.STGetSystemStylesheetInput();
226:                lInput.setSystemRef(pSystemRef);
227:                STSystemStylesheet lResult = getStylesheetService()
228:                        .getSystemStylesheet(lInput).getStylesheet();
229:                if (lResult == null)
230:                    throw new com.metaboss.enterprise.bs.BSIllegalArgumentException(
231:                            "System styleshet not found. SystemRef : "
232:                                    + lInput.getSystemRef());
233:                return lResult;
234:            }
235:
236:            public static STTypeTemplateStylesheet getTypeTemplateStylesheet(
237:                    TypeTemplate pTypeTemplate) throws BSException {
238:                return getTypeTemplateStylesheet(pTypeTemplate.getRef());
239:            }
240:
241:            public static STTypeTemplateStylesheet getTypeTemplateStylesheet(
242:                    String pTypeTemplateRef) throws BSException {
243:                BSCodeGenerationStylesheet.STGetTypeTemplateStylesheetInput lInput = new BSCodeGenerationStylesheet.STGetTypeTemplateStylesheetInput();
244:                lInput.setTypeTemplateRef(pTypeTemplateRef);
245:                STTypeTemplateStylesheet lResult = getStylesheetService()
246:                        .getTypeTemplateStylesheet(lInput).getStylesheet();
247:                if (lResult == null)
248:                    throw new com.metaboss.enterprise.bs.BSIllegalArgumentException(
249:                            "TypeTemplate styleshet not found. TypeTemplateRef : "
250:                                    + lInput.getTypeTemplateRef());
251:                return lResult;
252:            }
253:
254:            public static STDataDictionaryStylesheet getDataDictionaryStylesheet(
255:                    DataDictionary pDataDictionary) throws BSException {
256:                return getDataDictionaryStylesheet(pDataDictionary.getRef());
257:            }
258:
259:            public static STDataDictionaryStylesheet getDataDictionaryStylesheet(
260:                    String pDataDictionaryRef) throws BSException {
261:                BSCodeGenerationStylesheet.STGetDataDictionaryStylesheetInput lInput = new BSCodeGenerationStylesheet.STGetDataDictionaryStylesheetInput();
262:                lInput.setDataDictionaryRef(pDataDictionaryRef);
263:                STDataDictionaryStylesheet lResult = getStylesheetService()
264:                        .getDataDictionaryStylesheet(lInput).getStylesheet();
265:                if (lResult == null)
266:                    throw new com.metaboss.enterprise.bs.BSIllegalArgumentException(
267:                            "DataDictionary styleshet not found. DataDictionaryRef : "
268:                                    + lInput.getDataDictionaryRef());
269:                return lResult;
270:            }
271:
272:            public static STNamespaceStylesheet getNamespaceStylesheet(
273:                    Namespace pNamespace) throws BSException {
274:                return getNamespaceStylesheet(pNamespace.getRef());
275:            }
276:
277:            public static STNamespaceStylesheet getNamespaceStylesheet(
278:                    String pNamespaceRef) throws BSException {
279:                BSCodeGenerationStylesheet.STGetNamespaceStylesheetInput lInput = new BSCodeGenerationStylesheet.STGetNamespaceStylesheetInput();
280:                lInput.setNamespaceRef(pNamespaceRef);
281:                STNamespaceStylesheet lResult = getStylesheetService()
282:                        .getNamespaceStylesheet(lInput).getStylesheet();
283:                if (lResult == null)
284:                    throw new com.metaboss.enterprise.bs.BSIllegalArgumentException(
285:                            "Namespace styleshet not found. NamespaceRef : "
286:                                    + lInput.getNamespaceRef());
287:                return lResult;
288:            }
289:
290:            public static STServiceStylesheet getServiceStylesheet(
291:                    Service pService) throws BSException {
292:                return getServiceStylesheet(pService.getRef());
293:            }
294:
295:            public static STServiceStylesheet getServiceStylesheet(
296:                    String pServiceRef) throws BSException {
297:                BSCodeGenerationStylesheet.STGetServiceStylesheetInput lInput = new BSCodeGenerationStylesheet.STGetServiceStylesheetInput();
298:                lInput.setServiceRef(pServiceRef);
299:                STServiceStylesheet lResult = getStylesheetService()
300:                        .getServiceStylesheet(lInput).getStylesheet();
301:                if (lResult == null)
302:                    throw new com.metaboss.enterprise.bs.BSIllegalArgumentException(
303:                            "Service styleshet not found. ServiceRef : "
304:                                    + pServiceRef);
305:                return lResult;
306:            }
307:
308:            public static STEventSubscriptionStylesheet getEventSubscriptionStylesheet(
309:                    EventSubscription pEventSubscription) throws BSException {
310:                return getEventSubscriptionStylesheet(pEventSubscription
311:                        .getRef());
312:            }
313:
314:            public static STEventSubscriptionStylesheet getEventSubscriptionStylesheet(
315:                    String pEventSubscriptionRef) throws BSException {
316:                BSCodeGenerationStylesheet.STGetEventSubscriptionStylesheetInput lInput = new BSCodeGenerationStylesheet.STGetEventSubscriptionStylesheetInput();
317:                lInput.setEventSubscriptionRef(pEventSubscriptionRef);
318:                STEventSubscriptionStylesheet lResult = getStylesheetService()
319:                        .getEventSubscriptionStylesheet(lInput).getStylesheet();
320:                if (lResult == null)
321:                    throw new com.metaboss.enterprise.bs.BSIllegalArgumentException(
322:                            "EventSubscription styleshet not found. EventSubscriptionRef : "
323:                                    + pEventSubscriptionRef);
324:                return lResult;
325:            }
326:
327:            public static STSelectorInputFieldStylesheet getSelectorInputFieldStylesheet(
328:                    SelectorInputField pSelectorInputField) throws BSException {
329:                return getSelectorInputFieldStylesheet(pSelectorInputField
330:                        .getRef());
331:            }
332:
333:            public static STSelectorInputFieldStylesheet getSelectorInputFieldStylesheet(
334:                    String pSelectorInputFieldRef) throws BSException {
335:                BSCodeGenerationStylesheet.STGetSelectorInputFieldStylesheetInput lInput = new BSCodeGenerationStylesheet.STGetSelectorInputFieldStylesheetInput();
336:                lInput.setSelectorInputFieldRef(pSelectorInputFieldRef);
337:                STSelectorInputFieldStylesheet lResult = getStylesheetService()
338:                        .getSelectorInputFieldStylesheet(lInput)
339:                        .getStylesheet();
340:                if (lResult == null)
341:                    throw new com.metaboss.enterprise.bs.BSIllegalArgumentException(
342:                            "SelectorInputField styleshet not found. SelectorInputFieldRef : "
343:                                    + pSelectorInputFieldRef);
344:                return lResult;
345:            }
346:
347:            public static STOperationStylesheet getOperationStylesheet(
348:                    Operation pOperation) throws BSException {
349:                return getOperationStylesheet(pOperation.getRef());
350:            }
351:
352:            public static STOperationStylesheet getOperationStylesheet(
353:                    String pOperationRef) throws BSException {
354:                BSCodeGenerationStylesheet.STGetOperationStylesheetInput lInput = new BSCodeGenerationStylesheet.STGetOperationStylesheetInput();
355:                lInput.setOperationRef(pOperationRef);
356:                STOperationStylesheet lResult = getStylesheetService()
357:                        .getOperationStylesheet(lInput).getStylesheet();
358:                if (lResult == null)
359:                    throw new com.metaboss.enterprise.bs.BSIllegalArgumentException(
360:                            "Operation styleshet not found. OperationRef : "
361:                                    + pOperationRef);
362:                return lResult;
363:            }
364:
365:            public static STOperationInputFieldStylesheet getOperationInputFieldStylesheet(
366:                    OperationInputField pOperationInputField)
367:                    throws BSException {
368:                return getOperationInputFieldStylesheet(pOperationInputField
369:                        .getRef());
370:            }
371:
372:            public static STOperationInputFieldStylesheet getOperationInputFieldStylesheet(
373:                    String pOperationInputFieldRef) throws BSException {
374:                BSCodeGenerationStylesheet.STGetOperationInputFieldStylesheetInput lInput = new BSCodeGenerationStylesheet.STGetOperationInputFieldStylesheetInput();
375:                lInput.setOperationInputFieldRef(pOperationInputFieldRef);
376:                STOperationInputFieldStylesheet lResult = getStylesheetService()
377:                        .getOperationInputFieldStylesheet(lInput)
378:                        .getStylesheet();
379:                if (lResult == null)
380:                    throw new com.metaboss.enterprise.bs.BSIllegalArgumentException(
381:                            "OperationInputField styleshet not found. OperationInputFieldRef : "
382:                                    + pOperationInputFieldRef);
383:                return lResult;
384:            }
385:
386:            public static STOperationOutputFieldStylesheet getOperationOutputFieldStylesheet(
387:                    OperationOutputField pOperationOutputField)
388:                    throws BSException {
389:                return getOperationOutputFieldStylesheet(pOperationOutputField
390:                        .getRef());
391:            }
392:
393:            public static STOperationOutputFieldStylesheet getOperationOutputFieldStylesheet(
394:                    String pOperationOutputFieldRef) throws BSException {
395:                BSCodeGenerationStylesheet.STGetOperationOutputFieldStylesheetInput lInput = new BSCodeGenerationStylesheet.STGetOperationOutputFieldStylesheetInput();
396:                lInput.setOperationOutputFieldRef(pOperationOutputFieldRef);
397:                STOperationOutputFieldStylesheet lResult = getStylesheetService()
398:                        .getOperationOutputFieldStylesheet(lInput)
399:                        .getStylesheet();
400:                if (lResult == null)
401:                    throw new com.metaboss.enterprise.bs.BSIllegalArgumentException(
402:                            "OperationOutputField styleshet not found. OperationOutputFieldRef : "
403:                                    + pOperationOutputFieldRef);
404:                return lResult;
405:            }
406:
407:            public static STOperationOutputMessageStylesheet getOperationOutputMessageStylesheet(
408:                    OperationOutputMessage pOperationOutputMessage)
409:                    throws BSException {
410:                return getOperationOutputMessageStylesheet(pOperationOutputMessage
411:                        .getRef());
412:            }
413:
414:            public static STOperationOutputMessageStylesheet getOperationOutputMessageStylesheet(
415:                    String pOperationOutputMessageRef) throws BSException {
416:                BSCodeGenerationStylesheet.STGetOperationOutputMessageStylesheetInput lInput = new BSCodeGenerationStylesheet.STGetOperationOutputMessageStylesheetInput();
417:                lInput.setOperationOutputMessageRef(pOperationOutputMessageRef);
418:                STOperationOutputMessageStylesheet lResult = getStylesheetService()
419:                        .getOperationOutputMessageStylesheet(lInput)
420:                        .getStylesheet();
421:                if (lResult == null)
422:                    throw new com.metaboss.enterprise.bs.BSIllegalArgumentException(
423:                            "OperationOutputMessage styleshet not found. OperationOutputMessageRef : "
424:                                    + pOperationOutputMessageRef);
425:                return lResult;
426:            }
427:
428:            public static STEntityStylesheet getEntityStylesheet(Entity pEntity)
429:                    throws BSException {
430:                return getEntityStylesheet(pEntity.getRef());
431:            }
432:
433:            public static STEntityStylesheet getEntityStylesheet(
434:                    String pEntityRef) throws BSException {
435:                BSCodeGenerationStylesheet.STGetEntityStylesheetInput lInput = new BSCodeGenerationStylesheet.STGetEntityStylesheetInput();
436:                lInput.setEntityRef(pEntityRef);
437:                STEntityStylesheet lResult = getStylesheetService()
438:                        .getEntityStylesheet(lInput).getStylesheet();
439:                if (lResult == null)
440:                    throw new com.metaboss.enterprise.bs.BSIllegalArgumentException(
441:                            "Entity styleshet not found. EntityRef : "
442:                                    + pEntityRef);
443:                return lResult;
444:            }
445:
446:            public static STAttributeStylesheet getAttributeStylesheet(
447:                    Attribute pAttribute) throws BSException {
448:                return getAttributeStylesheet(pAttribute.getRef());
449:            }
450:
451:            public static STAttributeStylesheet getAttributeStylesheet(
452:                    String pAttributeRef) throws BSException {
453:                BSCodeGenerationStylesheet.STGetAttributeStylesheetInput lInput = new BSCodeGenerationStylesheet.STGetAttributeStylesheetInput();
454:                lInput.setAttributeRef(pAttributeRef);
455:                STAttributeStylesheet lResult = getStylesheetService()
456:                        .getAttributeStylesheet(lInput).getStylesheet();
457:                if (lResult == null)
458:                    throw new com.metaboss.enterprise.bs.BSIllegalArgumentException(
459:                            "Attribute styleshet not found. AttributeRef : "
460:                                    + pAttributeRef);
461:                return lResult;
462:            }
463:
464:            public static STStructureFieldStylesheet getStructureFieldStylesheet(
465:                    StructureField pStructureField) throws BSException {
466:                return getStructureFieldStylesheet(pStructureField.getRef());
467:            }
468:
469:            public static STStructureFieldStylesheet getStructureFieldStylesheet(
470:                    String pStructureFieldRef) throws BSException {
471:                BSCodeGenerationStylesheet.STGetStructureFieldStylesheetInput lInput = new BSCodeGenerationStylesheet.STGetStructureFieldStylesheetInput();
472:                lInput.setStructureFieldRef(pStructureFieldRef);
473:                STStructureFieldStylesheet lResult = getStylesheetService()
474:                        .getStructureFieldStylesheet(lInput).getStylesheet();
475:                if (lResult == null)
476:                    throw new com.metaboss.enterprise.bs.BSIllegalArgumentException(
477:                            "StructureField styleshet not found. StructureFieldRef : "
478:                                    + pStructureFieldRef);
479:                return lResult;
480:            }
481:
482:            public static STMessageFieldStylesheet getMessageFieldStylesheet(
483:                    MessageField pMessageField) throws BSException {
484:                return getMessageFieldStylesheet(pMessageField.getRef());
485:            }
486:
487:            public static STMessageFieldStylesheet getMessageFieldStylesheet(
488:                    String pMessageFieldRef) throws BSException {
489:                BSCodeGenerationStylesheet.STGetMessageFieldStylesheetInput lInput = new BSCodeGenerationStylesheet.STGetMessageFieldStylesheetInput();
490:                lInput.setMessageFieldRef(pMessageFieldRef);
491:                STMessageFieldStylesheet lResult = getStylesheetService()
492:                        .getMessageFieldStylesheet(lInput).getStylesheet();
493:                if (lResult == null)
494:                    throw new com.metaboss.enterprise.bs.BSIllegalArgumentException(
495:                            "MessageField styleshet not found. MessageFieldRef : "
496:                                    + pMessageFieldRef);
497:                return lResult;
498:            }
499:
500:            public static STDomainStylesheet getDomainStylesheet(Domain pDomain)
501:                    throws BSException {
502:                return getDomainStylesheet(pDomain.getRef());
503:            }
504:
505:            public static STDomainStylesheet getDomainStylesheet(
506:                    String pDomainRef) throws BSException {
507:                BSCodeGenerationStylesheet.STGetDomainStylesheetInput lInput = new BSCodeGenerationStylesheet.STGetDomainStylesheetInput();
508:                lInput.setDomainRef(pDomainRef);
509:                STDomainStylesheet lResult = getStylesheetService()
510:                        .getDomainStylesheet(lInput).getStylesheet();
511:                if (lResult == null)
512:                    throw new com.metaboss.enterprise.bs.BSIllegalArgumentException(
513:                            "Domain styleshet not found. DomainRef : "
514:                                    + pDomainRef);
515:                return lResult;
516:            }
517:
518:            public static STAssociationStylesheet getAssociationStylesheet(
519:                    Association pAssociation) throws BSException {
520:                return getAssociationStylesheet(pAssociation.getRef());
521:            }
522:
523:            public static STAssociationStylesheet getAssociationStylesheet(
524:                    String pAssociationRef) throws BSException {
525:                BSCodeGenerationStylesheet.STGetAssociationStylesheetInput lInput = new BSCodeGenerationStylesheet.STGetAssociationStylesheetInput();
526:                lInput.setAssociationRef(pAssociationRef);
527:                STAssociationStylesheet lResult = getStylesheetService()
528:                        .getAssociationStylesheet(lInput).getStylesheet();
529:                if (lResult == null)
530:                    throw new com.metaboss.enterprise.bs.BSIllegalArgumentException(
531:                            "Association styleshet not found. AssociationRef : "
532:                                    + pAssociationRef);
533:                return lResult;
534:            }
535:
536:            public static STAssociationRoleStylesheet getAssociationRoleStylesheet(
537:                    AssociationRole pAssociationRole) throws BSException {
538:                return getAssociationRoleStylesheet(pAssociationRole.getRef());
539:            }
540:
541:            public static STAssociationRoleStylesheet getAssociationRoleStylesheet(
542:                    String pAssociationRoleRef) throws BSException {
543:                BSCodeGenerationStylesheet.STGetAssociationRoleStylesheetInput lInput = new BSCodeGenerationStylesheet.STGetAssociationRoleStylesheetInput();
544:                lInput.setAssociationRoleRef(pAssociationRoleRef);
545:                STAssociationRoleStylesheet lResult = getStylesheetService()
546:                        .getAssociationRoleStylesheet(lInput).getStylesheet();
547:                if (lResult == null)
548:                    throw new com.metaboss.enterprise.bs.BSIllegalArgumentException(
549:                            "Association role styleshet not found. AssociationRoleRef : "
550:                                    + pAssociationRoleRef);
551:                return lResult;
552:            }
553:
554:            public static STDatatypeStylesheet getDatatypeStylesheet(
555:                    DataType pDatatype) throws BSException {
556:                return getDatatypeStylesheet(pDatatype.getRef());
557:            }
558:
559:            public static STDatatypeStylesheet getDatatypeStylesheet(
560:                    String pDatatypeRef) throws BSException {
561:                BSCodeGenerationStylesheet.STGetDatatypeStylesheetInput lInput = new BSCodeGenerationStylesheet.STGetDatatypeStylesheetInput();
562:                lInput.setDatatypeRef(pDatatypeRef);
563:                STDatatypeStylesheet lResult = getStylesheetService()
564:                        .getDatatypeStylesheet(lInput).getStylesheet();
565:                if (lResult == null)
566:                    throw new com.metaboss.enterprise.bs.BSIllegalArgumentException(
567:                            "Datatype styleshet not found. DatatypeRef : "
568:                                    + lInput.getDatatypeRef());
569:                return lResult;
570:            }
571:
572:            public static STDatatypeTranslationStylesheet getDatatypeTranslationStylesheet(
573:                    DataType pDatatype) throws BSException {
574:                return getDatatypeTranslationStylesheet(pDatatype.getRef());
575:            }
576:
577:            public static STDatatypeTranslationStylesheet getDatatypeTranslationStylesheet(
578:                    String pDatatypeRef) throws BSException {
579:                BSCodeGenerationStylesheet.STGetDatatypeTranslationStylesheetInput lInput = new BSCodeGenerationStylesheet.STGetDatatypeTranslationStylesheetInput();
580:                lInput.setDatatypeRef(pDatatypeRef);
581:                STDatatypeTranslationStylesheet lResult = getStylesheetService()
582:                        .getDatatypeTranslationStylesheet(lInput)
583:                        .getStylesheet();
584:                if (lResult == null)
585:                    throw new com.metaboss.enterprise.bs.BSIllegalArgumentException(
586:                            "DatatypeTranslation styleshet not found. DatatypeRef : "
587:                                    + lInput.getDatatypeRef());
588:                return lResult;
589:            }
590:
591:            public static STDocumentationStylesheet getDocumentationStylesheet()
592:                    throws BSException {
593:                BSCodeGenerationStylesheet.STGetDocumentationStylesheetInput lInput = new BSCodeGenerationStylesheet.STGetDocumentationStylesheetInput();
594:                STDocumentationStylesheet lResult = getStylesheetService()
595:                        .getDocumentationStylesheet(lInput).getStylesheet();
596:                if (lResult == null)
597:                    throw new com.metaboss.enterprise.bs.BSIllegalArgumentException(
598:                            "Documentation styleshet not found.");
599:                return lResult;
600:            }
601:
602:            public static STMessageStylesheet getMessageStylesheet(
603:                    Message pMessage) throws BSException {
604:                return getMessageStylesheet(pMessage.getRef());
605:            }
606:
607:            public static STMessageStylesheet getMessageStylesheet(
608:                    String pMessageRef) throws BSException {
609:                BSCodeGenerationStylesheet.STGetMessageStylesheetInput lInput = new BSCodeGenerationStylesheet.STGetMessageStylesheetInput();
610:                lInput.setMessageRef(pMessageRef);
611:                STMessageStylesheet lResult = getStylesheetService()
612:                        .getMessageStylesheet(lInput).getStylesheet();
613:                if (lResult == null)
614:                    throw new com.metaboss.enterprise.bs.BSIllegalArgumentException(
615:                            "Message styleshet not found. MessageRef : "
616:                                    + lInput.getMessageRef());
617:                return lResult;
618:            }
619:
620:            public static STEventSubscriptionOperationStylesheet getEventSubscriptionOperationStylesheet(
621:                    EventSubscriptionOperation pEventSubscriptionOperation)
622:                    throws BSException {
623:                return getEventSubscriptionOperationStylesheet(pEventSubscriptionOperation
624:                        .getRef());
625:            }
626:
627:            public static STEventSubscriptionOperationStylesheet getEventSubscriptionOperationStylesheet(
628:                    String pEventSubscriptionOperationRef) throws BSException {
629:                BSCodeGenerationStylesheet.STGetEventSubscriptionOperationStylesheetInput lInput = new BSCodeGenerationStylesheet.STGetEventSubscriptionOperationStylesheetInput();
630:                lInput
631:                        .setEventSubscriptionOperationRef(pEventSubscriptionOperationRef);
632:                STEventSubscriptionOperationStylesheet lResult = getStylesheetService()
633:                        .getEventSubscriptionOperationStylesheet(lInput)
634:                        .getStylesheet();
635:                if (lResult == null)
636:                    throw new com.metaboss.enterprise.bs.BSIllegalArgumentException(
637:                            "EventSubscriptionOperation styleshet not found. EventSubscriptionOperationRef : "
638:                                    + pEventSubscriptionOperationRef);
639:                return lResult;
640:            }
641:
642:            public static STEventStylesheet getEventStylesheet(Event pEvent)
643:                    throws BSException {
644:                return getEventStylesheet(pEvent.getRef());
645:            }
646:
647:            public static STEventStylesheet getEventStylesheet(String pEventRef)
648:                    throws BSException {
649:                BSCodeGenerationStylesheet.STGetEventStylesheetInput lInput = new BSCodeGenerationStylesheet.STGetEventStylesheetInput();
650:                lInput.setEventRef(pEventRef);
651:                STEventStylesheet lResult = getStylesheetService()
652:                        .getEventStylesheet(lInput).getStylesheet();
653:                if (lResult == null)
654:                    throw new com.metaboss.enterprise.bs.BSIllegalArgumentException(
655:                            "Event styleshet not found. EventRef : "
656:                                    + pEventRef);
657:                return lResult;
658:            }
659:
660:            public static STEventDataFieldStylesheet getEventDataFieldStylesheet(
661:                    EventDataField pEventDataField) throws BSException {
662:                return getEventDataFieldStylesheet(pEventDataField.getRef());
663:            }
664:
665:            public static STEventDataFieldStylesheet getEventDataFieldStylesheet(
666:                    String pEventDataFieldRef) throws BSException {
667:                BSCodeGenerationStylesheet.STGetEventDataFieldStylesheetInput lInput = new BSCodeGenerationStylesheet.STGetEventDataFieldStylesheetInput();
668:                lInput.setEventDataFieldRef(pEventDataFieldRef);
669:                STEventDataFieldStylesheet lResult = getStylesheetService()
670:                        .getEventDataFieldStylesheet(lInput).getStylesheet();
671:                if (lResult == null)
672:                    throw new com.metaboss.enterprise.bs.BSIllegalArgumentException(
673:                            "EventDataField styleshet not found. EventDataFieldRef : "
674:                                    + pEventDataFieldRef);
675:                return lResult;
676:            }
677:
678:            public static STEventMessageFieldStylesheet getEventMessageFieldStylesheet(
679:                    EventMessageField pEventMessageField) throws BSException {
680:                return getEventMessageFieldStylesheet(pEventMessageField
681:                        .getRef());
682:            }
683:
684:            public static STEventMessageFieldStylesheet getEventMessageFieldStylesheet(
685:                    String pEventMessageFieldRef) throws BSException {
686:                BSCodeGenerationStylesheet.STGetEventMessageFieldStylesheetInput lInput = new BSCodeGenerationStylesheet.STGetEventMessageFieldStylesheetInput();
687:                lInput.setEventMessageFieldRef(pEventMessageFieldRef);
688:                STEventMessageFieldStylesheet lResult = getStylesheetService()
689:                        .getEventMessageFieldStylesheet(lInput).getStylesheet();
690:                if (lResult == null)
691:                    throw new com.metaboss.enterprise.bs.BSIllegalArgumentException(
692:                            "EventMessageField styleshet not found. EventMessageFieldRef : "
693:                                    + pEventMessageFieldRef);
694:                return lResult;
695:            }
696:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.