/** * * @param co * current config object which is queried * @param currentNamePart * the queried property name * @return the value for given property name * @throws ObjectNotFoundException */ private Object configObjectGet(ConfigObject co, String currentNamePart) { /* * get the property value */ Object result = co.getProperty(currentNamePart); if (result instanceof ConfigObject) { // try if property value is empty ConfigObject coResult = (ConfigObject) result; if (coResult.size() == 0) { throw new ObjectNotFoundException(); } } else { result = resolvePropObject(result); }// fi return result; }
/** * * @param co * current config object which is queried * @param currentNamePart * the queried property name * @return the value for given property name * @throws ObjectNotFoundException */ private Object configObjectGet(ConfigObject co, String currentNamePart) { /* * get the property value */ Object result = co.getProperty(currentNamePart); if (result instanceof ConfigObject) { // try if property value is empty ConfigObject coResult = (ConfigObject) result; if (coResult.size() == 0) { throw new ObjectNotFoundException(); } } else { result = resolvePropObject(result); }// fi return result; }