return false;
}
private void checkRequiredAttributes(IDOMElement element, CMNamedNodeMap attrMap, IReporter reporter, IFile file, IStructuredDocument document, IStructuredDocumentRegion documentRegion) {
Iterator it = attrMap.iterator();
CMAttributeDeclaration attr = null;
while (it.hasNext()) {
attr = (CMAttributeDeclaration) it.next();
if (attr.getUsage() == CMAttributeDeclaration.REQUIRED) {
Attr a = element.getAttributeNode(attr.getAttrName());
if (a == null) {
// Attribute may be defined using a jsp:attribute action
if (!checkJSPAttributeAction(element, attr)) {
String msgText = NLS.bind(JSPCoreMessages.JSPDirectiveValidator_5, attr.getAttrName());
LocalizedMessage message = new LocalizedMessage(fSeverityMissingRequiredAttribute, msgText, file);
int start = element.getStartOffset();
int length = element.getStartEndOffset() - start;
int lineNo = document.getLineOfOffset(start);
message.setLineNo(lineNo);