public ICFLibAnyObj getNamedObject(Class qualifyingClass, String objName) { ICFLibAnyObj topContainer = getObjQualifier(qualifyingClass); if (topContainer == null) { return (null); } ICFLibAnyObj namedObject = topContainer.getNamedObject(objName); return (namedObject); }
public ICFLibAnyObj getNamedObject(String objName) { String nextName; String remainingName; ICFLibAnyObj subObj = null; ICFLibAnyObj retObj; int nextDot = objName.indexOf('.'); if (nextDot >= 0) { nextName = objName.substring(0, nextDot); remainingName = objName.substring(nextDot + 1); } else { nextName = objName; remainingName = null; } if (remainingName == null) { retObj = subObj; } else if (subObj == null) { retObj = null; } else { retObj = subObj.getNamedObject(remainingName); } return (retObj); }