net.datacrow.enhancers
Class ValueEnhancers

java.lang.Object
  extended by net.datacrow.enhancers.ValueEnhancers

public class ValueEnhancers
extends java.lang.Object

Collection of value enhancers. Value enhancers should be registered here to become active.

Author:
Robert Jan van der Waals
See Also:
IValueEnhancer

Field Summary
static int _AUTOINCREMENT
           
static int _TITLEREWRITERS
           
 
Constructor Summary
ValueEnhancers()
           
 
Method Summary
static java.util.Collection<IValueEnhancer> getEnhancers(DcField field)
          Retrieves all value enhancers for the specified field.
static java.util.Collection<? extends IValueEnhancer> getEnhancers(int module, int idx)
          Retrieves all value enhancers for the specified module.
static void initialize()
          Loads all value enhancers.
static void registerEnhancer(DcField field, IValueEnhancer valueEnhancer)
          Register a value enhancer for a specific field.
static void save()
          Saves the enhancer settings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_AUTOINCREMENT

public static final int _AUTOINCREMENT
See Also:
Constant Field Values

_TITLEREWRITERS

public static final int _TITLEREWRITERS
See Also:
Constant Field Values
Constructor Detail

ValueEnhancers

public ValueEnhancers()
Method Detail

registerEnhancer

public static void registerEnhancer(DcField field,
                                    IValueEnhancer valueEnhancer)
Register a value enhancer for a specific field.

Parameters:
field - The field which will be enhanced.
valueEnhancer - The value enhancer.

initialize

public static void initialize()
Loads all value enhancers.


getEnhancers

public static java.util.Collection<IValueEnhancer> getEnhancers(DcField field)
Retrieves all value enhancers for the specified field.

Parameters:
field -
Returns:
Empty or filled collection of enhancers.

getEnhancers

public static java.util.Collection<? extends IValueEnhancer> getEnhancers(int module,
                                                                          int idx)
Retrieves all value enhancers for the specified module.

Parameters:
module - The module index.
idx - The enhancer index/type.
Returns:
Empty or filled collection of enhancers.

save

public static void save()
Saves the enhancer settings.