コード例 #1
0
  /** Clear all properties that already exist in destination PropertySet. */
  private void clearDestination() throws PropertyException {
    Iterator keys = destination.getKeys().iterator();

    while (keys.hasNext()) {
      String key = (String) keys.next();
      destination.remove(key);
    }
  }
コード例 #2
0
  public void cloneProperties() throws PropertyException {
    clearDestination();

    Iterator keys = source.getKeys().iterator();

    while (keys.hasNext()) {
      String key = (String) keys.next();
      cloneProperty(key);
    }
  }