hoplugins.commons.utils
Class RatingUtil

java.lang.Object
  extended byhoplugins.commons.utils.RatingUtil

public final class RatingUtil
extends java.lang.Object

Utility for Rating Formatting

Author:
Massimiliano Amato

Method Summary
static java.lang.String getRating(int rating, boolean showNumber, boolean showText, plugins.IHOMiniModel model)
          Utility Method that returns a string representation of the rating
static double getRating(java.lang.String desc, boolean isNumeric, boolean isDescription, java.util.List skills)
          Utility Method that returns a double representation of the rating
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRating

public static java.lang.String getRating(int rating,
                                         boolean showNumber,
                                         boolean showText,
                                         plugins.IHOMiniModel model)
Utility Method that returns a string representation of the rating

Parameters:
rating - int value of the rating
showNumber - is the numberical representation being shown
showText - is the textual representation being shown
model - IHOMinimodel
Returns:
String with rating as configured

getRating

public static double getRating(java.lang.String desc,
                               boolean isNumeric,
                               boolean isDescription,
                               java.util.List skills)
Utility Method that returns a double representation of the rating

Parameters:
desc - String representation of the rating
isNumeric - Indicator if the string includes the numerical value
isDescription - Indicator if the string includes the description
skills - List of skills
Returns:
ouble with raing


Copyright © 2005 Hattrick Organizer Plugins Project. All Rights Reserved.