org.mule.devkit.idea
Class MuleSchemaProvider

java.lang.Object
  extended by com.intellij.xml.XmlSchemaProvider
      extended by org.mule.devkit.idea.MuleSchemaProvider

public class MuleSchemaProvider
extends com.intellij.xml.XmlSchemaProvider


Field Summary
 
Fields inherited from class com.intellij.xml.XmlSchemaProvider
EP_NAME
 
Constructor Summary
MuleSchemaProvider()
           
 
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
 

Constructor Detail

MuleSchemaProvider

public MuleSchemaProvider()
Method Detail

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 namespace
module - the module where the baseFile is
baseFile - 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 © 2014. All rights reserved.