public abstract class XmlNamespaceHelper
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
XmlNamespaceHelper.Runner<P,T extends java.lang.Throwable> |
Modifier and Type | Field and Description |
---|---|
static XmlNamespaceHelper |
DEFAULT_EXTENSION |
Constructor and Description |
---|
XmlNamespaceHelper() |
Modifier and Type | Method and Description |
---|---|
static XmlNamespaceHelper |
getHelper(PsiFile file) |
java.lang.String |
getNamespaceAlias(XmlFile file) |
java.lang.String |
getNamespacePrefix(PsiElement element) |
abstract java.util.Set<java.lang.String> |
getNamespacesByTagName(java.lang.String tagName,
XmlFile context) |
abstract java.util.Set<java.lang.String> |
guessUnboundNamespaces(PsiElement element,
XmlFile file) |
abstract void |
insertNamespaceDeclaration(XmlFile file,
Editor editor,
java.util.Set<java.lang.String> possibleNamespaces,
java.lang.String nsPrefix,
XmlNamespaceHelper.Runner<java.lang.String,IncorrectOperationException> runAfter) |
protected abstract boolean |
isAvailable(PsiFile file) |
boolean |
qualifyWithPrefix(java.lang.String namespacePrefix,
PsiElement element,
Document document) |
public static final XmlNamespaceHelper DEFAULT_EXTENSION
public static XmlNamespaceHelper getHelper(PsiFile file)
protected abstract boolean isAvailable(PsiFile file)
public java.lang.String getNamespacePrefix(PsiElement element)
public abstract void insertNamespaceDeclaration(XmlFile file, Editor editor, java.util.Set<java.lang.String> possibleNamespaces, java.lang.String nsPrefix, XmlNamespaceHelper.Runner<java.lang.String,IncorrectOperationException> runAfter) throws IncorrectOperationException
IncorrectOperationException
public boolean qualifyWithPrefix(java.lang.String namespacePrefix, PsiElement element, Document document) throws IncorrectOperationException
IncorrectOperationException
public abstract java.util.Set<java.lang.String> guessUnboundNamespaces(PsiElement element, XmlFile file)
public abstract java.util.Set<java.lang.String> getNamespacesByTagName(java.lang.String tagName, XmlFile context)
public java.lang.String getNamespaceAlias(XmlFile file)