com.credibledoc.iso8583packer.validator.Validator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iso-8583-packer Show documentation
Show all versions of iso-8583-packer Show documentation
Helps to define message structure in ISO 8583 and other formats.
package com.credibledoc.iso8583packer.validator;
import com.credibledoc.iso8583packer.dump.Visualizer;
import com.credibledoc.iso8583packer.message.MsgField;
import com.credibledoc.iso8583packer.navigator.Navigator;
/**
* The interface is used for validation the {@link com.credibledoc.iso8583packer.message.MsgField} structure.
*
* The interface created for ability to override its implementation in the {@link ValidatorService} class.
*
* @author Kyrylo Semenko
*/
public interface Validator {
/**
* Check restrictions of the Field structure and all its children recursively.
*
* @param current the {@link MsgField} to be checked.
*/
void validateStructure(MsgField current);
/**
* Set service.
*
* @param navigator the {@link Navigator} to set.
*/
void setNavigator(Navigator navigator);
/**
* Set service.
*
* @param visualizer the {@link Visualizer} to set.
*/
void setVisualizer(Visualizer visualizer);
}