@Test public void isString() { assertTrue("is not proper text", cfg.isString(TEXT, MANDATORY)); assertTrue("is not proper text", cfg.isString(TEXT, MANDATORY, "^f.*")); assertTrue("is not proper text", cfg.isString(TEXT, OPTIONAL, "^f.*")); assertTrue("is not proper text", cfg.isString(TEXT, OPTIONAL)); assertTrue("is not proper text", cfg.isString("none", OPTIONAL)); assertTrue("did not detect missing field", expectInvalidField(() -> cfg.isString("none", MANDATORY))); assertTrue("did not detect bad text", expectInvalidField(() -> cfg.isString(TEXT, OPTIONAL, "^b.*"))); }
protected boolean isString(String field, FieldPresence presence, String... pattern) { return isString(object, field, presence, pattern); }
Config { protected boolean isString(String field, FieldPresence presence, String... pattern) { return isString(object, field, presence, pattern); } }
Config { protected boolean isString(String field, FieldPresence presence, String... pattern) { return isString(object, field, presence, pattern); }  }
Config { protected boolean isString(String field, FieldPresence presence, String... pattern) { return isString(object, field, presence, pattern); }  final void init(S subject, String key, JsonNode node, ObjectMapper mapper,
                     ConfigApplyDelegate delegate); boolean isValid(); S subject(); String key(); JsonNode node(); void apply(); }
Config { protected boolean isString(String field, FieldPresence presence, String... pattern) { return isString(object, field, presence, pattern); }  final void init(S subject, String key, JsonNode node, ObjectMapper mapper,
                     ConfigApplyDelegate delegate); boolean isValid(); S subject(); String key(); JsonNode node(); void apply();  }