// ******************************************************************
// *
// * LsSearchEngine.js
// *
// * Copyright (C) 2002 by Lingway, France. All rights reserved.
// *
// ******************************************************************/


// ******************************************************************
// LsSearchEngineFeature class

//
// Initialization of LsSearchEngineFeature object.
//
function _lsSearchEngineFeatureInit(pAttribute, pValue)
{
  this.attribute = pAttribute;      // Type : string.
  this.value     = pValue;          // Type : string.
}

//
// Constructor.
//
function LsSearchEngineFeature(pAttribute, pValue)
{
  // "Public" methods.
  this.initialize  = _lsSearchEngineFeatureInit;

  this.initialize(pAttribute, pValue);
}


// ******************************************************************
// LsSearchEngine class

//
// Initialization of LsSearchEngine object.
//
function _lsSearchEngineInit(pAlias, pName, pDescription)
{
  this.alias       = pAlias;          // Type : string.
  this.name        = pName;           // Type : string.
  this.description = pDescription;    // Type : string.
  this.features    = null;            // Type : Array of LsSearchEngineFeature objects.
}

//
// Constructor.
//
function LsSearchEngine(pAlias, pName, pDescription)
{
  // "Public" methods.
  this.initialize  = _lsSearchEngineInit;

  this.initialize(pAlias, pName, pDescription);
}


// ******************************************************************
// LsSearchEngines class

//
// Initialization of LsSearchEngines object.
//
function _lsSearchEnginesInit()
{
  this.searchEngines = null;             // Type : Array of LsSearchEngine objects.
}

//
// Constructor.
//
function LsSearchEngines()
{
  // "Public" methods.
  this.initialize  = _lsSearchEnginesInit;

  this.initialize();
}

