Package fr.gouv.vitam.common.mapping.dip
Class RuleMapper
- java.lang.Object
-
- fr.gouv.vitam.common.mapping.dip.RuleMapper
-
public class RuleMapper extends java.lang.ObjectMap data base representation of rules to a jaxb representation =&tg; Map RuleCategoryModel to CommonRule
-
-
Constructor Summary
Constructors Constructor Description RuleMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends CommonRule>
TfillCommonRule(RuleCategoryModel ruleCategory, java.util.function.Supplier<T> commonRuleSupplier)This generic method is used to map data base model of rule to jaxb
-
-
-
Method Detail
-
fillCommonRule
public <T extends CommonRule> T fillCommonRule(RuleCategoryModel ruleCategory, java.util.function.Supplier<T> commonRuleSupplier) throws javax.xml.datatype.DatatypeConfigurationException
This generic method is used to map data base model of rule to jaxb- Type Parameters:
T-- Parameters:
ruleCategory-commonRuleSupplier-- Returns:
- rule category
- Throws:
javax.xml.datatype.DatatypeConfigurationException
-
-