fr.paris.lutece.plugins.document.business.rules
Class RuleTypesSet

java.lang.Object
  extended by fr.paris.lutece.plugins.document.business.rules.RuleTypesSet
All Implemented Interfaces:
IRuleTypesSet

public class RuleTypesSet
extends Object
implements IRuleTypesSet

Rules Set


Constructor Summary
RuleTypesSet()
           
 
Method Summary
 String getRuleTypeKey(Rule rule)
          Returns the rule type of a given class type
 Collection<Rule> getRuleTypes()
          Returns all rule types
 fr.paris.lutece.util.ReferenceList getRuleTypesList(Locale locale)
          Returns the rule types list
 Rule newInstance(String strRuleTypeKey)
          Create a new instance of a rule of a given type
 void setRuleTypesMap(Map<String,Rule> mapRules)
          Sets the rule types map
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleTypesSet

public RuleTypesSet()
Method Detail

setRuleTypesMap

public void setRuleTypesMap(Map<String,Rule> mapRules)
Sets the rule types map

Specified by:
setRuleTypesMap in interface IRuleTypesSet
Parameters:
mapRules - The rule types map

newInstance

public Rule newInstance(String strRuleTypeKey)
Create a new instance of a rule of a given type

Specified by:
newInstance in interface IRuleTypesSet
Parameters:
strRuleTypeKey - The key name of the rule type
Returns:
A new Rule instance

getRuleTypeKey

public String getRuleTypeKey(Rule rule)
Returns the rule type of a given class type

Specified by:
getRuleTypeKey in interface IRuleTypesSet
Parameters:
rule - the rule
Returns:
The rule type

getRuleTypesList

public fr.paris.lutece.util.ReferenceList getRuleTypesList(Locale locale)
Returns the rule types list

Specified by:
getRuleTypesList in interface IRuleTypesSet
Parameters:
locale - the locale
Returns:
The rule types list

getRuleTypes

public Collection<Rule> getRuleTypes()
Returns all rule types

Specified by:
getRuleTypes in interface IRuleTypesSet
Returns:
A collection of rule types


Copyright © 2013 Mairie de Paris. All Rights Reserved.