update copyright
[fedora-idea.git] / xml / dom-impl / src / com / intellij / util / xml / highlighting / MockAnnotatingDomInspection.java
blob0f9863299cbd23da3804d9fb065d5566119138cb
1 /*
2 * Copyright 2000-2009 JetBrains s.r.o.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package com.intellij.util.xml.highlighting;
18 import com.intellij.util.xml.DomElement;
19 import org.jetbrains.annotations.Nls;
20 import org.jetbrains.annotations.NotNull;
21 import org.jetbrains.annotations.NonNls;
23 /**
24 * @author peter
26 public class MockAnnotatingDomInspection<T extends DomElement> extends BasicDomElementsInspection<T>{
28 public MockAnnotatingDomInspection(final Class<T> domClass) {
29 super(domClass);
32 protected void checkDomElement(DomElement element, DomElementAnnotationHolder holder, DomHighlightingHelper helper) {
33 for (final Class aClass : getDomClasses()) {
34 helper.runAnnotators(element, holder, aClass);
38 @Nls
39 @NotNull
40 public String getGroupDisplayName() {
41 throw new UnsupportedOperationException("Method getGroupDisplayName is not yet implemented in " + getClass().getName());
44 @Nls
45 @NotNull
46 public String getDisplayName() {
47 throw new UnsupportedOperationException("Method getDisplayName is not yet implemented in " + getClass().getName());
50 @NonNls
51 @NotNull
52 public String getShortName() {
53 throw new UnsupportedOperationException("Method getShortName is not yet implemented in " + getClass().getName());