public boolean delete() { boolean result = super.delete(); boolean delete_error = false; String errorMsg = "The following relationships were not torn down by the Instance State Machine.dispose call: "; ModelClass_c testR518Inst = ModelClass_c.getOneO_OBJOnR518(this, false); if (testR518Inst != null) { delete_error = true; errorMsg = errorMsg + "518 "; } StateMachine_c testR517Inst1 = StateMachine_c.getOneSM_SMOnR517(this, false); if (testR517Inst1 != null) { delete_error = true; errorMsg = errorMsg + "517 "; } if (delete_error == true) { if (CorePlugin.getDefault().isDebugging()) { Ooaofooa.log.println(ILogger.DELETE, "Instance State Machine", errorMsg); } else { Exception e = new Exception(); e.fillInStackTrace(); CorePlugin.logError(errorMsg, e); } } return result; }
public boolean delete() { boolean result = super.delete(); boolean delete_error = false; String errorMsg = "The following relationships were not torn down by the Assign to Member.dispose call: "; Value_c testR609Inst = Value_c.getOneV_VALOnR609(this, false); if (testR609Inst != null) { delete_error = true; errorMsg = errorMsg + "609 "; } Value_c testR689Inst = Value_c.getOneV_VALOnR689(this, false); if (testR689Inst != null) { delete_error = true; errorMsg = errorMsg + "689 "; } Statement_c testR603Inst11 = Statement_c.getOneACT_SMTOnR603(this, false); if (testR603Inst11 != null) { delete_error = true; errorMsg = errorMsg + "603 "; } if (delete_error == true) { if (CorePlugin.getDefault().isDebugging()) { Ooaofooa.log.println(ILogger.DELETE, "Assign to Member", errorMsg); } else { Exception e = new Exception(); e.fillInStackTrace(); CorePlugin.logError(errorMsg, e); } } return result; }
public boolean delete() { boolean result = super.delete(); boolean delete_error = false; String errorMsg = "The following relationships were not torn down by the Data Type in Package.dispose call: "; DataType_c testR39Inst = DataType_c.getOneS_DTOnR39(this, false); if (testR39Inst != null) { delete_error = true; errorMsg = errorMsg + "39 "; } DataTypePackage_c testR39InstOth = DataTypePackage_c.getOneS_DPKOnR39(this, false); if (testR39InstOth != null) { delete_error = true; errorMsg = errorMsg + "39 "; } if (delete_error == true) { if (CorePlugin.getDefault().isDebugging()) { Ooaofooa.log.println(ILogger.DELETE, "Data Type in Package", errorMsg); } else { Exception e = new Exception(); e.fillInStackTrace(); CorePlugin.logError(errorMsg, e); } } return result; }
public boolean delete() { boolean result = super.delete(); boolean delete_error = false; String errorMsg = "The following relationships were not torn down by the Transient Value Reference.dispose call: "; Variable_c testR805Inst = Variable_c.getOneV_VAROnR805(this, false); if (testR805Inst != null) { delete_error = true; errorMsg = errorMsg + "805 "; } Value_c testR801Inst13 = Value_c.getOneV_VALOnR801(this, false); if (testR801Inst13 != null) { delete_error = true; errorMsg = errorMsg + "801 "; } if (delete_error == true) { if (CorePlugin.getDefault().isDebugging()) { Ooaofooa.log.println(ILogger.DELETE, "Transient Value Reference", errorMsg); } else { Exception e = new Exception(); e.fillInStackTrace(); CorePlugin.logError(errorMsg, e); } } return result; }
/** Return configured image if none exists for the element type */ public Image getImage(Object element) { Image image = CorePlugin.getImageFor(element, false); if (image != null) { return image; } return CorePlugin.getImageFor("ImportedFunctionPackage.gif"); }
/** Return configured image if none exists for the element type */ public Image getImage(Object element) { Image image = CorePlugin.getImageFor(element, false); if (image != null) { return image; } return CorePlugin.getImageFor("RequiredSignal.gif"); }
public boolean delete() { boolean result = super.delete(); boolean delete_error = false; String errorMsg = "The following relationships were not torn down by the Bridge Invocation.dispose call: "; ActualParameter_c testR628Inst = ActualParameter_c.getOneV_PAROnR628(this, false); if (testR628Inst != null) { delete_error = true; errorMsg = errorMsg + "628 "; } Statement_c testR603Inst7 = Statement_c.getOneACT_SMTOnR603(this, false); if (testR603Inst7 != null) { delete_error = true; errorMsg = errorMsg + "603 "; } Bridge_c testR674Inst = Bridge_c.getOneS_BRGOnR674(this, false); if (testR674Inst != null) { delete_error = true; errorMsg = errorMsg + "674 "; } if (delete_error == true) { if (CorePlugin.getDefault().isDebugging()) { Ooaofooa.log.println(ILogger.DELETE, "Bridge Invocation", errorMsg); } else { Exception e = new Exception(); e.fillInStackTrace(); CorePlugin.logError(errorMsg, e); } } return result; }
public boolean delete() { boolean result = super.delete(); boolean delete_error = false; String errorMsg = "The following relationships were not torn down by the Component in Component.dispose call: "; Component_c testR4202Inst = Component_c.getOneC_COnR4202(this, false); if (testR4202Inst != null) { delete_error = true; errorMsg = errorMsg + "4202 "; } Component_c testR4203Inst = Component_c.getOneC_COnR4203(this, false); if (testR4203Inst != null) { delete_error = true; errorMsg = errorMsg + "4203 "; } if (delete_error == true) { if (CorePlugin.getDefault().isDebugging()) { Ooaofooa.log.println(ILogger.DELETE, "Component in Component", errorMsg); } else { Exception e = new Exception(); e.fillInStackTrace(); CorePlugin.logError(errorMsg, e); } } return result; }
// declare transform functions public void Dispose() { Ooaofgraphics.log.println( ILogger.OPERATION, "GraphNode", " Operation entered: Graphnode::Dispose"); final ModelRoot modelRoot = getModelRoot(); Graphelement_c v_element = Graphelement_c.getOneDIM_GEOnR301(this); if (((v_element != null))) { if (v_element != null) { v_element.Dispose(); } else { Throwable t = new Throwable(); t.fillInStackTrace(); CorePlugin.logError("Attempted to call an operation on a null instance.", t); } } else { Shape_c v_shape = Shape_c.getOneGD_SHPOnR19(this); if (((v_shape != null))) { this.unrelateAcrossR19From(v_shape); if (v_shape != null) { v_shape.Dispose(); } else { Throwable t = new Throwable(); t.fillInStackTrace(); CorePlugin.logError("Attempted to call an operation on a null instance.", t); } } FloatingText_c v_ctxt = FloatingText_c.getOneGD_CTXTOnR19(this); if (((v_ctxt != null))) { this.unrelateAcrossR19From(v_ctxt); if (v_ctxt != null) { v_ctxt.Dispose(); } else { Throwable t = new Throwable(); t.fillInStackTrace(); CorePlugin.logError("Attempted to call an operation on a null instance.", t); } } if (delete()) { Ooaofgraphics.getDefaultInstance() .fireModelElementDeleted( new BaseModelDelta(Modeleventnotification_c.DELTA_DELETE, this)); } } } // End dispose
// declare transform functions public void Dispose() { Ooaofooa.log.println( ILogger.OPERATION, "Component Result Set", " Operation entered: ComponentResultSet::Dispose"); final ModelRoot modelRoot = getModelRoot(); Component_c v_component = Component_c.getOneC_COnR8007(this); ComponentVisibility_c[] v_elemVis = ComponentVisibility_c.getManyPE_CVSsOnR8008(this); ComponentVisibility_c v_elemV = null; for (int i37247 = 0; i37247 < v_elemVis.length; i37247++) { v_elemV = v_elemVis[i37247]; PackageableElement_c v_pe = PackageableElement_c.getOnePE_PEOnR8004(v_elemV); if (v_elemV != null) { v_elemV.unrelateAcrossR8004From(v_component); v_elemV.unrelateAcrossR8004From(v_pe); } else { Throwable t = new Throwable(); t.fillInStackTrace(); CorePlugin.logError("Unrelate using attempted on null link class instance.", t); } this.unrelateAcrossR8008From(v_elemV); if (v_elemV != null) { // get the location of this element in the instance list // before deleting if (v_elemV.delete()) { Ooaofooa.getDefaultInstance() .fireModelElementDeleted( new BaseModelDelta(Modeleventnotification_c.DELTA_DELETE, v_elemV)); } } else { Throwable t = new Throwable(); t.fillInStackTrace(); CorePlugin.logError("Delete attempted on null instance.", t); } } this.unrelateAcrossR8007From(v_component); if (delete()) { Ooaofooa.getDefaultInstance() .fireModelElementDeleted(new BaseModelDelta(Modeleventnotification_c.DELTA_DELETE, this)); } } // End dispose
public void unrelateAcrossR39From(DataType_c target, boolean notifyChanges) { if (target == null) return; if (ContainsDataType == null) return; // already unrelated if (target != ContainsDataType) { Exception e = new Exception(); e.fillInStackTrace(); CorePlugin.logError("Tried to unrelate from non-related instance across R39", e); return; } if (target != null) { target.clearBackPointerR39To(this); } if (ContainsDataType != null) { m_dt_id = ContainsDataType.getDt_id(); if (IdAssigner.NULL_UUID.equals(m_dt_id)) { m_dt_id = ContainsDataType.getDt_idCachedValue(); } ContainsDataType = null; target.removeRef(); if (notifyChanges) { RelationshipChangeModelDelta change = new RelationshipChangeModelDelta( Modeleventnotification_c.DELTA_ELEMENT_UNRELATED, this, target, "39", ""); Ooaofooa.getDefaultInstance().fireModelElementRelationChanged(change); } } }
// declare transform functions public void Dispose() { Ooaofooa.log.println( ILogger.OPERATION, "Bridge Invocation", " Operation entered: BridgeInvocation::Dispose"); final ModelRoot modelRoot = getModelRoot(); Bridge_c v_brg = Bridge_c.getOneS_BRGOnR674(this); if ((!(v_brg == null))) { this.unrelateAcrossR674From(v_brg); } ActualParameter_c[] v_parm_set = ActualParameter_c.getManyV_PARsOnR628(this); ActualParameter_c v_parm = null; for (int i37268 = 0; i37268 < v_parm_set.length; i37268++) { v_parm = v_parm_set[i37268]; this.unrelateAcrossR628From(v_parm); if (v_parm != null) { v_parm.Dispose(); } else { Throwable t = new Throwable(); t.fillInStackTrace(); CorePlugin.logError("Attempted to call an operation on a null instance.", t); } } delete(); } // End dispose
public void unrelateAcrossR1013From(MessageArgument_c target, boolean notifyChanges) { if (target == null) return; if (IsSupertypeMessageArgument == null) return; // already unrelated if (target != IsSupertypeMessageArgument) { Exception e = new Exception(); e.fillInStackTrace(); CorePlugin.logError("Tried to unrelate from non-related instance across R1013", e); return; } if (target != null) { target.clearBackPointerR1013To(this); } if (IsSupertypeMessageArgument != null) { m_arg_id = IsSupertypeMessageArgument.getArg_id(); IsSupertypeMessageArgument = null; target.removeRef(); if (notifyChanges) { RelationshipChangeModelDelta change = new RelationshipChangeModelDelta( Modeleventnotification_c.DELTA_ELEMENT_UNRELATED, this, target, "1013", ""); Ooaofooa.getDefaultInstance().fireModelElementRelationChanged(change); } } }
public void unrelateAcrossR518From(ModelClass_c target, boolean notifyChanges) { if (target == null) return; if (ModelClass == null) return; // already unrelated if (target != ModelClass) { Exception e = new Exception(); e.fillInStackTrace(); CorePlugin.logError("Tried to unrelate from non-related instance across R518", e); return; } if (target != null) { target.clearBackPointerR518To(this); } if (ModelClass != null) { m_obj_id = ModelClass.getObj_id(); if (IdAssigner.NULL_UUID.equals(m_obj_id)) { m_obj_id = ModelClass.getObj_idCachedValue(); } ModelClass = null; target.removeRef(); UmlProblem.removeXtUMLProblem(this, target); if (notifyChanges) { RelationshipChangeModelDelta change = new RelationshipChangeModelDelta( Modeleventnotification_c.DELTA_ELEMENT_UNRELATED, this, target, "518", ""); Ooaofooa.getDefaultInstance().fireModelElementRelationChanged(change); } } }
public static InstanceStateMachine_c getOneSM_ISMOnR518( ModelRoot modelRoot, ModelClass_c target, ClassQueryInterface_c test, boolean loadComponent) { InstanceStateMachine_c result = null; result = find_getOneSM_ISMOnR518(modelRoot, target, test); if (result == null && (loadComponent)) { // Containment Relation List comps = PersistenceManager.findAllChildComponents( target.getPersistableComponent(), modelRoot, InstanceStateMachine_c.class); for (int i = 0; i < comps.size(); i++) { PersistableModelComponent component = (PersistableModelComponent) comps.get(i); if (!component.isLoaded()) { try { component.load(new NullProgressMonitor()); result = find_getOneSM_ISMOnR518(modelRoot, target, test); if (result != null) return result; } catch (Exception e) { CorePlugin.logError("Error Loading component", e); } } } } return result; }
public boolean delete() { boolean result = super.delete(); boolean delete_error = false; String errorMsg = "The following relationships were not torn down by the Informal Argument.dispose call: "; MessageArgument_c testR1013Inst5 = MessageArgument_c.getOneMSG_AOnR1013(this, false); if (testR1013Inst5 != null) { delete_error = true; errorMsg = errorMsg + "1013 "; } if (delete_error == true) { if (CorePlugin.getDefault().isDebugging()) { Ooaofooa.log.println(ILogger.DELETE, "Informal Argument", errorMsg); } else { Exception e = new Exception(); e.fillInStackTrace(); CorePlugin.logError(errorMsg, e); } } return result; }
public boolean delete() { boolean result = super.delete(); boolean delete_error = false; String errorMsg = "The following relationships were not torn down by the Description Query.dispose call: "; Query_c testR9600Inst3 = Query_c.getOneSQU_QOnR9600(this, false); if (testR9600Inst3 != null) { delete_error = true; errorMsg = errorMsg + "9600 "; } if (delete_error == true) { if (CorePlugin.getDefault().isDebugging()) { Ooaofooa.log.println(ILogger.DELETE, "Description Query", errorMsg); } else { Exception e = new Exception(); e.fillInStackTrace(); CorePlugin.logError(errorMsg, e); } } return result; }
// declare transform functions public void Dispose() { Ooaofooa.log.println( ILogger.OPERATION, "Assign to Member", " Operation entered: AssignToMember::Dispose"); final ModelRoot modelRoot = getModelRoot(); Value_c v_value = Value_c.getOneV_VALOnR609(this); if (((v_value != null))) { this.unrelateAcrossR609From(v_value); if (v_value != null) { v_value.Dispose(); } else { Throwable t = new Throwable(); t.fillInStackTrace(); CorePlugin.logError("Attempted to call an operation on a null instance.", t); } } v_value = Value_c.getOneV_VALOnR689(this); if (((v_value != null))) { this.unrelateAcrossR689From(v_value); if (v_value != null) { v_value.Dispose(); } else { Throwable t = new Throwable(); t.fillInStackTrace(); CorePlugin.logError("Attempted to call an operation on a null instance.", t); } } delete(); } // End dispose
public void Pastestatemachineevent(final java.util.UUID p_Id) { Ooaofooa.log.println( ILogger.OPERATION, "Instance State Machine", " Operation entered: InstanceStateMachine::Pastestatemachineevent"); final ModelRoot modelRoot = getModelRoot(); StateMachine_c v_sm = StateMachine_c.getOneSM_SMOnR517(this); if (v_sm != null) { v_sm.Pastestatemachineevent(p_Id); } else { Throwable t = new Throwable(); t.fillInStackTrace(); CorePlugin.logError("Attempted to call an operation on a null instance.", t); } } // End pasteStateMachineEvent
public void Dispose() { Ooaofooa.log.println( ILogger.OPERATION, "Instance State Machine", " Operation entered: InstanceStateMachine::Dispose"); final ModelRoot modelRoot = getModelRoot(); StateMachine_c v_sm = StateMachine_c.getOneSM_SMOnR517(this); if (v_sm != null) { v_sm.Dispose(); } else { Throwable t = new Throwable(); t.fillInStackTrace(); CorePlugin.logError("Attempted to call an operation on a null instance.", t); } } // End dispose
public static InformalArgument_c InformalArgumentInstance( ModelRoot modelRoot, ClassQueryInterface_c test, boolean loadComponent) { InformalArgument_c result = findInformalArgumentInstance(modelRoot, test, loadComponent); if (result == null && loadComponent) { List pmcs = PersistenceManager.findAllComponents(modelRoot, InformalArgument_c.class); for (int i = 0; i < pmcs.size(); i++) { PersistableModelComponent component = (PersistableModelComponent) pmcs.get(i); if (!component.isLoaded()) { try { component.load(new NullProgressMonitor()); result = findInformalArgumentInstance(modelRoot, test, loadComponent); if (result != null) return result; } catch (Exception e) { CorePlugin.logError("Error Loading component", e); } } } } if (result != null && loadComponent) { result.loadProxy(); } return result; }
public void unrelateAcrossR805From(Variable_c target, boolean notifyChanges) { if (target == null) return; if (ReferencesVariable == null) return; // already unrelated if (target != ReferencesVariable) { Exception e = new Exception(); e.fillInStackTrace(); CorePlugin.logError("Tried to unrelate from non-related instance across R805", e); return; } if (target != null) { target.clearBackPointerR805To(this); } if (ReferencesVariable != null) { m_var_id = ReferencesVariable.getVar_id(); ReferencesVariable = null; target.removeRef(); } }
public void unrelateAcrossR674From(Bridge_c target, boolean notifyChanges) { if (target == null) return; if (IsAnInvocationOfBridge == null) return; // already unrelated if (target != IsAnInvocationOfBridge) { Exception e = new Exception(); e.fillInStackTrace(); CorePlugin.logError("Tried to unrelate from non-related instance across R674", e); return; } if (target != null) { target.clearBackPointerR674To(this); } if (IsAnInvocationOfBridge != null) { m_brg_id = IsAnInvocationOfBridge.getBrg_id(); IsAnInvocationOfBridge = null; target.removeRef(); } }
public void unrelateAcrossR689From(Value_c target, boolean notifyChanges) { if (target == null) return; if (WritesValue == null) return; // already unrelated if (target != WritesValue) { Exception e = new Exception(); e.fillInStackTrace(); CorePlugin.logError("Tried to unrelate from non-related instance across R689", e); return; } if (target != null) { target.clearBackPointerR689To(this); } if (WritesValue != null) { m_l_value_id = WritesValue.getValue_id(); WritesValue = null; target.removeRef(); } }
public void unrelateAcrossR603From(Statement_c target, boolean notifyChanges) { if (target == null) return; if (IsSupertypeStatement == null) return; // already unrelated if (target != IsSupertypeStatement) { Exception e = new Exception(); e.fillInStackTrace(); CorePlugin.logError("Tried to unrelate from non-related instance across R603", e); return; } if (target != null) { target.clearBackPointerR603To(this); } if (IsSupertypeStatement != null) { m_statement_id = IsSupertypeStatement.getStatement_id(); IsSupertypeStatement = null; target.removeRef(); } }
public boolean checkConsistency() { Ooaofooa.log.println( ILogger.OPERATION, "Informal Argument", //$NON-NLS-1$ " Operation entered: Informal Argument::checkConsistency"); //$NON-NLS-1$ if (Boolean.valueOf(System.getenv("PTC_MCC_ENABLED")) == false) { // $NON-NLS-1$ return true; } ModelRoot modelRoot = getModelRoot(); boolean retval = true; class InformalArgument_c_test39587_c implements ClassQueryInterface_c { InformalArgument_c_test39587_c(java.util.UUID p39588) { m_p39588 = p39588; } private java.util.UUID m_p39588; public boolean evaluate(Object candidate) { InformalArgument_c selected = (InformalArgument_c) candidate; boolean retval = false; retval = (selected.getArg_id().equals(m_p39588)); return retval; } } InformalArgument_c[] objs39586 = InformalArgument_c.InformalArgumentInstances( modelRoot, new InformalArgument_c_test39587_c(getArg_id())); if (((objs39586.length) == 0)) { if (CorePlugin.getDefault().isDebugging()) { Ooaofooa.log.println( ILogger.CONSISTENCY, "Informal Argument", //$NON-NLS-1$ "Consistency: Object: Informal Argument: Cardinality of an identifier is zero. " //$NON-NLS-1$ + "Actual Value: " + Integer.toString(objs39586.length)); // $NON-NLS-1$ } else { Exception e = new Exception(); CorePlugin.logError( "Consistency: Object: Informal Argument: Cardinality of an identifier is zero. " //$NON-NLS-1$ + "Actual Value: " //$NON-NLS-1$ + Integer.toString(objs39586.length), e); } retval = false; } if (((objs39586.length) > 1)) { if (CorePlugin.getDefault().isDebugging()) { Ooaofooa.log.println( ILogger.CONSISTENCY, "Informal Argument", //$NON-NLS-1$ "Consistency: Object: Informal Argument: Cardinality of an identifier is greater than 1. " //$NON-NLS-1$ + "Actual Value: " //$NON-NLS-1$ + Integer.toString(objs39586.length) + " Arg_ID: " + "Not Printable"); //$NON-NLS-1$ } else { Exception e = new Exception(); CorePlugin.logError( "Consistency: Object: Informal Argument: Cardinality of an identifier is greater than 1. " //$NON-NLS-1$ + "Actual Value: " //$NON-NLS-1$ + Integer.toString(objs39586.length) + " Arg_ID: " + "Not Printable", e); //$NON-NLS-1$ } retval = false; } // Informal Argument is a subtype in association: rel.Numb = 1013 // The supertype class is: Message Argument class MessageArgument_c_test39592_c implements ClassQueryInterface_c { MessageArgument_c_test39592_c(java.util.UUID p39593) { m_p39593 = p39593; } private java.util.UUID m_p39593; public boolean evaluate(Object candidate) { MessageArgument_c selected = (MessageArgument_c) candidate; boolean retval = false; retval = (selected.getArg_id().equals(m_p39593)); return retval; } } MessageArgument_c[] objs39591 = MessageArgument_c.MessageArgumentInstances( modelRoot, new MessageArgument_c_test39592_c(getArg_id())); if (((objs39591.length) != 1)) { if (CorePlugin.getDefault().isDebugging()) { Ooaofooa.log.println( ILogger.CONSISTENCY, "Informal Argument", //$NON-NLS-1$ "Consistency: Object: Informal Argument: Association: 1013: Cardinality of a supertype is not equal to 1. " //$NON-NLS-1$ + "Actual Value: " + Integer.toString(objs39591.length)); // $NON-NLS-1$ } else { Exception e = new Exception(); CorePlugin.logError( "Consistency: Object: Informal Argument: Association: 1013: Cardinality of a supertype is not equal to 1. " //$NON-NLS-1$ + "Actual Value: " //$NON-NLS-1$ + Integer.toString(objs39591.length), e); } retval = false; } return retval; }
public boolean checkConsistency() { Ooaofooa.log.println( ILogger.OPERATION, "Transient Value Reference", //$NON-NLS-1$ " Operation entered: Transient Value Reference::checkConsistency"); //$NON-NLS-1$ if (Boolean.valueOf(System.getenv("PTC_MCC_ENABLED")) == false) { // $NON-NLS-1$ return true; } ModelRoot modelRoot = getModelRoot(); boolean retval = true; class TransientValueReference_c_test37419_c implements ClassQueryInterface_c { TransientValueReference_c_test37419_c(java.util.UUID p37420) { m_p37420 = p37420; } private java.util.UUID m_p37420; public boolean evaluate(Object candidate) { TransientValueReference_c selected = (TransientValueReference_c) candidate; boolean retval = false; retval = (selected.getValue_id().equals(m_p37420)); return retval; } } TransientValueReference_c[] objs37418 = TransientValueReference_c.TransientValueReferenceInstances( modelRoot, new TransientValueReference_c_test37419_c(getValue_id())); if (((objs37418.length) == 0)) { if (CorePlugin.getDefault().isDebugging()) { Ooaofooa.log.println( ILogger.CONSISTENCY, "Transient Value Reference", //$NON-NLS-1$ "Consistency: Object: Transient Value Reference: Cardinality of an identifier is zero. " //$NON-NLS-1$ + "Actual Value: " + Integer.toString(objs37418.length)); // $NON-NLS-1$ } else { Exception e = new Exception(); CorePlugin.logError( "Consistency: Object: Transient Value Reference: Cardinality of an identifier is zero. " //$NON-NLS-1$ + "Actual Value: " //$NON-NLS-1$ + Integer.toString(objs37418.length), e); } retval = false; } if (((objs37418.length) > 1)) { if (CorePlugin.getDefault().isDebugging()) { Ooaofooa.log.println( ILogger.CONSISTENCY, "Transient Value Reference", //$NON-NLS-1$ "Consistency: Object: Transient Value Reference: Cardinality of an identifier is greater than 1. " //$NON-NLS-1$ + "Actual Value: " //$NON-NLS-1$ + Integer.toString(objs37418.length) + " Value_ID: " + "Not Printable"); //$NON-NLS-1$ } else { Exception e = new Exception(); CorePlugin.logError( "Consistency: Object: Transient Value Reference: Cardinality of an identifier is greater than 1. " //$NON-NLS-1$ + "Actual Value: " //$NON-NLS-1$ + Integer.toString(objs37418.length) + " Value_ID: " + "Not Printable", e); //$NON-NLS-1$ } retval = false; } // Transient Value Reference is a subtype in association: rel.Numb = 801 // The supertype class is: Value class Value_c_test37424_c implements ClassQueryInterface_c { Value_c_test37424_c(java.util.UUID p37425) { m_p37425 = p37425; } private java.util.UUID m_p37425; public boolean evaluate(Object candidate) { Value_c selected = (Value_c) candidate; boolean retval = false; retval = (selected.getValue_id().equals(m_p37425)); return retval; } } Value_c[] objs37423 = Value_c.ValueInstances(modelRoot, new Value_c_test37424_c(getValue_id())); if (((objs37423.length) != 1)) { if (CorePlugin.getDefault().isDebugging()) { Ooaofooa.log.println( ILogger.CONSISTENCY, "Transient Value Reference", //$NON-NLS-1$ "Consistency: Object: Transient Value Reference: Association: 801: Cardinality of a supertype is not equal to 1. " //$NON-NLS-1$ + "Actual Value: " + Integer.toString(objs37423.length)); // $NON-NLS-1$ } else { Exception e = new Exception(); CorePlugin.logError( "Consistency: Object: Transient Value Reference: Association: 801: Cardinality of a supertype is not equal to 1. " //$NON-NLS-1$ + "Actual Value: " //$NON-NLS-1$ + Integer.toString(objs37423.length), e); } retval = false; } // Transient Value Reference is a referring class in association: rel.Numb = 805 // The participating class is: Variable class Variable_c_test37427_c implements ClassQueryInterface_c { Variable_c_test37427_c(java.util.UUID p37428) { m_p37428 = p37428; } private java.util.UUID m_p37428; public boolean evaluate(Object candidate) { Variable_c selected = (Variable_c) candidate; boolean retval = false; retval = (selected.getVar_id().equals(m_p37428)); return retval; } } Variable_c[] objs37426 = Variable_c.VariableInstances(modelRoot, new Variable_c_test37427_c(getVar_id())); // The participant is unconditional // The multiplicity of the participant is one if (((objs37426.length) != 1)) { if (CorePlugin.getDefault().isDebugging()) { Ooaofooa.log.println( ILogger.CONSISTENCY, "Transient Value Reference", //$NON-NLS-1$ "Consistency: Object: Transient Value Reference: Association: 805: Cardinality of a participant is not equal to 1. " //$NON-NLS-1$ + "Actual Value: " //$NON-NLS-1$ + Integer.toString(objs37426.length) + " Var_ID: " + "Not Printable"); //$NON-NLS-1$ } else { Exception e = new Exception(); CorePlugin.logError( "Consistency: Object: Transient Value Reference: Association: 805: Cardinality of a participant is not equal to 1. " //$NON-NLS-1$ + "Actual Value: " //$NON-NLS-1$ + Integer.toString(objs37426.length) + " Var_ID: " + "Not Printable", e); //$NON-NLS-1$ } retval = false; } return retval; }
public boolean checkConsistency() { Ooaofooa.log.println( ILogger.OPERATION, "Assign to Member", //$NON-NLS-1$ " Operation entered: Assign to Member::checkConsistency"); //$NON-NLS-1$ if (Boolean.valueOf(System.getenv("PTC_MCC_ENABLED")) == false) { // $NON-NLS-1$ return true; } ModelRoot modelRoot = getModelRoot(); boolean retval = true; class AssignToMember_c_test40732_c implements ClassQueryInterface_c { AssignToMember_c_test40732_c(java.util.UUID p40733) { m_p40733 = p40733; } private java.util.UUID m_p40733; public boolean evaluate(Object candidate) { AssignToMember_c selected = (AssignToMember_c) candidate; boolean retval = false; retval = (selected.getStatement_id().equals(m_p40733)); return retval; } } AssignToMember_c[] objs40731 = AssignToMember_c.AssignToMemberInstances( modelRoot, new AssignToMember_c_test40732_c(getStatement_id())); if (((objs40731.length) == 0)) { if (CorePlugin.getDefault().isDebugging()) { Ooaofooa.log.println( ILogger.CONSISTENCY, "Assign to Member", //$NON-NLS-1$ "Consistency: Object: Assign to Member: Cardinality of an identifier is zero. " //$NON-NLS-1$ + "Actual Value: " + Integer.toString(objs40731.length)); // $NON-NLS-1$ } else { Exception e = new Exception(); CorePlugin.logError( "Consistency: Object: Assign to Member: Cardinality of an identifier is zero. " //$NON-NLS-1$ + "Actual Value: " //$NON-NLS-1$ + Integer.toString(objs40731.length), e); } retval = false; } if (((objs40731.length) > 1)) { if (CorePlugin.getDefault().isDebugging()) { Ooaofooa.log.println( ILogger.CONSISTENCY, "Assign to Member", //$NON-NLS-1$ "Consistency: Object: Assign to Member: Cardinality of an identifier is greater than 1. " //$NON-NLS-1$ + "Actual Value: " //$NON-NLS-1$ + Integer.toString(objs40731.length) + " Statement_ID: " + "Not Printable"); //$NON-NLS-1$ } else { Exception e = new Exception(); CorePlugin.logError( "Consistency: Object: Assign to Member: Cardinality of an identifier is greater than 1. " //$NON-NLS-1$ + "Actual Value: " //$NON-NLS-1$ + Integer.toString(objs40731.length) + " Statement_ID: " + "Not Printable", e); //$NON-NLS-1$ } retval = false; } // Assign to Member is a subtype in association: rel.Numb = 603 // The supertype class is: Statement class Statement_c_test40737_c implements ClassQueryInterface_c { Statement_c_test40737_c(java.util.UUID p40738) { m_p40738 = p40738; } private java.util.UUID m_p40738; public boolean evaluate(Object candidate) { Statement_c selected = (Statement_c) candidate; boolean retval = false; retval = (selected.getStatement_id().equals(m_p40738)); return retval; } } Statement_c[] objs40736 = Statement_c.StatementInstances(modelRoot, new Statement_c_test40737_c(getStatement_id())); if (((objs40736.length) != 1)) { if (CorePlugin.getDefault().isDebugging()) { Ooaofooa.log.println( ILogger.CONSISTENCY, "Assign to Member", //$NON-NLS-1$ "Consistency: Object: Assign to Member: Association: 603: Cardinality of a supertype is not equal to 1. " //$NON-NLS-1$ + "Actual Value: " + Integer.toString(objs40736.length)); // $NON-NLS-1$ } else { Exception e = new Exception(); CorePlugin.logError( "Consistency: Object: Assign to Member: Association: 603: Cardinality of a supertype is not equal to 1. " //$NON-NLS-1$ + "Actual Value: " //$NON-NLS-1$ + Integer.toString(objs40736.length), e); } retval = false; } // Assign to Member is a referring class in association: rel.Numb = 609 // The participating class is: Value class Value_c_test40740_c implements ClassQueryInterface_c { Value_c_test40740_c(java.util.UUID p40741) { m_p40741 = p40741; } private java.util.UUID m_p40741; public boolean evaluate(Object candidate) { Value_c selected = (Value_c) candidate; boolean retval = false; retval = (selected.getValue_id().equals(m_p40741)); return retval; } } Value_c[] objs40739 = Value_c.ValueInstances(modelRoot, new Value_c_test40740_c(getR_value_id())); // The participant is unconditional // The multiplicity of the participant is one if (((objs40739.length) != 1)) { if (CorePlugin.getDefault().isDebugging()) { Ooaofooa.log.println( ILogger.CONSISTENCY, "Assign to Member", //$NON-NLS-1$ "Consistency: Object: Assign to Member: Association: 609: Cardinality of a participant is not equal to 1. " //$NON-NLS-1$ + "Actual Value: " //$NON-NLS-1$ + Integer.toString(objs40739.length) + " r_Value_ID: " + "Not Printable"); //$NON-NLS-1$ } else { Exception e = new Exception(); CorePlugin.logError( "Consistency: Object: Assign to Member: Association: 609: Cardinality of a participant is not equal to 1. " //$NON-NLS-1$ + "Actual Value: " //$NON-NLS-1$ + Integer.toString(objs40739.length) + " r_Value_ID: " + "Not Printable", e); //$NON-NLS-1$ } retval = false; } // Assign to Member is a referring class in association: rel.Numb = 689 // The participating class is: Value class Value_c_test40743_c implements ClassQueryInterface_c { Value_c_test40743_c(java.util.UUID p40744) { m_p40744 = p40744; } private java.util.UUID m_p40744; public boolean evaluate(Object candidate) { Value_c selected = (Value_c) candidate; boolean retval = false; retval = (selected.getValue_id().equals(m_p40744)); return retval; } } Value_c[] objs40742 = Value_c.ValueInstances(modelRoot, new Value_c_test40743_c(getL_value_id())); // The participant is unconditional // The multiplicity of the participant is one if (((objs40742.length) != 1)) { if (CorePlugin.getDefault().isDebugging()) { Ooaofooa.log.println( ILogger.CONSISTENCY, "Assign to Member", //$NON-NLS-1$ "Consistency: Object: Assign to Member: Association: 689: Cardinality of a participant is not equal to 1. " //$NON-NLS-1$ + "Actual Value: " //$NON-NLS-1$ + Integer.toString(objs40742.length) + " l_Value_ID: " + "Not Printable"); //$NON-NLS-1$ } else { Exception e = new Exception(); CorePlugin.logError( "Consistency: Object: Assign to Member: Association: 689: Cardinality of a participant is not equal to 1. " //$NON-NLS-1$ + "Actual Value: " //$NON-NLS-1$ + Integer.toString(objs40742.length) + " l_Value_ID: " + "Not Printable", e); //$NON-NLS-1$ } retval = false; } return retval; }
public boolean checkConsistency() { Ooaofooa.log.println( ILogger.OPERATION, "Data Type in Package", //$NON-NLS-1$ " Operation entered: Data Type in Package::checkConsistency"); //$NON-NLS-1$ if (Boolean.valueOf(System.getenv("PTC_MCC_ENABLED")) == false) { // $NON-NLS-1$ return true; } ModelRoot modelRoot = getModelRoot(); boolean retval = true; class DataTypeInPackage_c_test55160_c implements ClassQueryInterface_c { DataTypeInPackage_c_test55160_c(java.util.UUID p55161, java.util.UUID p55162) { m_p55161 = p55161; m_p55162 = p55162; } private java.util.UUID m_p55161; private java.util.UUID m_p55162; public boolean evaluate(Object candidate) { DataTypeInPackage_c selected = (DataTypeInPackage_c) candidate; boolean retval = false; retval = (selected.getPackage_id().equals(m_p55161)) & (selected.getDt_id().equals(m_p55162)); return retval; } } DataTypeInPackage_c[] objs55159 = DataTypeInPackage_c.DataTypeInPackageInstances( modelRoot, new DataTypeInPackage_c_test55160_c(getPackage_id(), getDt_id())); if (((objs55159.length) == 0)) { if (CorePlugin.getDefault().isDebugging()) { Ooaofooa.log.println( ILogger.CONSISTENCY, "Data Type in Package", //$NON-NLS-1$ "Consistency: Object: Data Type in Package: Cardinality of an identifier is zero. " //$NON-NLS-1$ + "Actual Value: " + Integer.toString(objs55159.length)); // $NON-NLS-1$ } else { Exception e = new Exception(); CorePlugin.logError( "Consistency: Object: Data Type in Package: Cardinality of an identifier is zero. " //$NON-NLS-1$ + "Actual Value: " //$NON-NLS-1$ + Integer.toString(objs55159.length), e); } retval = false; } if (((objs55159.length) > 1)) { if (CorePlugin.getDefault().isDebugging()) { Ooaofooa.log.println( ILogger.CONSISTENCY, "Data Type in Package", //$NON-NLS-1$ "Consistency: Object: Data Type in Package: Cardinality of an identifier is greater than 1. " //$NON-NLS-1$ + "Actual Value: " //$NON-NLS-1$ + Integer.toString(objs55159.length) + " Package_ID: " + "Not Printable" + " DT_ID: " + "Not Printable"); //$NON-NLS-1$ } else { Exception e = new Exception(); CorePlugin.logError( "Consistency: Object: Data Type in Package: Cardinality of an identifier is greater than 1. " //$NON-NLS-1$ + "Actual Value: " //$NON-NLS-1$ + Integer.toString(objs55159.length) + " Package_ID: " + "Not Printable" + " DT_ID: " + "Not Printable", e); //$NON-NLS-1$ } retval = false; } // Data Type in Package is a link class in association: rel.Numb = 39 // Other side // The other side class in the association is: Data Type Package class DataTypePackage_c_test55166_c implements ClassQueryInterface_c { DataTypePackage_c_test55166_c(java.util.UUID p55167) { m_p55167 = p55167; } private java.util.UUID m_p55167; public boolean evaluate(Object candidate) { DataTypePackage_c selected = (DataTypePackage_c) candidate; boolean retval = false; retval = (selected.getPackage_id().equals(m_p55167)); return retval; } } DataTypePackage_c[] objs55165 = DataTypePackage_c.DataTypePackageInstances( modelRoot, new DataTypePackage_c_test55166_c(getPackage_id())); if (((objs55165.length) > 1)) { if (CorePlugin.getDefault().isDebugging()) { Ooaofooa.log.println( ILogger.CONSISTENCY, "Data Type in Package", //$NON-NLS-1$ "Consistency: Object: Data Type in Package: Association: 39: Cardinality of other side of link is greater than 1. " //$NON-NLS-1$ + "Actual Value: " + Integer.toString(objs55165.length)); // $NON-NLS-1$ } else { Exception e = new Exception(); CorePlugin.logError( "Consistency: Object: Data Type in Package: Association: 39: Cardinality of other side of link is greater than 1. " //$NON-NLS-1$ + "Actual Value: " //$NON-NLS-1$ + Integer.toString(objs55165.length), e); } retval = false; } return retval; }
public boolean checkConsistency() { Ooaofooa.log.println( ILogger.OPERATION, "Component in Component", //$NON-NLS-1$ " Operation entered: Component in Component::checkConsistency"); //$NON-NLS-1$ if (Boolean.valueOf(System.getenv("PTC_MCC_ENABLED")) == false) { // $NON-NLS-1$ return true; } ModelRoot modelRoot = getModelRoot(); boolean retval = true; class ComponentInComponent_c_test55677_c implements ClassQueryInterface_c { ComponentInComponent_c_test55677_c(java.util.UUID p55678) { m_p55678 = p55678; } private java.util.UUID m_p55678; public boolean evaluate(Object candidate) { ComponentInComponent_c selected = (ComponentInComponent_c) candidate; boolean retval = false; retval = (selected.getId().equals(m_p55678)); return retval; } } ComponentInComponent_c[] objs55676 = ComponentInComponent_c.ComponentInComponentInstances( modelRoot, new ComponentInComponent_c_test55677_c(getId())); if (((objs55676.length) == 0)) { if (CorePlugin.getDefault().isDebugging()) { Ooaofooa.log.println( ILogger.CONSISTENCY, "Component in Component", //$NON-NLS-1$ "Consistency: Object: Component in Component: Cardinality of an identifier is zero. " //$NON-NLS-1$ + "Actual Value: " + Integer.toString(objs55676.length)); // $NON-NLS-1$ } else { Exception e = new Exception(); CorePlugin.logError( "Consistency: Object: Component in Component: Cardinality of an identifier is zero. " //$NON-NLS-1$ + "Actual Value: " //$NON-NLS-1$ + Integer.toString(objs55676.length), e); } retval = false; } if (((objs55676.length) > 1)) { if (CorePlugin.getDefault().isDebugging()) { Ooaofooa.log.println( ILogger.CONSISTENCY, "Component in Component", //$NON-NLS-1$ "Consistency: Object: Component in Component: Cardinality of an identifier is greater than 1. " //$NON-NLS-1$ + "Actual Value: " //$NON-NLS-1$ + Integer.toString(objs55676.length) + " Id: " + "Not Printable"); //$NON-NLS-1$ } else { Exception e = new Exception(); CorePlugin.logError( "Consistency: Object: Component in Component: Cardinality of an identifier is greater than 1. " //$NON-NLS-1$ + "Actual Value: " //$NON-NLS-1$ + Integer.toString(objs55676.length) + " Id: " + "Not Printable", e); //$NON-NLS-1$ } retval = false; } // Component in Component is a referring class in association: rel.Numb = 4202 // The participating class is: Component class Component_c_test55682_c implements ClassQueryInterface_c { Component_c_test55682_c(java.util.UUID p55683) { m_p55683 = p55683; } private java.util.UUID m_p55683; public boolean evaluate(Object candidate) { Component_c selected = (Component_c) candidate; boolean retval = false; retval = (selected.getId().equals(m_p55683)); return retval; } } Component_c[] objs55681 = Component_c.ComponentInstances(modelRoot, new Component_c_test55682_c(getParent_id())); // The participant is unconditional // The multiplicity of the participant is one if (((objs55681.length) != 1)) { if (CorePlugin.getDefault().isDebugging()) { Ooaofooa.log.println( ILogger.CONSISTENCY, "Component in Component", //$NON-NLS-1$ "Consistency: Object: Component in Component: Association: 4202: Cardinality of a participant is not equal to 1. " //$NON-NLS-1$ + "Actual Value: " //$NON-NLS-1$ + Integer.toString(objs55681.length) + " Parent_Id: " + "Not Printable"); //$NON-NLS-1$ } else { Exception e = new Exception(); CorePlugin.logError( "Consistency: Object: Component in Component: Association: 4202: Cardinality of a participant is not equal to 1. " //$NON-NLS-1$ + "Actual Value: " //$NON-NLS-1$ + Integer.toString(objs55681.length) + " Parent_Id: " + "Not Printable", e); //$NON-NLS-1$ } retval = false; } // Component in Component is a participating class in association: rel.Numb = 4203 // Object: Component class Component_c_test55685_c implements ClassQueryInterface_c { Component_c_test55685_c(java.util.UUID p55686) { m_p55686 = p55686; } private java.util.UUID m_p55686; public boolean evaluate(Object candidate) { Component_c selected = (Component_c) candidate; boolean retval = false; retval = (selected.getNestedcomponent_id().equals(m_p55686)); return retval; } } Component_c[] objs55684 = Component_c.ComponentInstances(modelRoot, new Component_c_test55685_c(getId())); if (((objs55684.length) != 1)) { if (CorePlugin.getDefault().isDebugging()) { Ooaofooa.log.println( ILogger.CONSISTENCY, "Component in Component", //$NON-NLS-1$ "Consistency: Object: Component in Component: Association: 4203: Cardinality of a formalizer is not equal to one. " //$NON-NLS-1$ + "Actual Value: " + Integer.toString(objs55684.length)); // $NON-NLS-1$ } else { Exception e = new Exception(); CorePlugin.logError( "Consistency: Object: Component in Component: Association: 4203: Cardinality of a formalizer is not equal to one. " //$NON-NLS-1$ + "Actual Value: " //$NON-NLS-1$ + Integer.toString(objs55684.length), e); } retval = false; } return retval; }