org.mule.devkit.idea
Class MuleSchemaProvider
java.lang.Object
com.intellij.xml.XmlSchemaProvider
org.mule.devkit.idea.MuleSchemaProvider
public class MuleSchemaProvider
- extends com.intellij.xml.XmlSchemaProvider
| Fields inherited from class com.intellij.xml.XmlSchemaProvider |
EP_NAME |
|
Method Summary |
com.intellij.psi.xml.XmlFile |
getSchema(String url,
com.intellij.openapi.module.Module module,
com.intellij.psi.PsiFile baseFile)
Looks for the schema file to handle the given namespace (url) within the schemas supported by this provider. |
Map<String,com.intellij.psi.xml.XmlFile> |
getSupportedSchemasByUrl(com.intellij.openapi.module.Module module)
|
boolean |
isAvailable(com.intellij.psi.xml.XmlFile file)
|
| Methods inherited from class com.intellij.xml.XmlSchemaProvider |
findSchema, findSchema, getAvailableNamespaces, getAvailableProvider, getAvailableProviders, getDefaultPrefix, getLocations |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MuleSchemaProvider
public MuleSchemaProvider()
isAvailable
public boolean isAvailable(@NotNull
com.intellij.psi.xml.XmlFile file)
- Overrides:
isAvailable in class com.intellij.xml.XmlSchemaProvider
getSchema
public com.intellij.psi.xml.XmlFile getSchema(@NotNull@NonNls
String url,
@Nullable
com.intellij.openapi.module.Module module,
@NotNull
com.intellij.psi.PsiFile baseFile)
- Looks for the schema file to handle the given namespace (url) within the schemas supported by this provider.
These schemas are read from spring.schemas file and searched in project files and dependencies. If a schema
declared in spring.schemas is not present within project files and project dependencies it will not be resolved.
- Specified by:
getSchema in class com.intellij.xml.XmlSchemaProvider
- Parameters:
url - the url of the namespacemodule - the module where the baseFile isbaseFile - the file where the namespace is declared
- Returns:
- the schema file for the given url if it is supported by this provider (declared in spring.schemas), otherwise null
getSupportedSchemasByUrl
@NotNull
public Map<String,com.intellij.psi.xml.XmlFile> getSupportedSchemasByUrl(@NotNull
com.intellij.openapi.module.Module module)
Copyright © 2013. All Rights Reserved.