org/andromda/cartridges/arc/metafacades/KeyLogic.java

Go to the documentation of this file.
00001 //
00002 // Attention: generated code (by MetafacadeLogic.vsl) - do not modify!
00003 //
00004 package org.andromda.cartridges.arc.metafacades;
00005 
00011 public abstract class KeyLogic
00012     extends org.andromda.core.metafacade.MetafacadeBase
00013     implements org.andromda.cartridges.arc.metafacades.Key
00014 {
00015 
00016     protected Object metaObject;
00017 
00018     public KeyLogic(Object metaObject, String context)
00019     {
00020         super(metaObject, getContext(context));
00021         this.superAttributeFacade =
00022            (org.andromda.metafacades.uml.AttributeFacade)
00023             org.andromda.core.metafacade.MetafacadeFactory.getInstance().createFacadeImpl(
00024                     "org.andromda.metafacades.uml.AttributeFacade",
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.Key";
00038         }
00039         return context;
00040     }
00041 
00042     private org.andromda.metafacades.uml.AttributeFacade superAttributeFacade;
00043     private boolean superAttributeFacadeInitialized = false;
00044 
00048     private org.andromda.metafacades.uml.AttributeFacade getSuperAttributeFacade()
00049     {
00050         if (!this.superAttributeFacadeInitialized)
00051         {
00052             ((org.andromda.core.metafacade.MetafacadeBase)superAttributeFacade).setMetafacadeContext(this.getMetafacadeContext());
00053             this.superAttributeFacadeInitialized = true;
00054         }
00055         return superAttributeFacade;
00056     }
00057 
00061     public void resetMetafacadeContext(String context)
00062     {
00063         if (!this.contextRoot) // reset context only for non-root metafacades
00064         {
00065             context = getContext(context);  // to have same value as in original constructor call
00066             setMetafacadeContext (context);
00067             if (this.superAttributeFacadeInitialized)
00068             {
00069                 ((org.andromda.core.metafacade.MetafacadeBase)superAttributeFacade).resetMetafacadeContext(context);
00070             }
00071         }
00072     }
00073 
00077     public boolean isKeyMetaType()
00078     {
00079         return true;
00080     }
00081     
00085     public boolean isAttributeFacadeMetaType()
00086     {
00087         return true;
00088     }
00089     
00093     public boolean isModelElementFacadeMetaType()
00094     {
00095         return true;
00096     }
00097     
00098     // ----------- delegates to org.andromda.metafacades.uml.AttributeFacade ------------
00099     // from org.andromda.metafacades.uml.AttributeFacade
00100     public java.lang.Object findTaggedValue(java.lang.String name, boolean follow)
00101     {
00102         return this.getSuperAttributeFacade().findTaggedValue(name, follow);
00103     }
00104 
00105     // from org.andromda.metafacades.uml.AttributeFacade
00106     public java.lang.String getDefaultValue()
00107     {
00108         return this.getSuperAttributeFacade().getDefaultValue();
00109     }
00110 
00111     // from org.andromda.metafacades.uml.AttributeFacade
00112     public org.andromda.metafacades.uml.EnumerationFacade getEnumeration()
00113     {
00114         return this.getSuperAttributeFacade().getEnumeration();
00115     }
00116 
00117     // from org.andromda.metafacades.uml.AttributeFacade
00118     public java.lang.String getEnumerationLiteralParameters()
00119     {
00120         return this.getSuperAttributeFacade().getEnumerationLiteralParameters();
00121     }
00122 
00123     // from org.andromda.metafacades.uml.AttributeFacade
00124     public java.lang.String getEnumerationValue()
00125     {
00126         return this.getSuperAttributeFacade().getEnumerationValue();
00127     }
00128 
00129     // from org.andromda.metafacades.uml.AttributeFacade
00130     public java.lang.String getGetterName()
00131     {
00132         return this.getSuperAttributeFacade().getGetterName();
00133     }
00134 
00135     // from org.andromda.metafacades.uml.AttributeFacade
00136     public java.lang.String getGetterSetterTypeName()
00137     {
00138         return this.getSuperAttributeFacade().getGetterSetterTypeName();
00139     }
00140 
00141     // from org.andromda.metafacades.uml.AttributeFacade
00142     public int getLower()
00143     {
00144         return this.getSuperAttributeFacade().getLower();
00145     }
00146 
00147     // from org.andromda.metafacades.uml.AttributeFacade
00148     public org.andromda.metafacades.uml.ClassifierFacade getOwner()
00149     {
00150         return this.getSuperAttributeFacade().getOwner();
00151     }
00152 
00153     // from org.andromda.metafacades.uml.AttributeFacade
00154     public java.lang.String getSetterName()
00155     {
00156         return this.getSuperAttributeFacade().getSetterName();
00157     }
00158 
00159     // from org.andromda.metafacades.uml.AttributeFacade
00160     public org.andromda.metafacades.uml.ClassifierFacade getType()
00161     {
00162         return this.getSuperAttributeFacade().getType();
00163     }
00164 
00165     // from org.andromda.metafacades.uml.AttributeFacade
00166     public int getUpper()
00167     {
00168         return this.getSuperAttributeFacade().getUpper();
00169     }
00170 
00171     // from org.andromda.metafacades.uml.AttributeFacade
00172     public boolean isAddOnly()
00173     {
00174         return this.getSuperAttributeFacade().isAddOnly();
00175     }
00176 
00177     // from org.andromda.metafacades.uml.AttributeFacade
00178     public boolean isChangeable()
00179     {
00180         return this.getSuperAttributeFacade().isChangeable();
00181     }
00182 
00183     // from org.andromda.metafacades.uml.AttributeFacade
00184     public boolean isDefaultValuePresent()
00185     {
00186         return this.getSuperAttributeFacade().isDefaultValuePresent();
00187     }
00188 
00189     // from org.andromda.metafacades.uml.AttributeFacade
00190     public boolean isEnumerationLiteral()
00191     {
00192         return this.getSuperAttributeFacade().isEnumerationLiteral();
00193     }
00194 
00195     // from org.andromda.metafacades.uml.AttributeFacade
00196     public boolean isEnumerationLiteralParametersExist()
00197     {
00198         return this.getSuperAttributeFacade().isEnumerationLiteralParametersExist();
00199     }
00200 
00201     // from org.andromda.metafacades.uml.AttributeFacade
00202     public boolean isEnumerationMember()
00203     {
00204         return this.getSuperAttributeFacade().isEnumerationMember();
00205     }
00206 
00207     // from org.andromda.metafacades.uml.AttributeFacade
00208     public boolean isMany()
00209     {
00210         return this.getSuperAttributeFacade().isMany();
00211     }
00212 
00213     // from org.andromda.metafacades.uml.AttributeFacade
00214     public boolean isOrdered()
00215     {
00216         return this.getSuperAttributeFacade().isOrdered();
00217     }
00218 
00219     // from org.andromda.metafacades.uml.AttributeFacade
00220     public boolean isReadOnly()
00221     {
00222         return this.getSuperAttributeFacade().isReadOnly();
00223     }
00224 
00225     // from org.andromda.metafacades.uml.AttributeFacade
00226     public boolean isRequired()
00227     {
00228         return this.getSuperAttributeFacade().isRequired();
00229     }
00230 
00231     // from org.andromda.metafacades.uml.AttributeFacade
00232     public boolean isStatic()
00233     {
00234         return this.getSuperAttributeFacade().isStatic();
00235     }
00236 
00237     // from org.andromda.metafacades.uml.ModelElementFacade
00238     public void copyTaggedValues(org.andromda.metafacades.uml.ModelElementFacade element)
00239     {
00240         this.getSuperAttributeFacade().copyTaggedValues(element);
00241     }
00242 
00243     // from org.andromda.metafacades.uml.ModelElementFacade
00244     public java.lang.Object findTaggedValue(java.lang.String tagName)
00245     {
00246         return this.getSuperAttributeFacade().findTaggedValue(tagName);
00247     }
00248 
00249     // from org.andromda.metafacades.uml.ModelElementFacade
00250     public java.util.Collection findTaggedValues(java.lang.String tagName)
00251     {
00252         return this.getSuperAttributeFacade().findTaggedValues(tagName);
00253     }
00254 
00255     // from org.andromda.metafacades.uml.ModelElementFacade
00256     public java.util.Collection getConstraints()
00257     {
00258         return this.getSuperAttributeFacade().getConstraints();
00259     }
00260 
00261     // from org.andromda.metafacades.uml.ModelElementFacade
00262     public java.util.Collection getConstraints(java.lang.String kind)
00263     {
00264         return this.getSuperAttributeFacade().getConstraints(kind);
00265     }
00266 
00267     // from org.andromda.metafacades.uml.ModelElementFacade
00268     public java.lang.String getDocumentation(java.lang.String indent, int lineLength)
00269     {
00270         return this.getSuperAttributeFacade().getDocumentation(indent, lineLength);
00271     }
00272 
00273     // from org.andromda.metafacades.uml.ModelElementFacade
00274     public java.lang.String getDocumentation(java.lang.String indent, int lineLength, boolean htmlStyle)
00275     {
00276         return this.getSuperAttributeFacade().getDocumentation(indent, lineLength, htmlStyle);
00277     }
00278 
00279     // from org.andromda.metafacades.uml.ModelElementFacade
00280     public java.lang.String getDocumentation(java.lang.String indent)
00281     {
00282         return this.getSuperAttributeFacade().getDocumentation(indent);
00283     }
00284 
00285     // from org.andromda.metafacades.uml.ModelElementFacade
00286     public java.lang.String getFullyQualifiedName(boolean modelName)
00287     {
00288         return this.getSuperAttributeFacade().getFullyQualifiedName(modelName);
00289     }
00290 
00291     // from org.andromda.metafacades.uml.ModelElementFacade
00292     public java.lang.String getFullyQualifiedName()
00293     {
00294         return this.getSuperAttributeFacade().getFullyQualifiedName();
00295     }
00296 
00297     // from org.andromda.metafacades.uml.ModelElementFacade
00298     public java.lang.String getFullyQualifiedNamePath()
00299     {
00300         return this.getSuperAttributeFacade().getFullyQualifiedNamePath();
00301     }
00302 
00303     // from org.andromda.metafacades.uml.ModelElementFacade
00304     public java.lang.String getId()
00305     {
00306         return this.getSuperAttributeFacade().getId();
00307     }
00308 
00309     // from org.andromda.metafacades.uml.ModelElementFacade
00310     public org.andromda.metafacades.uml.TypeMappings getLanguageMappings()
00311     {
00312         return this.getSuperAttributeFacade().getLanguageMappings();
00313     }
00314 
00315     // from org.andromda.metafacades.uml.ModelElementFacade
00316     public org.andromda.metafacades.uml.ModelFacade getModel()
00317     {
00318         return this.getSuperAttributeFacade().getModel();
00319     }
00320 
00321     // from org.andromda.metafacades.uml.ModelElementFacade
00322     public java.lang.String getName()
00323     {
00324         return this.getSuperAttributeFacade().getName();
00325     }
00326 
00327     // from org.andromda.metafacades.uml.ModelElementFacade
00328     public org.andromda.metafacades.uml.ModelElementFacade getPackage()
00329     {
00330         return this.getSuperAttributeFacade().getPackage();
00331     }
00332 
00333     // from org.andromda.metafacades.uml.ModelElementFacade
00334     public java.lang.String getPackageName(boolean modelName)
00335     {
00336         return this.getSuperAttributeFacade().getPackageName(modelName);
00337     }
00338 
00339     // from org.andromda.metafacades.uml.ModelElementFacade
00340     public java.lang.String getPackageName()
00341     {
00342         return this.getSuperAttributeFacade().getPackageName();
00343     }
00344 
00345     // from org.andromda.metafacades.uml.ModelElementFacade
00346     public java.lang.String getPackagePath()
00347     {
00348         return this.getSuperAttributeFacade().getPackagePath();
00349     }
00350 
00351     // from org.andromda.metafacades.uml.ModelElementFacade
00352     public org.andromda.metafacades.uml.PackageFacade getRootPackage()
00353     {
00354         return this.getSuperAttributeFacade().getRootPackage();
00355     }
00356 
00357     // from org.andromda.metafacades.uml.ModelElementFacade
00358     public java.util.Collection getSourceDependencies()
00359     {
00360         return this.getSuperAttributeFacade().getSourceDependencies();
00361     }
00362 
00363     // from org.andromda.metafacades.uml.ModelElementFacade
00364     public org.andromda.metafacades.uml.StateMachineFacade getStateMachineContext()
00365     {
00366         return this.getSuperAttributeFacade().getStateMachineContext();
00367     }
00368 
00369     // from org.andromda.metafacades.uml.ModelElementFacade
00370     public java.util.Collection getStereotypeNames()
00371     {
00372         return this.getSuperAttributeFacade().getStereotypeNames();
00373     }
00374 
00375     // from org.andromda.metafacades.uml.ModelElementFacade
00376     public java.util.Collection getStereotypes()
00377     {
00378         return this.getSuperAttributeFacade().getStereotypes();
00379     }
00380 
00381     // from org.andromda.metafacades.uml.ModelElementFacade
00382     public java.util.Collection getTaggedValues()
00383     {
00384         return this.getSuperAttributeFacade().getTaggedValues();
00385     }
00386 
00387     // from org.andromda.metafacades.uml.ModelElementFacade
00388     public java.util.Collection getTargetDependencies()
00389     {
00390         return this.getSuperAttributeFacade().getTargetDependencies();
00391     }
00392 
00393     // from org.andromda.metafacades.uml.ModelElementFacade
00394     public java.lang.Object getTemplateParameter(java.lang.String parameterName)
00395     {
00396         return this.getSuperAttributeFacade().getTemplateParameter(parameterName);
00397     }
00398 
00399     // from org.andromda.metafacades.uml.ModelElementFacade
00400     public java.util.Collection getTemplateParameters()
00401     {
00402         return this.getSuperAttributeFacade().getTemplateParameters();
00403     }
00404 
00405     // from org.andromda.metafacades.uml.ModelElementFacade
00406     public java.lang.String getVisibility()
00407     {
00408         return this.getSuperAttributeFacade().getVisibility();
00409     }
00410 
00411     // from org.andromda.metafacades.uml.ModelElementFacade
00412     public boolean hasExactStereotype(java.lang.String stereotypeName)
00413     {
00414         return this.getSuperAttributeFacade().hasExactStereotype(stereotypeName);
00415     }
00416 
00417     // from org.andromda.metafacades.uml.ModelElementFacade
00418     public boolean hasStereotype(java.lang.String stereotypeName)
00419     {
00420         return this.getSuperAttributeFacade().hasStereotype(stereotypeName);
00421     }
00422 
00423     // from org.andromda.metafacades.uml.ModelElementFacade
00424     public boolean isBindingDependenciesPresent()
00425     {
00426         return this.getSuperAttributeFacade().isBindingDependenciesPresent();
00427     }
00428 
00429     // from org.andromda.metafacades.uml.ModelElementFacade
00430     public boolean isConstraintsPresent()
00431     {
00432         return this.getSuperAttributeFacade().isConstraintsPresent();
00433     }
00434 
00435     // from org.andromda.metafacades.uml.ModelElementFacade
00436     public boolean isTemplateParametersPresent()
00437     {
00438         return this.getSuperAttributeFacade().isTemplateParametersPresent();
00439     }
00440 
00441     // from org.andromda.metafacades.uml.ModelElementFacade
00442     public java.lang.String translateConstraint(java.lang.String name, java.lang.String translation)
00443     {
00444         return this.getSuperAttributeFacade().translateConstraint(name, translation);
00445     }
00446 
00447     // from org.andromda.metafacades.uml.ModelElementFacade
00448     public java.lang.String[] translateConstraints(java.lang.String translation)
00449     {
00450         return this.getSuperAttributeFacade().translateConstraints(translation);
00451     }
00452 
00453     // from org.andromda.metafacades.uml.ModelElementFacade
00454     public java.lang.String[] translateConstraints(java.lang.String kind, java.lang.String translation)
00455     {
00456         return this.getSuperAttributeFacade().translateConstraints(kind, translation);
00457     }
00458 
00462     public void initialize()
00463     {
00464         this.getSuperAttributeFacade().initialize();
00465     }
00466 
00470     public Object getValidationOwner()
00471     {
00472         Object owner = this.getSuperAttributeFacade().getValidationOwner();
00473         return owner;
00474     }
00475 
00479     public String getValidationName()
00480     {
00481         String name = this.getSuperAttributeFacade().getValidationName();
00482         return name;
00483     }
00484 
00488     public void validateInvariants(java.util.Collection validationMessages)
00489     {
00490         this.getSuperAttributeFacade().validateInvariants(validationMessages);
00491     }
00492     
00496     private static final String NAME_PROPERTY = "name";
00497     
00501     public String toString()
00502     {
00503         final StringBuffer toString = new StringBuffer(this.getClass().getName());
00504         toString.append("[");
00505         try
00506         {
00507             toString.append(org.andromda.core.common.Introspector.instance().getProperty(this, NAME_PROPERTY));
00508         }
00509         catch (final Throwable throwable)
00510         {
00511             // - just ignore when the metafacade doesn't have a name property
00512         }
00513         toString.append("]");
00514         return toString.toString();
00515     }
00516 }

Generated on Tue Jan 9 16:10:05 2007 for AndroMDA ARC by  doxygen 1.4.7