001// license-header java merge-point
002//
003// Attention: generated code (by MetafacadeLogic.vsl) - do not modify!
004//
005package org.andromda.cartridges.ejb3.metafacades;
006
007import java.util.Collection;
008import org.andromda.core.metafacade.ModelValidationMessage;
009
010/**
011 * TODO: Model Documentation for org.andromda.cartridges.ejb3.metafacades.EJB3WebServiceFacade
012 * MetafacadeLogic for EJB3WebServiceFacade
013 *
014 * @see EJB3WebServiceFacade
015 */
016public abstract class EJB3WebServiceFacadeLogic
017    extends EJB3SessionFacadeLogicImpl
018    implements EJB3WebServiceFacade
019{
020    /**
021     * The underlying UML object
022     * @see Object
023     */
024    protected Object metaObject;
025
026    /** Create Metafacade implementation instance using the MetafacadeFactory from the context
027     * @param metaObjectIn
028     * @param context
029     */
030    protected EJB3WebServiceFacadeLogic(Object metaObjectIn, String context)
031    {
032        super(metaObjectIn, getContext(context));
033        this.metaObject = metaObjectIn;
034    }
035
036    /**
037     * Gets the context for this metafacade logic instance.
038     * @param context String. Set to EJB3WebServiceFacade if null
039     * @return context String
040     */
041    private static String getContext(String context)
042    {
043        if (context == null)
044        {
045            context = "org.andromda.cartridges.ejb3.metafacades.EJB3WebServiceFacade";
046        }
047        return context;
048    }
049
050    /** Reset context only for non-root metafacades
051     * @param context
052     */
053    @Override
054    public void resetMetafacadeContext(String context)
055    {
056        if (!this.contextRoot) // reset context only for non-root metafacades
057        {
058            context = getContext(context);  // to have same value as in original constructor call
059            setMetafacadeContext (context);
060        }
061    }
062
063    /**
064     * @return boolean true always
065     * @see EJB3WebServiceFacade
066     */
067    public boolean isEJB3WebServiceFacadeMetaType()
068    {
069        return true;
070    }
071
072    // --------------- attributes ---------------------
073
074   /**
075    * @see org.andromda.cartridges.ejb3.metafacades.EJB3WebServiceFacade#getFullyQualifiedWebServiceInterfaceName()
076    * @return String
077    */
078    protected abstract String handleGetFullyQualifiedWebServiceInterfaceName();
079
080    private String __fullyQualifiedWebServiceInterfaceName1a;
081    private boolean __fullyQualifiedWebServiceInterfaceName1aSet = false;
082
083    /**
084     * Returns the fully qualified interface name for this web service.
085     * @return (String)handleGetFullyQualifiedWebServiceInterfaceName()
086     */
087    public final String getFullyQualifiedWebServiceInterfaceName()
088    {
089        String fullyQualifiedWebServiceInterfaceName1a = this.__fullyQualifiedWebServiceInterfaceName1a;
090        if (!this.__fullyQualifiedWebServiceInterfaceName1aSet)
091        {
092            // fullyQualifiedWebServiceInterfaceName has no pre constraints
093            fullyQualifiedWebServiceInterfaceName1a = handleGetFullyQualifiedWebServiceInterfaceName();
094            // fullyQualifiedWebServiceInterfaceName has no post constraints
095            this.__fullyQualifiedWebServiceInterfaceName1a = fullyQualifiedWebServiceInterfaceName1a;
096            if (isMetafacadePropertyCachingEnabled())
097            {
098                this.__fullyQualifiedWebServiceInterfaceName1aSet = true;
099            }
100        }
101        return fullyQualifiedWebServiceInterfaceName1a;
102    }
103
104   /**
105    * @see org.andromda.cartridges.ejb3.metafacades.EJB3WebServiceFacade#getWebServiceInterfaceName()
106    * @return String
107    */
108    protected abstract String handleGetWebServiceInterfaceName();
109
110    private String __webServiceInterfaceName2a;
111    private boolean __webServiceInterfaceName2aSet = false;
112
113    /**
114     * Returns the web service interface name for with web service.
115     * @return (String)handleGetWebServiceInterfaceName()
116     */
117    public final String getWebServiceInterfaceName()
118    {
119        String webServiceInterfaceName2a = this.__webServiceInterfaceName2a;
120        if (!this.__webServiceInterfaceName2aSet)
121        {
122            // webServiceInterfaceName has no pre constraints
123            webServiceInterfaceName2a = handleGetWebServiceInterfaceName();
124            // webServiceInterfaceName has no post constraints
125            this.__webServiceInterfaceName2a = webServiceInterfaceName2a;
126            if (isMetafacadePropertyCachingEnabled())
127            {
128                this.__webServiceInterfaceName2aSet = true;
129            }
130        }
131        return webServiceInterfaceName2a;
132    }
133
134   /**
135    * @see org.andromda.cartridges.ejb3.metafacades.EJB3WebServiceFacade#getStyle()
136    * @return String
137    */
138    protected abstract String handleGetStyle();
139
140    private String __style3a;
141    private boolean __style3aSet = false;
142
143    /**
144     * Defines the encoding binding style for messages send to and from the Web Service.  Can be one
145     * of DOCUMENT or RPC.
146     * @return (String)handleGetStyle()
147     */
148    public final String getStyle()
149    {
150        String style3a = this.__style3a;
151        if (!this.__style3aSet)
152        {
153            // style has no pre constraints
154            style3a = handleGetStyle();
155            // style has no post constraints
156            this.__style3a = style3a;
157            if (isMetafacadePropertyCachingEnabled())
158            {
159                this.__style3aSet = true;
160            }
161        }
162        return style3a;
163    }
164
165   /**
166    * @see org.andromda.cartridges.ejb3.metafacades.EJB3WebServiceFacade#getUse()
167    * @return String
168    */
169    protected abstract String handleGetUse();
170
171    private String __use4a;
172    private boolean __use4aSet = false;
173
174    /**
175     * Defines the formatting style for messages sent to and from the Web Service.  Can be one of
176     * LITERAL or ENCODED.
177     * @return (String)handleGetUse()
178     */
179    public final String getUse()
180    {
181        String use4a = this.__use4a;
182        if (!this.__use4aSet)
183        {
184            // use has no pre constraints
185            use4a = handleGetUse();
186            // use has no post constraints
187            this.__use4a = use4a;
188            if (isMetafacadePropertyCachingEnabled())
189            {
190                this.__use4aSet = true;
191            }
192        }
193        return use4a;
194    }
195
196   /**
197    * @see org.andromda.cartridges.ejb3.metafacades.EJB3WebServiceFacade#isRpcStyle()
198    * @return boolean
199    */
200    protected abstract boolean handleIsRpcStyle();
201
202    private boolean __rpcStyle5a;
203    private boolean __rpcStyle5aSet = false;
204
205    /**
206     * Indicates whether or not this service is "rpc" style.
207     * @return (boolean)handleIsRpcStyle()
208     */
209    public final boolean isRpcStyle()
210    {
211        boolean rpcStyle5a = this.__rpcStyle5a;
212        if (!this.__rpcStyle5aSet)
213        {
214            // rpcStyle has no pre constraints
215            rpcStyle5a = handleIsRpcStyle();
216            // rpcStyle has no post constraints
217            this.__rpcStyle5a = rpcStyle5a;
218            if (isMetafacadePropertyCachingEnabled())
219            {
220                this.__rpcStyle5aSet = true;
221            }
222        }
223        return rpcStyle5a;
224    }
225
226   /**
227    * @see org.andromda.cartridges.ejb3.metafacades.EJB3WebServiceFacade#isDocumentStyle()
228    * @return boolean
229    */
230    protected abstract boolean handleIsDocumentStyle();
231
232    private boolean __documentStyle6a;
233    private boolean __documentStyle6aSet = false;
234
235    /**
236     * Indicates whether or not this service is "document" style
237     * @return (boolean)handleIsDocumentStyle()
238     */
239    public final boolean isDocumentStyle()
240    {
241        boolean documentStyle6a = this.__documentStyle6a;
242        if (!this.__documentStyle6aSet)
243        {
244            // documentStyle has no pre constraints
245            documentStyle6a = handleIsDocumentStyle();
246            // documentStyle has no post constraints
247            this.__documentStyle6a = documentStyle6a;
248            if (isMetafacadePropertyCachingEnabled())
249            {
250                this.__documentStyle6aSet = true;
251            }
252        }
253        return documentStyle6a;
254    }
255
256   /**
257    * @see org.andromda.cartridges.ejb3.metafacades.EJB3WebServiceFacade#isEncodedUse()
258    * @return boolean
259    */
260    protected abstract boolean handleIsEncodedUse();
261
262    private boolean __encodedUse7a;
263    private boolean __encodedUse7aSet = false;
264
265    /**
266     * Indicates whether or not this web service has a "encoded" use defined.
267     * @return (boolean)handleIsEncodedUse()
268     */
269    public final boolean isEncodedUse()
270    {
271        boolean encodedUse7a = this.__encodedUse7a;
272        if (!this.__encodedUse7aSet)
273        {
274            // encodedUse has no pre constraints
275            encodedUse7a = handleIsEncodedUse();
276            // encodedUse has no post constraints
277            this.__encodedUse7a = encodedUse7a;
278            if (isMetafacadePropertyCachingEnabled())
279            {
280                this.__encodedUse7aSet = true;
281            }
282        }
283        return encodedUse7a;
284    }
285
286   /**
287    * @see org.andromda.cartridges.ejb3.metafacades.EJB3WebServiceFacade#isLiteralUse()
288    * @return boolean
289    */
290    protected abstract boolean handleIsLiteralUse();
291
292    private boolean __literalUse8a;
293    private boolean __literalUse8aSet = false;
294
295    /**
296     * Indicates whether or not this web service has a "literal" use defined.
297     * @return (boolean)handleIsLiteralUse()
298     */
299    public final boolean isLiteralUse()
300    {
301        boolean literalUse8a = this.__literalUse8a;
302        if (!this.__literalUse8aSet)
303        {
304            // literalUse has no pre constraints
305            literalUse8a = handleIsLiteralUse();
306            // literalUse has no post constraints
307            this.__literalUse8a = literalUse8a;
308            if (isMetafacadePropertyCachingEnabled())
309            {
310                this.__literalUse8aSet = true;
311            }
312        }
313        return literalUse8a;
314    }
315
316   /**
317    * @see org.andromda.cartridges.ejb3.metafacades.EJB3WebServiceFacade#isWebServiceOperationsExist()
318    * @return boolean
319    */
320    protected abstract boolean handleIsWebServiceOperationsExist();
321
322    private boolean __webServiceOperationsExist9a;
323    private boolean __webServiceOperationsExist9aSet = false;
324
325    /**
326     * TODO: Model Documentation for
327     * org.andromda.cartridges.ejb3.metafacades.EJB3WebServiceFacade.webServiceOperationsExist
328     * @return (boolean)handleIsWebServiceOperationsExist()
329     */
330    public final boolean isWebServiceOperationsExist()
331    {
332        boolean webServiceOperationsExist9a = this.__webServiceOperationsExist9a;
333        if (!this.__webServiceOperationsExist9aSet)
334        {
335            // webServiceOperationsExist has no pre constraints
336            webServiceOperationsExist9a = handleIsWebServiceOperationsExist();
337            // webServiceOperationsExist has no post constraints
338            this.__webServiceOperationsExist9a = webServiceOperationsExist9a;
339            if (isMetafacadePropertyCachingEnabled())
340            {
341                this.__webServiceOperationsExist9aSet = true;
342            }
343        }
344        return webServiceOperationsExist9a;
345    }
346
347   /**
348    * @see org.andromda.cartridges.ejb3.metafacades.EJB3WebServiceFacade#isWrappedParameterStyle()
349    * @return boolean
350    */
351    protected abstract boolean handleIsWrappedParameterStyle();
352
353    private boolean __wrappedParameterStyle10a;
354    private boolean __wrappedParameterStyle10aSet = false;
355
356    /**
357     * Indicates whether or not this service parameter is "wrapped" style.
358     * @return (boolean)handleIsWrappedParameterStyle()
359     */
360    public final boolean isWrappedParameterStyle()
361    {
362        boolean wrappedParameterStyle10a = this.__wrappedParameterStyle10a;
363        if (!this.__wrappedParameterStyle10aSet)
364        {
365            // wrappedParameterStyle has no pre constraints
366            wrappedParameterStyle10a = handleIsWrappedParameterStyle();
367            // wrappedParameterStyle has no post constraints
368            this.__wrappedParameterStyle10a = wrappedParameterStyle10a;
369            if (isMetafacadePropertyCachingEnabled())
370            {
371                this.__wrappedParameterStyle10aSet = true;
372            }
373        }
374        return wrappedParameterStyle10a;
375    }
376
377   /**
378    * @see org.andromda.cartridges.ejb3.metafacades.EJB3WebServiceFacade#isBareParameterStyle()
379    * @return boolean
380    */
381    protected abstract boolean handleIsBareParameterStyle();
382
383    private boolean __bareParameterStyle11a;
384    private boolean __bareParameterStyle11aSet = false;
385
386    /**
387     * Indicates whether or not this service parameter is "bare" style.
388     * @return (boolean)handleIsBareParameterStyle()
389     */
390    public final boolean isBareParameterStyle()
391    {
392        boolean bareParameterStyle11a = this.__bareParameterStyle11a;
393        if (!this.__bareParameterStyle11aSet)
394        {
395            // bareParameterStyle has no pre constraints
396            bareParameterStyle11a = handleIsBareParameterStyle();
397            // bareParameterStyle has no post constraints
398            this.__bareParameterStyle11a = bareParameterStyle11a;
399            if (isMetafacadePropertyCachingEnabled())
400            {
401                this.__bareParameterStyle11aSet = true;
402            }
403        }
404        return bareParameterStyle11a;
405    }
406
407   /**
408    * @see org.andromda.cartridges.ejb3.metafacades.EJB3WebServiceFacade#getParameterStyle()
409    * @return String
410    */
411    protected abstract String handleGetParameterStyle();
412
413    private String __parameterStyle12a;
414    private boolean __parameterStyle12aSet = false;
415
416    /**
417     * Determines whether method parameters represent the entire message body, or whether the
418     * parameters are elements wrapped inside a top-level element named after the operation.  Can be
419     * one of WRAPPED or BARE.
420     * @return (String)handleGetParameterStyle()
421     */
422    public final String getParameterStyle()
423    {
424        String parameterStyle12a = this.__parameterStyle12a;
425        if (!this.__parameterStyle12aSet)
426        {
427            // parameterStyle has no pre constraints
428            parameterStyle12a = handleGetParameterStyle();
429            // parameterStyle has no post constraints
430            this.__parameterStyle12a = parameterStyle12a;
431            if (isMetafacadePropertyCachingEnabled())
432            {
433                this.__parameterStyle12aSet = true;
434            }
435        }
436        return parameterStyle12a;
437    }
438
439   /**
440    * @see org.andromda.cartridges.ejb3.metafacades.EJB3WebServiceFacade#getQName()
441    * @return String
442    */
443    protected abstract String handleGetQName();
444
445    private String __qName13a;
446    private boolean __qName13aSet = false;
447
448    /**
449     * Returns the QName for this service.  Usually it will be the same name as the model element,
450     * however it is possible to specify a prefix to give to this name.
451     * @return (String)handleGetQName()
452     */
453    public final String getQName()
454    {
455        String qName13a = this.__qName13a;
456        if (!this.__qName13aSet)
457        {
458            // qName has no pre constraints
459            qName13a = handleGetQName();
460            // qName has no post constraints
461            this.__qName13a = qName13a;
462            if (isMetafacadePropertyCachingEnabled())
463            {
464                this.__qName13aSet = true;
465            }
466        }
467        return qName13a;
468    }
469
470   /**
471    * @see org.andromda.cartridges.ejb3.metafacades.EJB3WebServiceFacade#getNamespace()
472    * @return String
473    */
474    protected abstract String handleGetNamespace();
475
476    private String __namespace14a;
477    private boolean __namespace14aSet = false;
478
479    /**
480     * The name of the target namespace to which this web service belongs.
481     * @return (String)handleGetNamespace()
482     */
483    public final String getNamespace()
484    {
485        String namespace14a = this.__namespace14a;
486        if (!this.__namespace14aSet)
487        {
488            // namespace has no pre constraints
489            namespace14a = handleGetNamespace();
490            // namespace has no post constraints
491            this.__namespace14a = namespace14a;
492            if (isMetafacadePropertyCachingEnabled())
493            {
494                this.__namespace14aSet = true;
495            }
496        }
497        return namespace14a;
498    }
499
500    /**
501     * @param validationMessages Collection<ModelValidationMessage>
502     * @see EJB3SessionFacadeLogicImpl#validateInvariants(Collection validationMessages)
503     */
504    @Override
505    public void validateInvariants(Collection<ModelValidationMessage> validationMessages)
506    {
507        super.validateInvariants(validationMessages);
508    }
509}