| /* |
| * Copyright 2000-2014 JetBrains s.r.o. |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| package org.jetbrains.idea.devkit.dom; |
| |
| import com.intellij.ide.presentation.Presentation; |
| import com.intellij.psi.PsiClass; |
| import com.intellij.util.xml.*; |
| import org.jetbrains.annotations.NotNull; |
| import org.jetbrains.annotations.Nullable; |
| import org.jetbrains.idea.devkit.dom.impl.PluginPsiClassConverter; |
| |
| import java.util.List; |
| |
| /** |
| * @author mike |
| */ |
| @Presentation(typeName = "Extension Point") |
| public interface ExtensionPoint extends DomElement { |
| enum Area { |
| IDEA_PROJECT, |
| IDEA_MODULE, |
| IDEA_APPLICATION |
| } |
| |
| @NotNull |
| @Stubbed |
| @NameValue |
| GenericAttributeValue<String> getName(); |
| |
| @Attribute("qualifiedName") |
| @Stubbed |
| GenericAttributeValue<String> getQualifiedName(); |
| |
| @NotNull |
| @Stubbed |
| @Convert(PluginPsiClassConverter.class) |
| GenericAttributeValue<PsiClass> getInterface(); |
| |
| @NotNull |
| @Stubbed |
| @Attribute("beanClass") |
| @Convert(PluginPsiClassConverter.class) |
| GenericAttributeValue<PsiClass> getBeanClass(); |
| |
| @NotNull |
| GenericAttributeValue<Area> getArea(); |
| |
| @NotNull |
| @Stubbed |
| @SubTagList("with") |
| List<With> getWithElements(); |
| |
| With addWith(); |
| |
| /** |
| * Returns the fully qualified EP name |
| * |
| * @return {@code PluginID.name} or {@code qualifiedName}. |
| * @since 14 |
| */ |
| @NotNull |
| String getEffectiveQualifiedName(); |
| |
| /** |
| * Returns the actually defined name. |
| * |
| * @return {@link #getName()} if defined, {@link #getQualifiedName()} otherwise. |
| */ |
| @NotNull |
| String getEffectiveName(); |
| |
| /** |
| * Returns EP name prefix (Plugin ID). |
| * |
| * @return {@code null} if {@code qualifiedName} is set. |
| */ |
| @Nullable |
| String getNamePrefix(); |
| } |