vertx-gaia/vertx-co/src/main/jib/io/vertx/up/uca/stable/Insurer.java
package io.vertx.up.uca.stable;
import io.horizon.exception.ProgramException;
import io.vertx.core.json.JsonArray;
import io.vertx.core.json.JsonObject;
/**
* Insure to be configuration correct.
*/
public interface Insurer {
/**
* @param data input data
* @param elementRule rule element
*
* @throws ProgramException returned checked error
*/
void flumen(JsonObject data, JsonObject elementRule) throws ProgramException;
/**
* Verify json array for each element.
*
* @param array input data array
* @param elementRule rule element
*
* @throws ProgramException returned checked error
*/
void flumen(JsonArray array, JsonObject elementRule) throws ProgramException;
}