fix class name completion inside xml tag value
[fedora-idea.git] / dom / openapi / src / com / intellij / util / xml / DomFileElement.java
blob907b4d631c32b91c075719f8a16e8a831d91658f
1 /*
2 * Copyright 2000-2007 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;
18 import com.intellij.openapi.util.ModificationTracker;
19 import com.intellij.openapi.util.UserDataHolder;
20 import com.intellij.psi.xml.XmlFile;
21 import com.intellij.psi.xml.XmlTag;
22 import org.jetbrains.annotations.NotNull;
23 import org.jetbrains.annotations.Nullable;
25 /**
26 * @author peter
28 public interface DomFileElement<T extends DomElement> extends DomElement, UserDataHolder, ModificationTracker {
29 @NotNull
30 XmlFile getFile();
32 @NotNull
33 XmlFile getOriginalFile();
35 @Nullable
36 XmlTag getRootTag();
38 @NotNull
39 T getRootElement();
41 @NotNull
42 Class<T> getRootElementClass();
44 @NotNull
45 DomFileDescription<T> getFileDescription();