org.apache.myfaces.trinidadinternal.ui.laf
Class ScoreImpl

java.lang.Object
  extended by org.apache.myfaces.trinidadinternal.ui.laf.Score
      extended by org.apache.myfaces.trinidadinternal.ui.laf.ScoreImpl

public class ScoreImpl
extends Score

Implementation of Score which provides storage for all component scores.

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/ui/laf/ScoreImpl.java#0 $) $Date: 10-nov-2005.18:50:34 $
Author:
The Oracle ADF Faces Team

Field Summary
 
Fields inherited from class org.apache.myfaces.trinidadinternal.ui.laf.Score
COMPARISON_MATCH, DONT_CARE_MATCH, EXACT_MATCH, NO_MATCH, RANGE_MATCH
 
Constructor Summary
ScoreImpl(int nameScore, int agentTypeScore, int agentApplicationScore, int agentVersionScore, int agentOSScore, int discriminantScore)
          Creates a ScoreImpl object based on the specified component scores.
 
Method Summary
 int getAgentApplicationScore()
          Returns the score for the Agent application.
 int getAgentOSScore()
          Returns the score for the Agent operating system.
 int getAgentTypeScore()
          Returns the score for the Agent type.
 int getAgentVersionScore()
          Returns the score for the Agent version.
 int getDiscriminantScore()
          Returns a discriminant score that is used as a tie-breaker when multiple LookAndFeels produce the same score.
 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
 

Constructor Detail

ScoreImpl

public ScoreImpl(int nameScore,
                 int agentTypeScore,
                 int agentApplicationScore,
                 int agentVersionScore,
                 int agentOSScore,
                 int discriminantScore)
Creates a ScoreImpl object based on the specified component scores.

Each component score must be one of the MATCH constants specified above.

Parameters:
nameScore - The score for the look and feel family name
agentTypeScore - The score for the Agent type
agentApplicationScore - The score for the Agent application
agentVersionScore - The score for the Agent version
agentOSScore - The score for the Agent operating system
discriminantScore - A discriminant score that is used to resolve ties between multiple LookAndFeels.
Method Detail

getNameScore

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

Specified by:
getNameScore in class Score

getAgentTypeScore

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

Specified by:
getAgentTypeScore in class Score

getAgentApplicationScore

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

Specified by:
getAgentApplicationScore in class Score

getAgentVersionScore

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

Specified by:
getAgentVersionScore in class Score

getAgentOSScore

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

Specified by:
getAgentOSScore in class Score

getDiscriminantScore

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

Specified by:
getDiscriminantScore in class Score


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.