/** * Returns a string representation of the Object * * @return Description of the Return Value */ public String toString() { String className = ""; if (objectWrapper != null) { className = objectWrapper.getClassName(); } return "BObject instanceName=" + getInstanceName() + " Class Name=" + className; }
/** * Constructor for BObject. * * @param aWrapper Description of the Parameter */ BObject(ObjectWrapper aWrapper) { objectWrapper = aWrapper; Package bluejPkg = objectWrapper.getPackage(); Project bluejProj = bluejPkg.getProject(); // It really seems that the translation between Java naming and Class is needed. // Also tryng to get the Class instead of just the name is a mess... String className = transJavaToClass(objectWrapper.getClassName()); wrapperId = new Identifier(bluejProj, bluejPkg, className); }