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 |
---|---|
void |
endDTSDiscovery()
End DTS discovery.
|
javax.xml.transform.URIResolver |
getNextResolver()
Gets the next resolver.
|
javax.xml.transform.Source |
resolve(java.lang.String href,
java.lang.String base)
Resolve.
|
void |
setNextResolver(javax.xml.transform.URIResolver newNextResolver)
Sets the next resolver.
|
void |
startDTSDiscovery()
Start DTS discovery.
|
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.URIResolver
href
- the hrefbase
- the basejavax.xml.transform.TransformerException
- the transformer exceptionpublic javax.xml.transform.URIResolver getNextResolver()
getNextResolver
in interface DTSCascadeURIResolver
public void setNextResolver(javax.xml.transform.URIResolver newNextResolver)
setNextResolver
in interface DTSCascadeURIResolver
newNextResolver
- the new next resolverpublic void startDTSDiscovery()
startDTSDiscovery
in interface DTSCascadeURIResolver
public void endDTSDiscovery()
endDTSDiscovery
in interface DTSCascadeURIResolver
Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa