update copyright
[fedora-idea.git] / xml / dom-impl / src / com / intellij / util / xml / highlighting / DomCollectionProblemDescriptorImpl.java
blobe6ea34fe28522634b758ebcc2f4c4fc5cc71f62f
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.codeInspection.LocalQuickFix;
19 import com.intellij.lang.annotation.HighlightSeverity;
20 import com.intellij.util.xml.DomElement;
21 import com.intellij.util.xml.reflect.DomCollectionChildDescription;
23 /**
24 * @author peter
26 public class DomCollectionProblemDescriptorImpl extends DomElementProblemDescriptorImpl implements DomCollectionProblemDescriptor {
27 private final DomCollectionChildDescription myChildDescription;
29 public DomCollectionProblemDescriptorImpl(final DomElement domElement,
30 final String message,
31 final HighlightSeverity type,
32 final DomCollectionChildDescription childDescription) {
33 super(domElement, message, type);
34 myChildDescription = childDescription;
37 public DomCollectionProblemDescriptorImpl(final DomElement domElement,
38 final String message,
39 final HighlightSeverity type,
40 final DomCollectionChildDescription childDescription,
41 final LocalQuickFix... fixes) {
42 super(domElement, message, type, fixes);
43 myChildDescription = childDescription;
46 public String toString() {
47 return super.toString() + "; " + myChildDescription;
50 public DomCollectionChildDescription getChildDescription() {
51 return myChildDescription;