public class GUIURIResolver extends java.lang.Object implements DTSCascadeURIResolver
If the file cannot be resolved by the surrounding URIResolvers, this class will pop-up a dialog to the user telling what's going on. Then the user will have the chance to search for the file in the local file system (or external URI). If a file or URI is assigned, then, the mapping is stored in the XBRLCatalog file for further resolutions (and in the object model representation of it in memory). Then, the same method is called recursively in order to make use the mapping is correct. In case of the user decides to cancel the mapping process null is returned and most probably a DTSDiscoveryException will be generated.
| Constructor and Description |
|---|
GUIURIResolver(URIResolverGUI theGUI,
javax.xml.transform.URIResolver nextResolver,
DTSCatalogURIResolver dtsCatalogURIResolver)
Instantiates a new GUIURI resolver.
|
| Modifier and Type | Method and Description |
|---|---|
javax.xml.transform.URIResolver |
getNextResolver()
The next resolved in the cascade. null means this is the last resolver
|
javax.xml.transform.Source |
resolve(java.lang.String href,
java.lang.String base) |
void |
setNextResolver(javax.xml.transform.URIResolver newNextResolver)
Sets the next resolver to the resolver specified in the parameter.
|
public GUIURIResolver(URIResolverGUI theGUI, javax.xml.transform.URIResolver nextResolver, DTSCatalogURIResolver dtsCatalogURIResolver)
theGUI - the the guinextResolver - the next resolverdtsCatalogURIResolver - this may be null. If null no entries will be stored in the DTSCatalog in memorypublic javax.xml.transform.Source resolve(java.lang.String href,
java.lang.String base)
throws javax.xml.transform.TransformerException
resolve in interface javax.xml.transform.URIResolverjavax.xml.transform.TransformerExceptionpublic javax.xml.transform.URIResolver getNextResolver()
DTSCascadeURIResolvergetNextResolver in interface DTSCascadeURIResolverpublic void setNextResolver(javax.xml.transform.URIResolver newNextResolver)
DTSCascadeURIResolversetNextResolver in interface DTSCascadeURIResolvernewNextResolver - the new next resolver