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