/** * @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); }