/**
   * @param parentElement
   * @param childElement
   * @param severity
   */
  private void reportMinOccurenceViolation(
      Element parentElement, ElementOccurrenceResult result, int severity) {

    ISchemaElement childElement = result.getSchemaElement();
    String allowedOccurrences = new Integer(result.getAllowedOccurrences()).toString();
    String message =
        NLS.bind(
            MDECoreMessages.ExtensionsErrorReporter_minOccurrence,
            new String[] {allowedOccurrences, childElement.getName()});
    report(message, getLine(parentElement), severity, MDEMarkerFactory.CAT_FATAL);
  }
 /**
  * @param parentElement
  * @param childElement
  * @param severity
  */
 private void reportMaxOccurenceViolation(ElementOccurrenceResult result, int severity) {
   Element childElement = result.getElement();
   String allowedOccurrences = new Integer(result.getAllowedOccurrences()).toString();
   String message =
       NLS.bind(
           MDECoreMessages.ExtensionsErrorReporter_maxOccurrence,
           new String[] {allowedOccurrences, childElement.getNodeName()});
   report(
       message,
       getLine(childElement),
       severity,
       MDEMarkerFactory.P_ILLEGAL_XML_NODE,
       childElement,
       null,
       MDEMarkerFactory.CAT_FATAL);
 }