uk.ac.ebi.intact.application.hierarchView.struts.view.utils
Class OptionGenerator

java.lang.Object
  |
  +--uk.ac.ebi.intact.application.hierarchView.struts.view.utils.OptionGenerator

public class OptionGenerator
extends java.lang.Object

Allows to create some collection to populate option list in HTML form.

Version:
$Id: OptionGenerator.java,v 1.5 2003/11/13 14:21:44 skerrien Exp $
Author:
Samuel Kerrien (skerrien@ebi.ac.uk)

Constructor Summary
OptionGenerator()
           
 
Method Summary
static java.util.ArrayList getAuthorizedBehaviour(java.lang.String anHighlightmentMethod)
          Create a collection of LabelValueBean object specific of an highlightment method from a properties file
static LabelValueBean getDefaultSource()
          create a LabelValueBean object corresponding to the default source if it exists
static java.util.ArrayList getHighlightmentSources()
          create a collection of LabelValueBean object from a properties file
static LabelValueBean getSource(java.lang.String sourceName)
          create a LabelValueBean object corresponding to the default source if it exists
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptionGenerator

public OptionGenerator()
Method Detail

getHighlightmentSources

public static java.util.ArrayList getHighlightmentSources()
create a collection of LabelValueBean object from a properties file

Returns:
a collection of LabelValueBean object

getDefaultSource

public static LabelValueBean getDefaultSource()
create a LabelValueBean object corresponding to the default source if it exists

Returns:
a LabelValueBean object or null is no default.

getSource

public static LabelValueBean getSource(java.lang.String sourceName)
create a LabelValueBean object corresponding to the default source if it exists

Returns:
a LabelValueBean object or null if it doesn't exists.

getAuthorizedBehaviour

public static java.util.ArrayList getAuthorizedBehaviour(java.lang.String anHighlightmentMethod)
Create a collection of LabelValueBean object specific of an highlightment method from a properties file

Parameters:
anHighlightmentMethod -
Returns:
a collection of LabelValueBean object specific of an highlightment method


IntAct Project - EMBL-EBI 2004 - intact-help@ebi.ac.uk