class Rule implements JsonObjectConvertible {

    public boolean matches(String value) {
        return getPattern().matcher(value).matches();
    }

    public  Rule(final RuleType type, final Pattern pattern);

}