public Map<String, Object> subSet(String namespace) { namespace = Config.canonical(namespace); namespace = S.ensure(namespace).endWith("."); String prefix2 = "act." + namespace; Map<String, Object> subset = new HashMap<>(); for (String key : raw.keySet()) { if (key.startsWith(namespace) || key.startsWith(prefix2)) { Object o = raw.get(key); if (null == o) { continue; } if (o instanceof String) { o = AppConfigKey.helper.evaluate(o.toString(), raw); } if (key.startsWith("act.")) { key = key.substring(4); } if (subset.containsKey(key)) continue; subset.put(key, o); } } return subset; }
public Map<String, Object> subSet(String namespace) { namespace = Config.canonical(namespace); namespace = S.ensure(namespace).endWith("."); String prefix2 = "act." + namespace; Map<String, Object> subset = new HashMap<>(); for (String key : raw.keySet()) { if (key.startsWith(namespace) || key.startsWith(prefix2)) { Object o = raw.get(key); if (null == o) { continue; } if (o instanceof String) { o = AppConfigKey.helper.evaluate(o.toString(), raw); } if (key.startsWith("act.")) { key = key.substring(4); } if (subset.containsKey(key)) continue; subset.put(key, o); } } return subset; }
public JoinExpression on(String modelPrefix, String field, String myField) { this.onPrefix = S.ensure(S.requireNotBlank(modelPrefix).trim()).endWith("."); this.onField = S.requireNotBlank(field).trim(); if (S.notBlank(myField)) { this.onMyField = myField.trim(); } else { this.onMyField = onField; } return this; }
public SimpleWhereExpression(String columnPrefix, String column, Operator operator) { this(column, operator); this.columnPrefix = S.ensure(S.requireNotBlank(columnPrefix).trim()).endWith("."); }
protected void setFixtureFolder(String fixtureFolder) { if (S.notBlank(fixtureFolder)) { this.fixtureFolder = S.ensure(S.ensure(fixtureFolder.trim()).startWith("/")).endWith("/"); } }
protected void setFixtureFolder(String fixtureFolder) { if (S.notBlank(fixtureFolder)) { this.fixtureFolder = S.ensure(S.ensure(fixtureFolder.trim()).startWith("/")).endWith("/"); } }
protected void setFixtureFolder(String fixtureFolder) { if (S.notBlank(fixtureFolder)) { this.fixtureFolder = S.ensure(S.ensure(fixtureFolder.trim()).startWith("/")).endWith("/"); } }
private void addModelPackage(String packageSpec) { for (String pkg : S.fastSplit(packageSpec, ",")) { pkg = pkg.trim(); if (S.empty(pkg)) { continue; } this.modelPackages.add(S.ensure(pkg).endWith(".")); } }
private void addModelPackage(String packageSpec) { for (String pkg : S.fastSplit(packageSpec, ",")) { pkg = pkg.trim(); if (S.empty(pkg)) { continue; } this.modelPackages.add(S.ensure(pkg).endWith(".")); } }
private void addModelPackage(String packageSpec) { for (String pkg : S.fastSplit(packageSpec, ",")) { pkg = pkg.trim(); if (S.empty(pkg)) { continue; } this.modelPackages.add(S.ensure(pkg).endWith(".")); } }