|
Qizx fe-4.4p2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.qizx.api.util.DefaultModuleResolver
public class DefaultModuleResolver
Default ModuleResolver implementation using a base URL.
The strategy used consists of appending the module namespace URI to the base URI, and (if possible) checking the existence of the pointed resource.
If the check fails, and if location hints are provided, then each hint is appended to the base URL and put to the result list, unless it can be verified that the URL formed this way points to a non-existent resource.
Constructor Summary | |
---|---|
DefaultModuleResolver(URL base)
Creates a resolver using a base URL. |
Method Summary | |
---|---|
URL |
getBase()
|
URL[] |
resolve(String moduleNamespaceURI,
String[] locationHints)
Resolves a module namespace to one or several compilation units. |
Source |
resolveTemplates(String url)
Resolves an URL for an XSLT stylesheet. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultModuleResolver(URL base)
base
- an URL used as a base for resolving module URI's.Method Detail |
---|
public String toString()
toString
in class Object
public URL[] resolve(String moduleNamespaceURI, String[] locationHints) throws MalformedURLException
ModuleResolver
resolve
in interface ModuleResolver
moduleNamespaceURI
- target namespace of the module to import.locationHints
- optional URI's used as resolution hints.
MalformedURLException
- if provided module URI's or hints are invalidModuleResolver.resolve(java.lang.String, java.lang.String[])
public URL getBase()
public Source resolveTemplates(String url)
ModuleResolver
resolveTemplates
in interface ModuleResolver
url
- URL of the stylesheet
|
© 2010 Axyana Software | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |