com.raritantechnologies.searchApp.sourceMap
Class XMLSourceMapFactory

java.lang.Object
  extended bycom.raritantechnologies.searchApp.sourceMap.XMLSourceMapFactory
All Implemented Interfaces:
ISourceMapFactory

public class XMLSourceMapFactory
extends java.lang.Object
implements ISourceMapFactory

Constructs ISourceMap instances from Configuration XML.

XML Configuration Template:
  <Object type="Source Map Type" >
    <!-- source map schema specific to IXMLObjectMapFactory implementation for
            the type -->
  </Object>
 
Alternatively, the XML can specify the BasicSourceMap:
  <Object type="BasicSourceMap" name="someName" paramList="the,param,list" >

   <!-- schema for BasicSourceMap -->

  </Object>
 

Developed by Raritan Technologies .

Author:
Ted Sullivan (Raritan Technologies)

Constructor Summary
XMLSourceMapFactory()
           
 
Method Summary
 ISourceMap createSourceMap(java.lang.String objectType)
          Creates a source map for the objectType given: Objects are "What" the user wants to find: a document, a job, a social life etc.
 ISourceMap createSourceMap(java.lang.String sourceMapName, java.lang.String objectType)
           
 java.util.Iterator getSourceMapNames()
           
 ISourceMapTreeNode getSourceMapTree(java.lang.String name)
          Returns a source map tree: A hierarchically organized set of source map references.
 ISourceMapTreeRenderer getSourceMapTreeRenderer(java.lang.String name)
          Get a source map tree renderer...
 java.util.Iterator getSourceTypes()
           
 java.util.Iterator getSourceTypes(java.lang.String sourceMapName)
           
static void setStreamFactory(IStreamFactory factory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLSourceMapFactory

public XMLSourceMapFactory()
Method Detail

createSourceMap

public ISourceMap createSourceMap(java.lang.String objectType)
Description copied from interface: ISourceMapFactory
Creates a source map for the objectType given: Objects are "What" the user wants to find: a document, a job, a social life etc.

Specified by:
createSourceMap in interface ISourceMapFactory

createSourceMap

public ISourceMap createSourceMap(java.lang.String sourceMapName,
                                  java.lang.String objectType)
Specified by:
createSourceMap in interface ISourceMapFactory

getSourceTypes

public java.util.Iterator getSourceTypes()
Specified by:
getSourceTypes in interface ISourceMapFactory

getSourceMapNames

public java.util.Iterator getSourceMapNames()
Specified by:
getSourceMapNames in interface ISourceMapFactory

getSourceTypes

public java.util.Iterator getSourceTypes(java.lang.String sourceMapName)
Specified by:
getSourceTypes in interface ISourceMapFactory

getSourceMapTree

public ISourceMapTreeNode getSourceMapTree(java.lang.String name)
Description copied from interface: ISourceMapFactory
Returns a source map tree: A hierarchically organized set of source map references.

Specified by:
getSourceMapTree in interface ISourceMapFactory

getSourceMapTreeRenderer

public ISourceMapTreeRenderer getSourceMapTreeRenderer(java.lang.String name)
Description copied from interface: ISourceMapFactory
Get a source map tree renderer...

Specified by:
getSourceMapTreeRenderer in interface ISourceMapFactory

setStreamFactory

public static void setStreamFactory(IStreamFactory factory)