// - MSG-11
  public void printError(
      int ruleMsgIndex,
      StringBuffer buffer,
      DbSemanticalObject semObj,
      boolean withComposite,
      boolean withConceptName,
      int extraMsgIndex,
      DbSemanticalObject semObjFound,
      String msgStrXtra,
      boolean withSolution,
      String solution1,
      String solution2)
      throws DbException {

    String conceptName = "";
    String conceptNameFound = "";
    String errorStr = "";

    // ------Titre de section
    if (ruleMsgIndex < errorFlags.length) {
      if ((errorFlags[ruleMsgIndex] != null)
          && (errorFlags[ruleMsgIndex].booleanValue() == false)) {
        printRuleSectionTitle(ruleMsgIndex, buffer);
        errorFlags[ruleMsgIndex] = Boolean.TRUE;
      }
    }

    // *** MESSAGE D'ERREUR ***
    if (withConceptName) {
      conceptName = semObj.getMetaClass().getGUIName(false, false);
      errorStr = errorStr + conceptName + SPACE;
    }
    errorStr = errorStr + getLinksForDbObject(semObj, withComposite, true);

    if (extraMsgIndex != -1) {
      errorStr = errorStr + SPACE + reportMessages[extraMsgIndex];
    }
    if (semObjFound != null) {
      errorStr = errorStr + getLinksForDbObject(semObjFound, withComposite, true);
    }
    if (msgStrXtra != null) {
      errorStr = errorStr + SPACE + msgStrXtra;
    }
    if (withSolution) {
      if (solution1 != null) {
        errorStr = errorStr + BR + INDENT + AbstractIntegrity.kSolution1 + solution1;
      }
      if (solution2 != null) {
        errorStr = errorStr + BR + INDENT + INDENT + AbstractIntegrity.kSolution2 + solution2;
      }
    }
    if (cleanUpMode) {
      String delete_1 =
          this.getSolutionLink(
              semObj, AbstractIntegrity.DELETE_ONE, kCleanOneTip, showDeleteImageURL);
      errorStr = errorStr + SPACE + SPACE + delete_1;
    }
    buffer.append(errorStr + "\n"); // NOT LOCALIZABLE
  }
 public void set(MetaField metaField, Object value) throws DbException {
   if (metaField.getMetaClass() == metaClass) {
     if (metaField == fStereotypedObjects) ((DbSMSSemanticalObject) value).setUmlStereotype(this);
     else if (metaField == fSubStereotypes)
       setSubStereotypes((DbSMSStereotype) value, Db.ADD_TO_RELN);
     else if (metaField == fSuperStereotypes)
       setSuperStereotypes((DbSMSStereotype) value, Db.ADD_TO_RELN);
     else basicSet(metaField, value);
   } else super.set(metaField, value);
 }
 public void set(MetaRelationN relation, DbObject neighbor, int op) throws DbException {
   if (relation == fSubStereotypes) setSubStereotypes((DbSMSStereotype) neighbor, op);
   else if (relation == fSuperStereotypes) setSuperStereotypes((DbSMSStereotype) neighbor, op);
   else super.set(relation, neighbor, op);
 }