Package pl.project13.maven.git
Class TransformationRule
java.lang.Object
pl.project13.maven.git.TransformationRule
This class represents a specific transformation logic the user wants to perform.
Each transformationRule consist of two required fields apply and
action.
The apply-tag controls when the rule should be applied and can be set to TransformationRule.ApplyEnum.BEFORE to have the rule being applied before or it can be set to
TransformationRule.ApplyEnum.AFTER to have the rule being applied after the replacement.
The action-tag determines the string conversion rule that should be applied.
Refer to https://github.com/git-commit-id/git-commit-id-maven-plugin/issues/317 for a use-case.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static enumEachtransformationRuleconsist of two required fieldsapplyandaction.protected static enumEachtransformationRuleconsist of two required fieldsapplyandaction. -
Constructor Summary
ConstructorsModifierConstructorDescriptionTransformationRule(String apply, String action) protectedTransformationRule(TransformationRule.ApplyEnum applyRule, TransformationRule.ActionEnum actionRule) -
Method Summary
-
Constructor Details
-
TransformationRule
public TransformationRule() -
TransformationRule
-
TransformationRule
protected TransformationRule(TransformationRule.ApplyEnum applyRule, TransformationRule.ActionEnum actionRule)
-
-
Method Details
-
getApply
-
setApply
-
getApplyRule
-
getAction
-
setAction
-
getActionRule
-