public final class DomManagerImpl extends DomManager
MOCK_ELEMENT_MODULE
EVER_CHANGED, NEVER_CHANGED
Constructor and Description |
---|
DomManagerImpl(Project project) |
getDomFileDescription
getModificationCount
incModificationCount
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getModificationCount
public DomManagerImpl(Project project)
public long getPsiModificationCount()
public static DomManagerImpl getDomManager(Project project)
public void addDomEventListener(DomEventListener listener, Disposable parentDisposable)
addDomEventListener
in class DomManager
public final ConverterManager getConverterManager()
getConverterManager
in class DomManager
ConverterManager
instancepublic final ModelMerger createModelMerger()
createModelMerger
in class DomManager
public final DomGenericInfo getGenericInfo(java.lang.reflect.Type type)
getGenericInfo
in class DomManager
type
- Type. Only Class
and ParameterizedType
are allowedDomGenericInfo
instance for the desired typepublic static DomInvocationHandler getDomInvocationHandler(DomElement proxy)
public static DomInvocationHandler getNotNullHandler(DomElement proxy)
public static com.intellij.util.xml.impl.StableInvocationHandler<?> getStableInvocationHandler(java.lang.Object proxy)
public DomApplicationComponent getApplicationComponent()
public final Project getProject()
getProject
in class DomManager
public final <T extends DomElement> DomFileElementImpl<T> getFileElement(XmlFile file, java.lang.Class<T> aClass, java.lang.String rootTagName)
getFileElement
in class DomManager
public final java.util.Set<DomFileDescription<?>> getFileDescriptions(java.lang.String rootTagName)
public final java.util.Set<DomFileDescription<?>> getAcceptingOtherRootTagNameDescriptions()
public final java.lang.String getComponentName()
public final <T extends DomElement> DomFileElementImpl<T> getFileElement(XmlFile file)
getFileElement
in class DomManager
public final <T extends DomElement> DomFileElementImpl<T> getFileElement(XmlFile file, java.lang.Class<T> domClass)
getFileElement
in class DomManager
file
- XML filedomClass
- desired DOM element classDomFileDescription
s are
asked if they are responsible for the file DomFileDescription.isMyFile(XmlFile, Module)
.
If there is a DomFileDescription
that is responsible for the file, but its DomFileDescription.getRootElementClass()
result is incompatible with domClass parameter, null is returnedpublic final DomElement getDomElement(XmlTag element)
getDomElement
in class DomManager
element
- tagpublic GenericAttributeValue<?> getDomElement(XmlAttribute attribute)
getDomElement
in class DomManager
attribute
- attributepublic DomInvocationHandler getDomHandler(XmlElement xml)
public AbstractDomChildrenDescription findChildrenDescription(XmlTag tag, DomElement parent)
findChildrenDescription
in class DomManager
public final boolean isDomFile(PsiFile file)
public final DomFileDescription<?> getDomFileDescription(PsiElement element)
public final <T extends DomElement> T createMockElement(java.lang.Class<T> aClass, Module module, boolean physical)
createMockElement
in class DomManager
aClass
- Desired DOM element classmodule
- One may wish the result to think that it is in a particular modulephysical
- see PsiElement.isPhysical()
PsiFileFactory.createFileFromText(String, com.intellij.openapi.fileTypes.FileType, CharSequence, long, boolean, boolean)
public final boolean isMockElement(DomElement element)
isMockElement
in class DomManager
element
- DOM elementDomManager.createMockElement(Class, Module, boolean)
methodpublic final <T extends DomElement> T createStableValue(Factory<? extends T> provider)
DomManager
createStableValue
in class DomManager
provider
- provides values to be wrappedpublic final <T> T createStableValue(Factory<? extends T> provider, Condition<? super T> validator)
createStableValue
in class DomManager
public final <T extends DomElement> void registerFileDescription(DomFileDescription<T> description, Disposable parentDisposable)
public final void registerFileDescription(DomFileDescription<?> description)
DomManager
DomFileDescription
within the manager. The description parameter describes some DOM
parameters and restrictions to the particular XML files, that need DOM support. Should be called on
ProjectComponent
loading.registerFileDescription
in class DomManager
description
- The description in questionpublic final DomElement getResolvingScope(GenericDomValue<?> element)
getResolvingScope
in class DomManager
element
- reference elementDomResolveConverter
uses
this method to resolve DOM references. This result's subtree will be traversed recursively searching for the reference target. See
Resolve
annotation.public final DomElement getIdentityScope(DomElement element)
getIdentityScope
in class DomManager
element
- Named DOM elementDomHighlightingHelper.checkNameIdentity(DomElement, com.intellij.util.xml.highlighting.DomElementAnnotationHolder)
public TypeChooserManager getTypeChooserManager()
getTypeChooserManager
in class DomManager
TypeChooserManager
instance