UIX 2.2.8

oracle.cabo.ui.laf
Class Score

java.lang.Object
  |
  +--oracle.cabo.ui.laf.Score
Direct Known Subclasses:
ScoreImpl, ScoreProxy

public abstract class Score
extends java.lang.Object

The Score object is used by LookAndFeelScorer to report the results of the look and feel scoring process.


Field Summary
static int COMPARISON_MATCH
          Constant used to indicate that the value that is being tested is acceptable to the LookAndFeelScorer, and that the match is stronger than a DONT_CARE_MATCH.
static int DONT_CARE_MATCH
          Constant used to indicate that the LookAndFeelScorer has no preference for the value that is being tested, but that the value is acceptable.
static int EXACT_MATCH
          Constant used to indicate that LookAndFeelScorer considers the value that is being test to be an exact match.
static int NO_MATCH
          Constant used to indicate that the value that is being tested is not acceptable to the LookAndFeelScorer.
static int RANGE_MATCH
          Constant used to indicate that the value that is being tested falls within a range that is acceptable to the LookAndFeelScorer.
 
Constructor Summary
Score()
           
 
Method Summary
abstract  int getAgentApplicationScore()
          Returns the score for the Agent application.
abstract  int getAgentOSScore()
          Returns the score for the Agent operating system.
abstract  int getAgentTypeScore()
          Returns the score for the Agent type.
abstract  int getAgentVersionScore()
          Returns the score for the Agent version.
abstract  int getDiscriminantScore()
          Returns a discriminant score that is used as a tie-breaker when multiple LookAndFeels produce the same score.
abstract  int getNameScore()
          Returns the score for the look and feel family name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_MATCH

public static final int NO_MATCH
Constant used to indicate that the value that is being tested is not acceptable to the LookAndFeelScorer. If any of the individual component values (ie. name, agentType, agentApplication, etc...) return a NO_MATCH score, the corresponding LookAndFeel will not be used for the current request.

DONT_CARE_MATCH

public static final int DONT_CARE_MATCH
Constant used to indicate that the LookAndFeelScorer has no preference for the value that is being tested, but that the value is acceptable.

COMPARISON_MATCH

public static final int COMPARISON_MATCH
Constant used to indicate that the value that is being tested is acceptable to the LookAndFeelScorer, and that the match is stronger than a DONT_CARE_MATCH.

RANGE_MATCH

public static final int RANGE_MATCH
Constant used to indicate that the value that is being tested falls within a range that is acceptable to the LookAndFeelScorer. This is a stronger match than either a DONT_CARE_MATCH or a COMPARISON_MATCH.

EXACT_MATCH

public static final int EXACT_MATCH
Constant used to indicate that LookAndFeelScorer considers the value that is being test to be an exact match. This is the strongest possible match.
Constructor Detail

Score

public Score()
Method Detail

getNameScore

public abstract int getNameScore()
Returns the score for the look and feel family name.

getAgentTypeScore

public abstract int getAgentTypeScore()
Returns the score for the Agent type.

getAgentApplicationScore

public abstract int getAgentApplicationScore()
Returns the score for the Agent application.

getAgentVersionScore

public abstract int getAgentVersionScore()
Returns the score for the Agent version.

getAgentOSScore

public abstract int getAgentOSScore()
Returns the score for the Agent operating system.

getDiscriminantScore

public abstract int getDiscriminantScore()
Returns a discriminant score that is used as a tie-breaker when multiple LookAndFeels produce the same score.

UIX 2.2.8