insensa.help
Class HelpModel

java.lang.Object
  extended by insensa.help.HelpModel

public class HelpModel
extends java.lang.Object


Field Summary
private static java.lang.String INDEX_DOC
           
private  java.util.Map<java.lang.String,HelpMappingObject> indexMappingObjects
           
private static HelpModel instance
           
private static java.lang.String MAP_DOC
           
private  java.util.List<HelpMappingObject> rootIndexObjects
           
private  java.util.List<HelpMappingObject> rootTocObjects
           
private  java.util.Map<java.lang.String,HelpMappingObject> targetMapMappingObjects
           
private static java.lang.String TOC_DOC
           
private  java.util.Map<java.lang.String,HelpMappingObject> tocMappingObjects
           
 
Constructor Summary
private HelpModel()
           
 
Method Summary
private  void addChildHelp(ServiceHelp parentServiceHelp, HelpMappingObject parentMappingObject)
           
private  void addPluginHelp()
           
 java.util.List<HelpMappingFilterObject> findString(java.lang.String searchText)
           
 HelpMappingFilterObject findString(java.lang.String searchText, java.lang.String target)
           
 java.util.Map<java.lang.String,HelpMappingObject> getIndexMappingObjects()
           
static HelpModel getInstance()
           
 java.util.List<HelpMappingObject> getRootIndexObjects()
           
 java.util.List<HelpMappingObject> getRootTocObjects()
           
 java.util.Map<java.lang.String,HelpMappingObject> getTargetMapMappingObjects()
           
 java.util.Map<java.lang.String,HelpMappingObject> getTocMappingObjects()
           
private  void initIndexMapping()
           
private  void initTargetMapMapping()
           
private  void initTocMapping()
           
private  HelpMappingObject iterateTree(HelpMappingObject parentObject, org.jdom.Element element, java.util.Map<java.lang.String,HelpMappingObject> tMap)
           
private  HelpMappingFilterObject startSearch(java.net.URL url, javax.swing.text.Document doc, java.lang.String searchText)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

private static HelpModel instance

TOC_DOC

private static final java.lang.String TOC_DOC
See Also:
Constant Field Values

MAP_DOC

private static final java.lang.String MAP_DOC
See Also:
Constant Field Values

INDEX_DOC

private static final java.lang.String INDEX_DOC
See Also:
Constant Field Values

targetMapMappingObjects

private java.util.Map<java.lang.String,HelpMappingObject> targetMapMappingObjects

tocMappingObjects

private java.util.Map<java.lang.String,HelpMappingObject> tocMappingObjects

indexMappingObjects

private java.util.Map<java.lang.String,HelpMappingObject> indexMappingObjects

rootTocObjects

private java.util.List<HelpMappingObject> rootTocObjects

rootIndexObjects

private java.util.List<HelpMappingObject> rootIndexObjects
Constructor Detail

HelpModel

private HelpModel()
Method Detail

getInstance

public static HelpModel getInstance()
Returns:

addChildHelp

private void addChildHelp(ServiceHelp parentServiceHelp,
                          HelpMappingObject parentMappingObject)
Parameters:
parentServiceHelp -
parentMappingObject -

addPluginHelp

private void addPluginHelp()
                    throws org.jdom.JDOMException,
                           java.io.IOException
Throws:
org.jdom.JDOMException
java.io.IOException

findString

public java.util.List<HelpMappingFilterObject> findString(java.lang.String searchText)
                                                   throws java.io.IOException
Parameters:
searchText -
Returns:
Throws:
java.io.IOException

findString

public HelpMappingFilterObject findString(java.lang.String searchText,
                                          java.lang.String target)
Parameters:
searchText -
target -
Returns:

getIndexMappingObjects

public java.util.Map<java.lang.String,HelpMappingObject> getIndexMappingObjects()
                                                                         throws java.io.IOException
Returns:
Throws:
java.io.IOException

getRootIndexObjects

public java.util.List<HelpMappingObject> getRootIndexObjects()
                                                      throws java.io.IOException
Returns:
Throws:
java.io.IOException

getRootTocObjects

public java.util.List<HelpMappingObject> getRootTocObjects()
                                                    throws java.io.IOException
Returns:
Throws:
java.io.IOException

getTargetMapMappingObjects

public java.util.Map<java.lang.String,HelpMappingObject> getTargetMapMappingObjects()
                                                                             throws java.io.IOException
Returns:
Throws:
java.io.IOException

getTocMappingObjects

public java.util.Map<java.lang.String,HelpMappingObject> getTocMappingObjects()
                                                                       throws java.io.IOException
Returns:
Throws:
java.io.IOException

initIndexMapping

private void initIndexMapping()
                       throws java.io.IOException
Throws:
java.io.IOException

initTargetMapMapping

private void initTargetMapMapping()
                           throws java.io.IOException
Throws:
java.io.IOException

initTocMapping

private void initTocMapping()
                     throws java.io.IOException
Throws:
java.io.IOException

iterateTree

private HelpMappingObject iterateTree(HelpMappingObject parentObject,
                                      org.jdom.Element element,
                                      java.util.Map<java.lang.String,HelpMappingObject> tMap)
                               throws java.io.IOException
Parameters:
parentObject -
element -
tMap -
Returns:
Throws:
java.io.IOException

startSearch

private HelpMappingFilterObject startSearch(java.net.URL url,
                                            javax.swing.text.Document doc,
                                            java.lang.String searchText)
                                     throws javax.swing.text.BadLocationException
Parameters:
url -
doc -
searchText -
Returns:
Throws:
javax.swing.text.BadLocationException