00001
00002
00003
00004 package org.andromda.cartridges.arc.metafacades;
00005
00011 public abstract class ARC_OperationFacadeLogic
00012 extends org.andromda.core.metafacade.MetafacadeBase
00013 implements org.andromda.cartridges.arc.metafacades.ARC_OperationFacade
00014 {
00015
00016 protected Object metaObject;
00017
00018 public ARC_OperationFacadeLogic(Object metaObject, String context)
00019 {
00020 super(metaObject, getContext(context));
00021 this.superOperationFacade =
00022 (org.andromda.metafacades.uml.OperationFacade)
00023 org.andromda.core.metafacade.MetafacadeFactory.getInstance().createFacadeImpl(
00024 "org.andromda.metafacades.uml.OperationFacade",
00025 metaObject,
00026 getContext(context));
00027 this.metaObject = metaObject;
00028 }
00029
00033 private static String getContext(String context)
00034 {
00035 if (context == null)
00036 {
00037 context = "org.andromda.cartridges.arc.metafacades.ARC_OperationFacade";
00038 }
00039 return context;
00040 }
00041
00042 private org.andromda.metafacades.uml.OperationFacade superOperationFacade;
00043 private boolean superOperationFacadeInitialized = false;
00044
00048 private org.andromda.metafacades.uml.OperationFacade getSuperOperationFacade()
00049 {
00050 if (!this.superOperationFacadeInitialized)
00051 {
00052 ((org.andromda.core.metafacade.MetafacadeBase)superOperationFacade).setMetafacadeContext(this.getMetafacadeContext());
00053 this.superOperationFacadeInitialized = true;
00054 }
00055 return superOperationFacade;
00056 }
00057
00061 public void resetMetafacadeContext(String context)
00062 {
00063 if (!this.contextRoot)
00064 {
00065 context = getContext(context);
00066 setMetafacadeContext (context);
00067 if (this.superOperationFacadeInitialized)
00068 {
00069 ((org.andromda.core.metafacade.MetafacadeBase)superOperationFacade).resetMetafacadeContext(context);
00070 }
00071 }
00072 }
00073
00077 public boolean isARC_OperationFacadeMetaType()
00078 {
00079 return true;
00080 }
00081
00082
00083
00087 protected abstract java.util.Collection handleGetResponsibilities();
00088
00089 private void handleGetResponsibilities1aPreCondition()
00090 {
00091 }
00092
00093 private void handleGetResponsibilities1aPostCondition()
00094 {
00095 }
00096
00097 public final java.util.Collection getResponsibilities()
00098 {
00099 java.util.Collection Responsibilities1a = null;
00100 handleGetResponsibilities1aPreCondition();
00101 Responsibilities1a = handleGetResponsibilities();
00102 handleGetResponsibilities1aPostCondition();
00103 return Responsibilities1a;
00104 }
00105
00106
00107
00108 protected abstract org.andromda.cartridges.arc.Responsibility handleGetResponsibility(java.lang.String name);
00109
00110 private void handleGetResponsibility1oPreCondition()
00111 {
00112 }
00113
00114 private void handleGetResponsibility1oPostCondition()
00115 {
00116 }
00117
00118 public org.andromda.cartridges.arc.Responsibility getResponsibility(java.lang.String name)
00119 {
00120 handleGetResponsibility1oPreCondition();
00121 org.andromda.cartridges.arc.Responsibility returnValue = handleGetResponsibility(name);
00122 handleGetResponsibility1oPostCondition();
00123 return returnValue;
00124 }
00125
00129 public boolean isOperationFacadeMetaType()
00130 {
00131 return true;
00132 }
00133
00137 public boolean isModelElementFacadeMetaType()
00138 {
00139 return true;
00140 }
00141
00142
00143
00144 public void copyTaggedValues(org.andromda.metafacades.uml.ModelElementFacade element)
00145 {
00146 this.getSuperOperationFacade().copyTaggedValues(element);
00147 }
00148
00149
00150 public java.lang.Object findTaggedValue(java.lang.String tagName)
00151 {
00152 return this.getSuperOperationFacade().findTaggedValue(tagName);
00153 }
00154
00155
00156 public java.util.Collection findTaggedValues(java.lang.String tagName)
00157 {
00158 return this.getSuperOperationFacade().findTaggedValues(tagName);
00159 }
00160
00161
00162 public java.util.Collection getConstraints()
00163 {
00164 return this.getSuperOperationFacade().getConstraints();
00165 }
00166
00167
00168 public java.util.Collection getConstraints(java.lang.String kind)
00169 {
00170 return this.getSuperOperationFacade().getConstraints(kind);
00171 }
00172
00173
00174 public java.lang.String getDocumentation(java.lang.String indent, int lineLength)
00175 {
00176 return this.getSuperOperationFacade().getDocumentation(indent, lineLength);
00177 }
00178
00179
00180 public java.lang.String getDocumentation(java.lang.String indent, int lineLength, boolean htmlStyle)
00181 {
00182 return this.getSuperOperationFacade().getDocumentation(indent, lineLength, htmlStyle);
00183 }
00184
00185
00186 public java.lang.String getDocumentation(java.lang.String indent)
00187 {
00188 return this.getSuperOperationFacade().getDocumentation(indent);
00189 }
00190
00191
00192 public java.lang.String getFullyQualifiedName(boolean modelName)
00193 {
00194 return this.getSuperOperationFacade().getFullyQualifiedName(modelName);
00195 }
00196
00197
00198 public java.lang.String getFullyQualifiedName()
00199 {
00200 return this.getSuperOperationFacade().getFullyQualifiedName();
00201 }
00202
00203
00204 public java.lang.String getFullyQualifiedNamePath()
00205 {
00206 return this.getSuperOperationFacade().getFullyQualifiedNamePath();
00207 }
00208
00209
00210 public java.lang.String getId()
00211 {
00212 return this.getSuperOperationFacade().getId();
00213 }
00214
00215
00216 public org.andromda.metafacades.uml.TypeMappings getLanguageMappings()
00217 {
00218 return this.getSuperOperationFacade().getLanguageMappings();
00219 }
00220
00221
00222 public org.andromda.metafacades.uml.ModelFacade getModel()
00223 {
00224 return this.getSuperOperationFacade().getModel();
00225 }
00226
00227
00228 public java.lang.String getName()
00229 {
00230 return this.getSuperOperationFacade().getName();
00231 }
00232
00233
00234 public org.andromda.metafacades.uml.ModelElementFacade getPackage()
00235 {
00236 return this.getSuperOperationFacade().getPackage();
00237 }
00238
00239
00240 public java.lang.String getPackageName(boolean modelName)
00241 {
00242 return this.getSuperOperationFacade().getPackageName(modelName);
00243 }
00244
00245
00246 public java.lang.String getPackageName()
00247 {
00248 return this.getSuperOperationFacade().getPackageName();
00249 }
00250
00251
00252 public java.lang.String getPackagePath()
00253 {
00254 return this.getSuperOperationFacade().getPackagePath();
00255 }
00256
00257
00258 public org.andromda.metafacades.uml.PackageFacade getRootPackage()
00259 {
00260 return this.getSuperOperationFacade().getRootPackage();
00261 }
00262
00263
00264 public java.util.Collection getSourceDependencies()
00265 {
00266 return this.getSuperOperationFacade().getSourceDependencies();
00267 }
00268
00269
00270 public org.andromda.metafacades.uml.StateMachineFacade getStateMachineContext()
00271 {
00272 return this.getSuperOperationFacade().getStateMachineContext();
00273 }
00274
00275
00276 public java.util.Collection getStereotypeNames()
00277 {
00278 return this.getSuperOperationFacade().getStereotypeNames();
00279 }
00280
00281
00282 public java.util.Collection getStereotypes()
00283 {
00284 return this.getSuperOperationFacade().getStereotypes();
00285 }
00286
00287
00288 public java.util.Collection getTaggedValues()
00289 {
00290 return this.getSuperOperationFacade().getTaggedValues();
00291 }
00292
00293
00294 public java.util.Collection getTargetDependencies()
00295 {
00296 return this.getSuperOperationFacade().getTargetDependencies();
00297 }
00298
00299
00300 public java.lang.Object getTemplateParameter(java.lang.String parameterName)
00301 {
00302 return this.getSuperOperationFacade().getTemplateParameter(parameterName);
00303 }
00304
00305
00306 public java.util.Collection getTemplateParameters()
00307 {
00308 return this.getSuperOperationFacade().getTemplateParameters();
00309 }
00310
00311
00312 public java.lang.String getVisibility()
00313 {
00314 return this.getSuperOperationFacade().getVisibility();
00315 }
00316
00317
00318 public boolean hasExactStereotype(java.lang.String stereotypeName)
00319 {
00320 return this.getSuperOperationFacade().hasExactStereotype(stereotypeName);
00321 }
00322
00323
00324 public boolean hasStereotype(java.lang.String stereotypeName)
00325 {
00326 return this.getSuperOperationFacade().hasStereotype(stereotypeName);
00327 }
00328
00329
00330 public boolean isBindingDependenciesPresent()
00331 {
00332 return this.getSuperOperationFacade().isBindingDependenciesPresent();
00333 }
00334
00335
00336 public boolean isConstraintsPresent()
00337 {
00338 return this.getSuperOperationFacade().isConstraintsPresent();
00339 }
00340
00341
00342 public boolean isTemplateParametersPresent()
00343 {
00344 return this.getSuperOperationFacade().isTemplateParametersPresent();
00345 }
00346
00347
00348 public java.lang.String translateConstraint(java.lang.String name, java.lang.String translation)
00349 {
00350 return this.getSuperOperationFacade().translateConstraint(name, translation);
00351 }
00352
00353
00354 public java.lang.String[] translateConstraints(java.lang.String translation)
00355 {
00356 return this.getSuperOperationFacade().translateConstraints(translation);
00357 }
00358
00359
00360 public java.lang.String[] translateConstraints(java.lang.String kind, java.lang.String translation)
00361 {
00362 return this.getSuperOperationFacade().translateConstraints(kind, translation);
00363 }
00364
00365
00366 public org.andromda.metafacades.uml.ParameterFacade findParameter(java.lang.String name)
00367 {
00368 return this.getSuperOperationFacade().findParameter(name);
00369 }
00370
00371
00372 public java.lang.Object findTaggedValue(java.lang.String name, boolean follow)
00373 {
00374 return this.getSuperOperationFacade().findTaggedValue(name, follow);
00375 }
00376
00377
00378 public java.lang.String getArgumentNames()
00379 {
00380 return this.getSuperOperationFacade().getArgumentNames();
00381 }
00382
00383
00384 public java.lang.String getArgumentTypeNames()
00385 {
00386 return this.getSuperOperationFacade().getArgumentTypeNames();
00387 }
00388
00389
00390 public java.util.Collection getArguments()
00391 {
00392 return this.getSuperOperationFacade().getArguments();
00393 }
00394
00395
00396 public java.lang.String getCall()
00397 {
00398 return this.getSuperOperationFacade().getCall();
00399 }
00400
00401
00402 public java.lang.String getConcurrency()
00403 {
00404 return this.getSuperOperationFacade().getConcurrency();
00405 }
00406
00407
00408 public java.lang.String getExceptionList(java.lang.String initialExceptions)
00409 {
00410 return this.getSuperOperationFacade().getExceptionList(initialExceptions);
00411 }
00412
00413
00414 public java.lang.String getExceptionList()
00415 {
00416 return this.getSuperOperationFacade().getExceptionList();
00417 }
00418
00419
00420 public java.util.Collection getExceptions()
00421 {
00422 return this.getSuperOperationFacade().getExceptions();
00423 }
00424
00425
00426 public int getLower()
00427 {
00428 return this.getSuperOperationFacade().getLower();
00429 }
00430
00431
00432 public org.andromda.metafacades.uml.OperationFacade getOverriddenOperation()
00433 {
00434 return this.getSuperOperationFacade().getOverriddenOperation();
00435 }
00436
00437
00438 public org.andromda.metafacades.uml.ClassifierFacade getOwner()
00439 {
00440 return this.getSuperOperationFacade().getOwner();
00441 }
00442
00443
00444 public java.util.Collection getParameters()
00445 {
00446 return this.getSuperOperationFacade().getParameters();
00447 }
00448
00449
00450 public java.lang.String getPostconditionName()
00451 {
00452 return this.getSuperOperationFacade().getPostconditionName();
00453 }
00454
00455
00456 public java.util.Collection getPostconditions()
00457 {
00458 return this.getSuperOperationFacade().getPostconditions();
00459 }
00460
00461
00462 public java.lang.String getPreconditionCall()
00463 {
00464 return this.getSuperOperationFacade().getPreconditionCall();
00465 }
00466
00467
00468 public java.lang.String getPreconditionName()
00469 {
00470 return this.getSuperOperationFacade().getPreconditionName();
00471 }
00472
00473
00474 public java.lang.String getPreconditionSignature()
00475 {
00476 return this.getSuperOperationFacade().getPreconditionSignature();
00477 }
00478
00479
00480 public java.util.Collection getPreconditions()
00481 {
00482 return this.getSuperOperationFacade().getPreconditions();
00483 }
00484
00485
00486 public org.andromda.metafacades.uml.ParameterFacade getReturnParameter()
00487 {
00488 return this.getSuperOperationFacade().getReturnParameter();
00489 }
00490
00491
00492 public org.andromda.metafacades.uml.ClassifierFacade getReturnType()
00493 {
00494 return this.getSuperOperationFacade().getReturnType();
00495 }
00496
00497
00498 public java.lang.String getSignature(boolean withArgumentNames)
00499 {
00500 return this.getSuperOperationFacade().getSignature(withArgumentNames);
00501 }
00502
00503
00504 public java.lang.String getSignature()
00505 {
00506 return this.getSuperOperationFacade().getSignature();
00507 }
00508
00509
00510 public java.lang.String getSignature(java.lang.String argumentModifier)
00511 {
00512 return this.getSuperOperationFacade().getSignature(argumentModifier);
00513 }
00514
00515
00516 public java.lang.String getTypedArgumentList(java.lang.String modifier)
00517 {
00518 return this.getSuperOperationFacade().getTypedArgumentList(modifier);
00519 }
00520
00521
00522 public java.lang.String getTypedArgumentList()
00523 {
00524 return this.getSuperOperationFacade().getTypedArgumentList();
00525 }
00526
00527
00528 public int getUpper()
00529 {
00530 return this.getSuperOperationFacade().getUpper();
00531 }
00532
00533
00534 public boolean isAbstract()
00535 {
00536 return this.getSuperOperationFacade().isAbstract();
00537 }
00538
00539
00540 public boolean isExceptionsPresent()
00541 {
00542 return this.getSuperOperationFacade().isExceptionsPresent();
00543 }
00544
00545
00546 public boolean isOverriding()
00547 {
00548 return this.getSuperOperationFacade().isOverriding();
00549 }
00550
00551
00552 public boolean isPostconditionsPresent()
00553 {
00554 return this.getSuperOperationFacade().isPostconditionsPresent();
00555 }
00556
00557
00558 public boolean isPreconditionsPresent()
00559 {
00560 return this.getSuperOperationFacade().isPreconditionsPresent();
00561 }
00562
00563
00564 public boolean isQuery()
00565 {
00566 return this.getSuperOperationFacade().isQuery();
00567 }
00568
00569
00570 public boolean isReturnTypePresent()
00571 {
00572 return this.getSuperOperationFacade().isReturnTypePresent();
00573 }
00574
00575
00576 public boolean isStatic()
00577 {
00578 return this.getSuperOperationFacade().isStatic();
00579 }
00580
00584 public void initialize()
00585 {
00586 this.getSuperOperationFacade().initialize();
00587 }
00588
00592 public Object getValidationOwner()
00593 {
00594 Object owner = this.getSuperOperationFacade().getValidationOwner();
00595 return owner;
00596 }
00597
00601 public String getValidationName()
00602 {
00603 String name = this.getSuperOperationFacade().getValidationName();
00604 return name;
00605 }
00606
00610 public void validateInvariants(java.util.Collection validationMessages)
00611 {
00612 this.getSuperOperationFacade().validateInvariants(validationMessages);
00613 }
00614
00618 private static final String NAME_PROPERTY = "name";
00619
00623 public String toString()
00624 {
00625 final StringBuffer toString = new StringBuffer(this.getClass().getName());
00626 toString.append("[");
00627 try
00628 {
00629 toString.append(org.andromda.core.common.Introspector.instance().getProperty(this, NAME_PROPERTY));
00630 }
00631 catch (final Throwable throwable)
00632 {
00633
00634 }
00635 toString.append("]");
00636 return toString.toString();
00637 }
00638 }