Ejemplo n.º 1
0
  public boolean linkPlate(Plate o) {

    o.linkScreen(this);
    if (!plateLinks.contains(o)) {
      return plateLinks.add(o);
    }
    return false;
  }
Ejemplo n.º 2
0
 public boolean link(Reference reference, OMEModelObject o) {
   boolean wasHandledBySuperClass = super.link(reference, o);
   if (wasHandledBySuperClass) {
     return true;
   }
   if (reference instanceof PlateRef) {
     Plate o_casted = (Plate) o;
     o_casted.linkScreen(this);
     if (!plateLinks.contains(o_casted)) {
       plateLinks.add(o_casted);
     }
     return true;
   }
   if (reference instanceof AnnotationRef) {
     Annotation o_casted = (Annotation) o;
     o_casted.linkScreen(this);
     if (!annotationLinks.contains(o_casted)) {
       annotationLinks.add(o_casted);
     }
     return true;
   }
   LOGGER.debug("Unable to handle reference of type: {}", reference.getClass());
   return false;
 }