Changeset 2617
- Timestamp:
- 07/11/08 16:33:59 (7 weeks ago)
- Location:
- trunk/components/client/src/pojos
- Files:
-
- 4 added
- 2 modified
-
DataObject.java (modified) (3 diffs)
-
PlateData.java (added)
-
ProjectData.java (modified) (1 diff)
-
ScreenData.java (added)
-
WellData.java (added)
-
WellSampleData.java (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/components/client/src/pojos/DataObject.java
r2463 r2617 39 39 import ome.model.meta.Experimenter; 40 40 import ome.model.meta.ExperimenterGroup; 41 import ome.model.screen.Plate; 42 import ome.model.screen.Screen; 43 import ome.model.screen.Well; 44 import ome.model.screen.WellSample; 41 45 42 46 /** … … 371 375 * @return not null IObject 372 376 */ 373 public IObject asIObject() { 374 return value; 375 } 377 public IObject asIObject() { return value; } 376 378 377 379 /** … … 381 383 * @return not null IObject 382 384 */ 383 public IAnnotated asIAnnotated() { 384 return (IAnnotated) asIObject(); 385 } 386 387 /** 388 * not null; may through class-cast exception 389 * 390 * @throws ClassCastException 391 * @return not null IObject 392 */ 393 public Experimenter asExperimenter() { 394 return (Experimenter) asIObject(); 395 } 396 397 /** 398 * not null; may through class-cast exception 399 * 400 * @throws ClassCastException 401 * @return not null IObject 402 */ 403 public ExperimenterGroup asGroup() { 404 return (ExperimenterGroup) asIObject(); 405 } 406 407 /** 408 * not null; may through class-cast exception 409 * 410 * @throws ClassCastException 411 * @return not null IObject 412 */ 413 public Annotation asAnnotation() { 414 return (Annotation) asIObject(); 415 } 416 417 /** 418 * not null; may through class-cast exception 419 * 420 * @throws ClassCastException 421 * @return not null IObject 422 */ 423 public Image asImage() { 424 return (Image) asIObject(); 425 } 426 427 /** 428 * not null; may through class-cast exception 429 * 430 * @throws ClassCastException 431 * @return not null IObject 432 */ 433 public Dataset asDataset() { 434 return (Dataset) asIObject(); 435 } 436 437 /** 438 * not null; may through class-cast exception 439 * 440 * @throws ClassCastException 441 * @return not null IObject 442 */ 443 public Category asCategory() { 444 return (Category) asIObject(); 445 } 446 447 /** 448 * not null; may through class-cast exception 449 * 450 * @throws ClassCastException 451 * @return not null IObject 452 */ 453 public CategoryGroup asCategoryGroup() { 454 return (CategoryGroup) asIObject(); 455 } 456 457 /** 458 * not null; may through class-cast exception 459 * 460 * @throws ClassCastException 461 * @return not null IObject 462 */ 463 public Project asProject() { 464 return (Project) asIObject(); 465 } 466 467 /** 468 * not null; may through class-cast exception 469 * 470 * @throws ClassCastException 471 * @return not null IObject 472 */ 473 public Pixels asPixels() { 474 return (Pixels) asIObject(); 475 } 476 385 public IAnnotated asIAnnotated() { return (IAnnotated) asIObject(); } 386 387 /** 388 * Returns the hosted IObject as an Experimenter. 389 * Not null; may through class-cast exception 390 * 391 * 392 * @throws ClassCastException 393 * @return not null IObject 394 */ 395 public Experimenter asExperimenter() { return (Experimenter) asIObject(); } 396 397 /** 398 * Returns the hosted IObject as an Experimenter Group. 399 * Not null; may through class-cast exception 400 * 401 * @throws ClassCastException 402 * @return not null IObject 403 */ 404 public ExperimenterGroup asGroup() 405 { 406 return (ExperimenterGroup) asIObject(); 407 } 408 409 /** 410 * Returns the hosted IObject as an Annotation. 411 * Not null; may through class-cast exception 412 * 413 * @throws ClassCastException 414 * @return not null IObject 415 */ 416 public Annotation asAnnotation() { return (Annotation) asIObject(); } 417 418 /** 419 * Returns the hosted IObject as an Image. 420 * Not null; may through class-cast exception 421 * 422 * @throws ClassCastException 423 * @return not null IObject 424 */ 425 public Image asImage() { return (Image) asIObject(); } 426 427 /** 428 * Returns the hosted IObject as a Dataset. 429 * Not null; may through class-cast exception 430 * 431 * @throws ClassCastException 432 * @return not null IObject 433 */ 434 public Dataset asDataset() { return (Dataset) asIObject(); } 435 436 /** 437 * Returns the hosted IObject as a Category. 438 * Not null; may through class-cast exception 439 * 440 * @throws ClassCastException 441 * @return See above 442 */ 443 public Category asCategory() { return (Category) asIObject(); } 444 445 /** 446 * Returns the hosted IObject as a CategoryGroup. 447 * Not null; may through class-cast exception 448 * 449 * @throws ClassCastException 450 * @return See above 451 */ 452 public CategoryGroup asCategoryGroup() 453 { 454 return (CategoryGroup) asIObject(); 455 } 456 457 /** 458 * Returns the hosted IObject as a Project. 459 * Not null; may through class-cast exception 460 * 461 * @throws ClassCastException 462 * @return See above 463 */ 464 public Project asProject() { return (Project) asIObject(); } 465 466 /** 467 * Returns the hosted IObject as a Pixels. 468 * Not null; may through class-cast exception 469 * 470 * @throws ClassCastException 471 * @return See above 472 */ 473 public Pixels asPixels() { return (Pixels) asIObject(); } 474 475 /** 476 * Returns the hosted IObject as a Screen. 477 * Not null; may through class-cast exception 478 * 479 * @throws ClassCastException 480 * @return See above 481 */ 482 public Screen asScreen() { return (Screen) asIObject(); } 483 484 /** 485 * Returns the hosted IObject as a Plate. 486 * Not null; may through class-cast exception 487 * 488 * @throws ClassCastException 489 * @return See above 490 */ 491 public Plate asPlate() { return (Plate) asIObject(); } 492 493 /** 494 * Returns the hosted IObject as a Well. 495 * Not null; may through class-cast exception 496 * 497 * @throws ClassCastException 498 * @return See above 499 */ 500 public Well asWell() { return (Well) asIObject(); } 501 502 /** 503 * Returns the hosted IObject as a Well. 504 * Not null; may through class-cast exception 505 * 506 * @throws ClassCastException 507 * @return See above 508 */ 509 public WellSample asWellSample() { return (WellSample) asIObject(); } 510 477 511 } 478 512 -
trunk/components/client/src/pojos/ProjectData.java
r2114 r2617 46 46 47 47 /** 48 * All the Datasets that contain this Image. The elements of this set are 49 * {@link DatasetData} objects. If this Image is not contained in any 50 * Dataset, then this set will be empty — but never <code>null</code>. 48 * All the Datasets that are contained this Project. 49 * The elements of this set are {@link DatasetData} objects. 50 * If this Project does not contained in any Dataset, 51 * then this set will be empty — but never <code>null</code>. 51 52 */ 52 53 private Set datasets;
