示例#1
0
  /**
   * 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;
  }
示例#2
0
  /**
   * 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);
  }