321 super(); 322 323 child = bcc; 324 proxyPeer = peer; 325 } 326 327 Object getChild() { return child; } 328 329 void setRemovePending(boolean v) { removePending = v; } 330 331 boolean isRemovePending() { return removePending; } 332 333 boolean isProxyPeer() { return proxyPeer != null; } 334 335 Object getProxyPeer() { return proxyPeer; } 336 /* 337 * fields 338 */ 339 340 341 private Object child; 342 private Object proxyPeer; 343 344 private transient boolean removePending; 345 } 346 347 /** 348 * <p> 349 * Subclasses can override this method to insert their own subclass 350 * of Child without having to override add() or the other Collection 351 * methods that add children to the set. 352 * </p> 353 * @param targetChild the child to create the Child on behalf of 354 * @param peer the peer if the tragetChild and the peer are related by an implementation of BeanContextProxy 355 * @return Subtype-specific subclass of Child without overriding collection methods 356 */ 357 358 protected BCSChild createBCSChild(Object targetChild, Object peer) { 359 return new BCSChild(targetChild, peer); 360 } 361 | 321 super(); 322 323 child = bcc; 324 proxyPeer = peer; 325 } 326 327 Object getChild() { return child; } 328 329 void setRemovePending(boolean v) { removePending = v; } 330 331 boolean isRemovePending() { return removePending; } 332 333 boolean isProxyPeer() { return proxyPeer != null; } 334 335 Object getProxyPeer() { return proxyPeer; } 336 /* 337 * fields 338 */ 339 340 341 @SuppressWarnings("serial") // Not statically typed as Serializable 342 private Object child; 343 @SuppressWarnings("serial") // Not statically typed as Serializable 344 private Object proxyPeer; 345 346 private transient boolean removePending; 347 } 348 349 /** 350 * <p> 351 * Subclasses can override this method to insert their own subclass 352 * of Child without having to override add() or the other Collection 353 * methods that add children to the set. 354 * </p> 355 * @param targetChild the child to create the Child on behalf of 356 * @param peer the peer if the tragetChild and the peer are related by an implementation of BeanContextProxy 357 * @return Subtype-specific subclass of Child without overriding collection methods 358 */ 359 360 protected BCSChild createBCSChild(Object targetChild, Object peer) { 361 return new BCSChild(targetChild, peer); 362 } 363 |