insensa.extensions
Class HelpSetLoader

java.lang.Object
  extended by insensa.extensions.HelpSetLoader

public class HelpSetLoader
extends java.lang.Object


Field Summary
private static HelpSetLoader instance
           
 
Constructor Summary
HelpSetLoader()
           
 
Method Summary
private  boolean addMapEntry(java.lang.String id, java.lang.String fileURL)
           
private  void addPluginHelp(java.util.Map<java.lang.String,ServiceList> connectionMap, java.lang.String baseFolder)
           
private  boolean addTocEntry(java.lang.String tocTitle, java.lang.String id)
           
 java.net.URL getHelpSetURL()
           
static HelpSetLoader getInstance()
           
private  void writeConfig(org.jdom.Element rootDoc, java.io.File xmlFile, org.jdom.Document doc, org.jdom.output.XMLOutputter out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

private static HelpSetLoader instance
Constructor Detail

HelpSetLoader

public HelpSetLoader()
Method Detail

getInstance

public static HelpSetLoader getInstance()
Returns:

addMapEntry

private boolean addMapEntry(java.lang.String id,
                            java.lang.String fileURL)
                     throws org.jdom.JDOMException,
                            java.io.IOException
Parameters:
id -
fileURL -
Returns:
Throws:
org.jdom.JDOMException
java.io.IOException

addPluginHelp

private void addPluginHelp(java.util.Map<java.lang.String,ServiceList> connectionMap,
                           java.lang.String baseFolder)
                    throws org.jdom.JDOMException,
                           java.io.IOException
Parameters:
connectionMap -
baseFolder -
Throws:
org.jdom.JDOMException
java.io.IOException

addTocEntry

private boolean addTocEntry(java.lang.String tocTitle,
                            java.lang.String id)
                     throws org.jdom.JDOMException,
                            java.io.IOException
Parameters:
tocTitle -
id -
Returns:
Throws:
org.jdom.JDOMException
java.io.IOException

getHelpSetURL

public java.net.URL getHelpSetURL()
                           throws java.net.MalformedURLException
Returns:
Throws:
java.net.MalformedURLException

writeConfig

private void writeConfig(org.jdom.Element rootDoc,
                         java.io.File xmlFile,
                         org.jdom.Document doc,
                         org.jdom.output.XMLOutputter out)
                  throws java.io.IOException
Parameters:
rootDoc -
xmlFile -
doc -
out -
Throws:
java.io.IOException