public abstract class XmlSchemaProvider
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static ExtensionPointName<XmlSchemaProvider> |
EP_NAME |
Constructor and Description |
---|
XmlSchemaProvider() |
Modifier and Type | Method and Description |
---|---|
static XmlFile |
findSchema(java.lang.String namespace,
Module module,
PsiFile file) |
static XmlFile |
findSchema(java.lang.String namespace,
PsiFile baseFile) |
java.util.Set<java.lang.String> |
getAvailableNamespaces(XmlFile file,
java.lang.String tagName)
Provides specific namespaces for given xml file.
|
static java.util.List<XmlSchemaProvider> |
getAvailableProviders(XmlFile file) |
java.lang.String |
getDefaultPrefix(java.lang.String namespace,
XmlFile context) |
java.util.Set<java.lang.String> |
getLocations(java.lang.String namespace,
XmlFile context) |
abstract XmlFile |
getSchema(java.lang.String url,
Module module,
PsiFile baseFile) |
boolean |
isAvailable(XmlFile file) |
public static final ExtensionPointName<XmlSchemaProvider> EP_NAME
public static XmlFile findSchema(java.lang.String namespace, Module module, PsiFile file)
public static java.util.List<XmlSchemaProvider> getAvailableProviders(XmlFile file)
public boolean isAvailable(XmlFile file)
public java.util.Set<java.lang.String> getAvailableNamespaces(XmlFile file, java.lang.String tagName)
file
- an xml or jsp file.tagName
- optionalnull
if the provider did not recognize the file.public java.lang.String getDefaultPrefix(java.lang.String namespace, XmlFile context)
public java.util.Set<java.lang.String> getLocations(java.lang.String namespace, XmlFile context)