248249250251252253254255256257258
@Override public long getLong(String key, long val) { for(String node : path) { Config c = manager.getConfig(node); if( c.hasValue(key) ) return c.getLong(key, val); } return val; }
266267268269270271272273274275276
@Override public float getFloat(String key, float val) { for(String node : path) { Config c = manager.getConfig(node); if( c.hasValue(key) ) return c.getFloat(key, val); } return val; }
284285286287288289290291292293294
@Override public double getDouble(String key, double val) { for(String node : path) { Config c = manager.getConfig(node); if( c.hasValue(key) ) return c.getDouble(key, val); } return val; }
302303304305306307308309310311312
@Override public Color getColor(String key, Color val) { for(String node : path) { Config c = manager.getConfig(node); if( c.hasValue(key) ) return c.getColor(key, val); } return val; }
320321322323324325326327328329330
@Override public Dimension getDimension(String key, Dimension val) { for(String node : path) { Config c = manager.getConfig(node); if( c.hasValue(key) ) return c.getDimension(key, val); } return val; }
338339340341342343344345346347348
@Override public Point getPoint(String key, Point val) { for(String node : path) { Config c = manager.getConfig(node); if( c.hasValue(key) ) return c.getPoint(key, val); } return val; }
356357358359360361362363364365366
@Override public <E extends Enum<E>> E getEnum(String key, Class<E> type) { for (String node : path) { Config c = manager.getConfig(node); if (c.hasValue(key)) return c.getEnum(key, type); } return null; }
368369370371372373374375376377378
@Override public <E> E getValue(String key, E val, Decoder<? extends E, String> decoder) { for(String node : path) { Config c = manager.getConfig(node); if( c.hasValue(key) ) return c.getValue(key, val, decoder); } return val; }
387388389390391392393394395
public void exportTo(Map<String, String> map) { for(int i = path.size() - 1; i >= 0; i--) { String node = path.get(i); Config c = manager.getConfig(node); c.exportTo(map); } }
398399400401402403404405406
public void exportTo(Properties prop) { for(int i = path.size() - 1; i >= 0; i--) { String node = path.get(i); Config c = manager.getConfig(node); c.exportTo(prop); } }