// end declare accessors
  public static void checkClassConsistency(ModelRoot modelRoot) {
    Ooaofooa.log.println(
        ILogger.OPERATION,
        "Component Result Set", //$NON-NLS-1$
        " Operation entered: Component Result Set::checkClassConsistency"); //$NON-NLS-1$
    if (Boolean.valueOf(System.getenv("PTC_MCC_ENABLED")) == false) { // $NON-NLS-1$
      return;
    }
    ComponentResultSet_c[] objs =
        ComponentResultSet_c.ComponentResultSetInstances(modelRoot, null, false);

    for (int i = 0; i < objs.length; i++) {
      objs[i].checkConsistency();
    }
  }
  public boolean checkConsistency() {
    Ooaofooa.log.println(
        ILogger.OPERATION,
        "Component Result Set", //$NON-NLS-1$
        " Operation entered: Component Result Set::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 ComponentResultSet_c_test39974_c implements ClassQueryInterface_c {
      ComponentResultSet_c_test39974_c(String p39975, int p39976, java.util.UUID p39977) {
        m_p39975 = p39975;
        m_p39976 = p39976;
        m_p39977 = p39977;
      }

      private String m_p39975;
      private int m_p39976;
      private java.util.UUID m_p39977;

      public boolean evaluate(Object candidate) {
        ComponentResultSet_c selected = (ComponentResultSet_c) candidate;
        boolean retval = false;
        retval =
            (selected.getName().equals(m_p39975))
                & (selected.getType() == (m_p39976))
                & (selected.getId().equals(m_p39977));
        return retval;
      }
    }

    ComponentResultSet_c[] objs39973 =
        ComponentResultSet_c.ComponentResultSetInstances(
            modelRoot, new ComponentResultSet_c_test39974_c(getName(), getType(), getId()));

    if (((objs39973.length) == 0)) {

      if (CorePlugin.getDefault().isDebugging()) {
        Ooaofooa.log.println(
            ILogger.CONSISTENCY,
            "Component Result Set", //$NON-NLS-1$
            "Consistency: Object: Component Result Set: Cardinality of an identifier is zero. " //$NON-NLS-1$
                + "Actual Value: "
                + Integer.toString(objs39973.length)); // $NON-NLS-1$
      } else {
        Exception e = new Exception();
        CorePlugin.logError(
            "Consistency: Object: Component Result Set: Cardinality of an identifier is zero. " //$NON-NLS-1$
                + "Actual Value: " //$NON-NLS-1$
                + Integer.toString(objs39973.length),
            e);
      }
      retval = false;
    }

    if (((objs39973.length) > 1)) {

      if (CorePlugin.getDefault().isDebugging()) {
        Ooaofooa.log.println(
            ILogger.CONSISTENCY,
            "Component Result Set", //$NON-NLS-1$
            "Consistency: Object: Component Result Set: Cardinality of an identifier is greater than 1. " //$NON-NLS-1$
                + "Actual Value: " //$NON-NLS-1$
                + Integer.toString(objs39973.length)
                + " Name: "
                + getName()
                + " Type: "
                + Integer.toString(getType())
                + " Id: "
                + "Not Printable"); //$NON-NLS-1$
      } else {
        Exception e = new Exception();
        CorePlugin.logError(
            "Consistency: Object: Component Result Set: Cardinality of an identifier is greater than 1. " //$NON-NLS-1$
                + "Actual Value: " //$NON-NLS-1$
                + Integer.toString(objs39973.length)
                + " Name: "
                + getName()
                + " Type: "
                + Integer.toString(getType())
                + " Id: "
                + "Not Printable",
            e); //$NON-NLS-1$
      }
      retval = false;
    }

    // Component Result Set is a referring class in association: rel.Numb = 8007
    // The participating class is: Component
    class Component_c_test39981_c implements ClassQueryInterface_c {
      Component_c_test39981_c(java.util.UUID p39982) {
        m_p39982 = p39982;
      }

      private java.util.UUID m_p39982;

      public boolean evaluate(Object candidate) {
        Component_c selected = (Component_c) candidate;
        boolean retval = false;
        retval = (selected.getId().equals(m_p39982));
        return retval;
      }
    }

    Component_c[] objs39980 =
        Component_c.ComponentInstances(modelRoot, new Component_c_test39981_c(getId()));

    // The participant is unconditional
    // The multiplicity of the participant is one
    if (((objs39980.length) != 1)) {

      if (CorePlugin.getDefault().isDebugging()) {
        Ooaofooa.log.println(
            ILogger.CONSISTENCY,
            "Component Result Set", //$NON-NLS-1$
            "Consistency: Object: Component Result Set: Association: 8007: Cardinality of a participant is not equal to 1. " //$NON-NLS-1$
                + "Actual Value: " //$NON-NLS-1$
                + Integer.toString(objs39980.length)
                + " Id: "
                + "Not Printable"); //$NON-NLS-1$
      } else {
        Exception e = new Exception();
        CorePlugin.logError(
            "Consistency: Object: Component Result Set: Association: 8007: Cardinality of a participant is not equal to 1. " //$NON-NLS-1$
                + "Actual Value: " //$NON-NLS-1$
                + Integer.toString(objs39980.length)
                + " Id: "
                + "Not Printable",
            e); //$NON-NLS-1$
      }
      retval = false;
    }

    // Component Result Set is a participating class in association: rel.Numb = 8008
    // Object: Component Visibility
    return retval;
  }