ch.tatool.core.element.handler.score
Class PointsAndLevelUtils
java.lang.Object
ch.tatool.core.element.handler.score.PointsAndLevelUtils
public class PointsAndLevelUtils
- extends Object
Utility methods for points and level handlers.
- Author:
- Michael Ruflin
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROPERTY_REGISTERED_POINTS_AND_LEVEL_HANDLERS
public static final String PROPERTY_REGISTERED_POINTS_AND_LEVEL_HANDLERS
- Property name used to store the registered PointsAndLevelHandlers in the module with "" as element name.
- See Also:
- Constant Field Values
PointsAndLevelUtils
public PointsAndLevelUtils()
getRegisteredPointsAndLevelHandlers
public static Set<String> getRegisteredPointsAndLevelHandlers(Module module)
- Get all registered point and level handlers found for a given module.
- Returns:
- a Set containing the unique ids of all registered PointsAndLevelHandlers
getPointsAndLevelHandlerDescription
public static String getPointsAndLevelHandlerDescription(Module module,
String handlerId)
registerPointAndLevelHandler
public static void registerPointAndLevelHandler(Module module,
PointsAndLevelHandler handler)
- Register a point and level handler onto the module.
This method can be called by PointsAndLevelHandlers as often as they wish.
Upon first call for a handler, its id is registered in the module. If the handler is
already registered, then this method won't have any effect.
Copyright © 2012. All Rights Reserved.