com.memority.toolkit.rule.api.TransformRule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of toolkit-rule-api Show documentation
Show all versions of toolkit-rule-api Show documentation
This artifact provides the API classes that are necessary to implement the contracts of Memority configuration Rules.
/*
* Copyright (c) 2016-2023 Memority. All Rights Reserved.
*
* This file is part of Memority Toolkit API , a Memority project.
*
* This file is released under the Memority Public Artifacts End-User License Agreement,
* see
* Unauthorized copying of this file, via any medium is strictly prohibited.
*/
package com.memority.toolkit.rule.api;
import com.memority.toolkit.rule.api.context.Context;
/**
* A transform Rule is meant to apply changes to the given Context (including its subcontexts). Which parts of the context
* are mutable and/or expected to be mutated are implementation dependant.
*
* @see Context
*/
public interface TransformRule extends Rule {
@Override
default RuleType getRuleType() {
return RuleType.TRANSFORM;
}
/**
* Run the Transform Rule with the given context
, transforming its mutable context.
*
* @param context the non null rule context
*/
void transform(Context context);
}