no.sesat.search.view
Class SearchTabFactory

java.lang.Object
  extended by no.sesat.search.site.config.AbstractDocumentFactory
      extended by no.sesat.search.view.SearchTabFactory
All Implemented Interfaces:
SiteKeyedFactory

public final class SearchTabFactory
extends AbstractDocumentFactory
implements SiteKeyedFactory

Deserialises views.xml into SearchTab (& its inner classes).

Version:
$Id: SearchTabFactory.java 7225 2009-04-09 00:32:20Z ssmiweve $

Nested Class Summary
static interface SearchTabFactory.Context
          The context any SearchTabFactory must work against.
 
Nested classes/interfaces inherited from class no.sesat.search.site.config.AbstractDocumentFactory
AbstractDocumentFactory.ParseType
 
Field Summary
static String VIEWS_XMLFILE
          Name of the configuration file.
 
Method Summary
 SearchTab getTabByKey(String key)
          Find the tab with the given key.
 SearchTab getTabByName(String id)
          Find the tab with the given id.
 Map<String,SearchTab> getTabsByName()
           
static SearchTabFactory instanceOf(SearchTabFactory.Context cxt)
          Return the factory in use for the skin defined within the context.
 boolean remove(Site site)
          Remove the factory in use for the skin defined within the context.
 
Methods inherited from class no.sesat.search.site.config.AbstractDocumentFactory
beanToXmlName, fillBeanProperty, parseBoolean, parseFloat, parseInt, parseString, xmlToBeanName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VIEWS_XMLFILE

public static final String VIEWS_XMLFILE
Name of the configuration file.

See Also:
Constant Field Values
Method Detail

instanceOf

public static SearchTabFactory instanceOf(SearchTabFactory.Context cxt)
Return the factory in use for the skin defined within the context. *

Parameters:
cxt -
Returns:

remove

public boolean remove(Site site)
Remove the factory in use for the skin defined within the context.

Specified by:
remove in interface SiteKeyedFactory
Parameters:
site - remove factory corresponding to this site.
Returns:
true if a factory was successfully removed.

getTabByName

public SearchTab getTabByName(String id)
Find the tab with the given id. Search recursively up through the skin's parents. Allow to return null.

Parameters:
id -
Returns:

getTabByKey

public SearchTab getTabByKey(String key)
Find the tab with the given key. Search recursively up through the skin's parents. Allow to return null.

Parameters:
key -
Returns:

getTabsByName

public Map<String,SearchTab> getTabsByName()


Copyright © 2005-2009 Schibsted ASA. All Rights Reserved.