com.raritantechnologies.searchApp
Class DynamicSearchSourceInfo

java.lang.Object
  extended bycom.raritantechnologies.searchApp.DynamicSearchSourceInfo
All Implemented Interfaces:
IConfigurable, ISearchSourceInfo

public class DynamicSearchSourceInfo
extends java.lang.Object
implements ISearchSourceInfo

Enables source properties to be described dynamically in another data source.

XML Configuration Template:
  <SourceInfo class="com.raritantechnologies.searchApp.DynamicSearchSourceInfo" 
                 lookupSearchSource="[ name of SearchSource that will be used to lookup source information ]" >

    <QueryFields>

    </QueryFields>

    <PropertyFields>

    </PropertyFields>

  </SourceInfo>
 

Developed by Raritan Technologies .

Author:
Ted Sullivan

Constructor Summary
DynamicSearchSourceInfo()
           
 
Method Summary
 java.lang.Object getProperty(java.lang.String property)
          returns a Source Property.
 java.lang.String[] getSourcePropertyNames()
          Returns a list of SearchSource specific property names.
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicSearchSourceInfo

public DynamicSearchSourceInfo()
Method Detail

getSourcePropertyNames

public java.lang.String[] getSourcePropertyNames()
Description copied from interface: ISearchSourceInfo
Returns a list of SearchSource specific property names.

Specified by:
getSourcePropertyNames in interface ISearchSourceInfo

getProperty

public java.lang.Object getProperty(java.lang.String property)
Description copied from interface: ISearchSourceInfo
returns a Source Property. The standard pattern is to return a String or Object if a property has a single value and a String or Object Array if the property has multiple values.

Specified by:
getProperty in interface ISearchSourceInfo

initialize

public void initialize(org.w3c.dom.Element elem)
Description copied from interface: IConfigurable
Initializes the object from an XML tag or element. This method is called by the Framework as part of the application initializtion. see ConfigurationManager, XMLConfigurationManager, XMLSearchFieldMapFactory, XMLSearchSourceFactory. Configurable objects that are owned or contained by other configurable objects will be initialized in by the parent object.

Specified by:
initialize in interface IConfigurable