no.sesat.search.view.config
Class SearchTab.EnrichmentHint

java.lang.Object
  extended by no.sesat.search.view.config.SearchTab.EnrichmentHint
All Implemented Interfaces:
Serializable
Enclosing class:
SearchTab

public static final class SearchTab.EnrichmentHint
extends Object
implements Serializable

Immutable POJO holding Enrichment properties from a given tab.

See Also:
Serialized Form

Field Summary
static String HINT_KEY
           
static String NAME_KEY
           
static String SCORE_KEY
           
 
Constructor Summary
SearchTab.EnrichmentHint(String rule, int baseScore, int threshold, float weight, String command, Map<String,String> properties)
           
 
Method Summary
 int getBaseScore()
          Getter for property baseScore.
 String getCommand()
          Getter for property command.
 Map<String,String> getProperties()
           
 String getProperty(String key)
           
 String getRule()
          Getter for property rule.
 int getThreshold()
          Getter for property threshold.
 float getWeight()
          Getter for property weight.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME_KEY

public static final String NAME_KEY
See Also:
Constant Field Values

SCORE_KEY

public static final String SCORE_KEY
See Also:
Constant Field Values

HINT_KEY

public static final String HINT_KEY
See Also:
Constant Field Values
Constructor Detail

SearchTab.EnrichmentHint

public SearchTab.EnrichmentHint(String rule,
                                int baseScore,
                                int threshold,
                                float weight,
                                String command,
                                Map<String,String> properties)
Parameters:
rule -
baseScore -
threshold -
weight -
command -
properties -
Method Detail

getRule

public String getRule()
Getter for property rule.

Returns:
Value of property rule. Returns null if value equals empty String("").

getBaseScore

public int getBaseScore()
Getter for property baseScore.

Returns:
Value of property baseScore.

getThreshold

public int getThreshold()
Getter for property threshold.

Returns:
Value of property threshold.

getCommand

public String getCommand()
Getter for property command.

Returns:
Value of property command.

getWeight

public float getWeight()
Getter for property weight.

Returns:
Value of property weight.

toString

public String toString()
Overrides:
toString in class Object

getProperties

public Map<String,String> getProperties()

getProperty

public String getProperty(String key)


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