public abstract class DomService
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DomService.StructureViewMode |
Constructor and Description |
---|
DomService() |
Modifier and Type | Method and Description |
---|---|
abstract <T extends DomElement> |
createAnchor(T domElement) |
abstract ModelMerger |
createModelMerger() |
abstract StructureViewBuilder |
createSimpleStructureViewBuilder(XmlFile file,
Function<DomElement,DomService.StructureViewMode> modeProvider) |
abstract XmlFile |
getContainingFile(DomElement domElement) |
abstract java.util.Collection<VirtualFile> |
getDomFileCandidates(java.lang.Class<? extends DomElement> rootElementClass,
Project project,
GlobalSearchScope scope) |
abstract EvaluatedXmlName |
getEvaluatedXmlName(DomElement element) |
abstract <T extends DomElement> |
getFileElements(java.lang.Class<T> rootElementClass,
Project project,
GlobalSearchScope scope) |
static DomService |
getInstance() |
abstract XmlFileHeader |
getXmlFileHeader(XmlFile file) |
public static DomService getInstance()
public abstract java.util.Collection<VirtualFile> getDomFileCandidates(java.lang.Class<? extends DomElement> rootElementClass, Project project, GlobalSearchScope scope)
rootElementClass
- class of root (file-level) element in DOM modelproject
- current projectscope
- search scopegetFileElements(Class, Project, GlobalSearchScope)
public abstract <T extends DomElement> java.util.List<DomFileElement<T>> getFileElements(java.lang.Class<T> rootElementClass, Project project, GlobalSearchScope scope)
rootElementClass
- class of root (file-level) element in DOM modelproject
- current projectscope
- search scopepublic abstract ModelMerger createModelMerger()
public abstract <T extends DomElement> DomAnchor<T> createAnchor(T domElement)
public abstract XmlFile getContainingFile(DomElement domElement)
public abstract EvaluatedXmlName getEvaluatedXmlName(DomElement element)
public abstract XmlFileHeader getXmlFileHeader(XmlFile file)
public abstract StructureViewBuilder createSimpleStructureViewBuilder(XmlFile file, Function<DomElement,DomService.StructureViewMode> modeProvider)