001// license-header java merge-point 002// 003// Attention: generated code (by MetafacadeLogic.vsl) - do not modify! 004// 005package org.andromda.metafacades.uml14; 006 007import java.util.Collection; 008import org.andromda.core.metafacade.ModelValidationMessage; 009import org.andromda.metafacades.uml.ArgumentFacade; 010import org.omg.uml.behavioralelements.commonbehavior.Argument; 011 012/** 013 * Represents an argument to an operation. All parameters except for the return parameter. 014 * MetafacadeLogic for ArgumentFacade 015 * 016 * @see ArgumentFacade 017 */ 018public abstract class ArgumentFacadeLogic 019 extends ModelElementFacadeLogicImpl 020 implements ArgumentFacade 021{ 022 /** 023 * The underlying UML object 024 * @see Argument 025 */ 026 protected Argument metaObject; 027 028 /** Create Metafacade implementation instance using the MetafacadeFactory from the context 029 * @param metaObjectIn 030 * @param context 031 */ 032 protected ArgumentFacadeLogic(Argument metaObjectIn, String context) 033 { 034 super(metaObjectIn, getContext(context)); 035 this.metaObject = metaObjectIn; 036 } 037 038 /** 039 * Gets the context for this metafacade logic instance. 040 * @param context String. Set to ArgumentFacade if null 041 * @return context String 042 */ 043 private static String getContext(String context) 044 { 045 if (context == null) 046 { 047 context = "org.andromda.metafacades.uml.ArgumentFacade"; 048 } 049 return context; 050 } 051 052 /** Reset context only for non-root metafacades 053 * @param context 054 */ 055 @Override 056 public void resetMetafacadeContext(String context) 057 { 058 if (!this.contextRoot) // reset context only for non-root metafacades 059 { 060 context = getContext(context); // to have same value as in original constructor call 061 setMetafacadeContext (context); 062 } 063 } 064 065 /** 066 * @return boolean true always 067 * @see ArgumentFacade 068 */ 069 public boolean isArgumentFacadeMetaType() 070 { 071 return true; 072 } 073 074 /** 075 * @param validationMessages Collection<ModelValidationMessage> 076 * @see ModelElementFacadeLogicImpl#validateInvariants(Collection validationMessages) 077 */ 078 @Override 079 public void validateInvariants(Collection<ModelValidationMessage> validationMessages) 080 { 081 super.validateInvariants(validationMessages); 082 } 083}