class Rule implements JsonObjectConvertible {

    @Override
    public JsonObject toJson() {
        return JavaxJson.key(keys().type(), getType().name()).key(keys().pattern(), getPattern().pattern()).get();
    }

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

}