com.raritantechnologies.searchApp
Class StaticSearchSourceInfo

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

public class StaticSearchSourceInfo
extends java.lang.Object
implements ISearchSourceInfo

Enables source properties to be described in the XML Configuration file.

XML Configuration Template:
  <SourceInfo class="com.raritantechnologies.searchApp.StaticSourceInfo" >

    <Property name="[ name of property ]">
      <!-- One or more Value Tags -->
      <Value>[ the property value ]</Value>
    </Property>

  </SourceInfo>
 

Developed by Raritan Technologies .

Author:
Ted Sullivan

Constructor Summary
StaticSearchSourceInfo()
           
 
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

StaticSearchSourceInfo

public StaticSearchSourceInfo()
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