public PlateAnnotationLink( IObject _parent,IObject _child ) { this(null, true); setParent(_parent); setChild(_child); }
public void link(ome.model.screen.Plate parent, ome.model.annotations.Annotation child) { setParent( parent ); setChild( child ); }
/** * use like removePlateAnnotationLink */ public void removePlateAnnotationLinkSet(java.util.Collection<ome.model.annotations.PlateAnnotationLink> targets ) { if (! _loaded ) errorIfUnloaded(); if (getAnnotationLinks() == null) { throwNullCollectionException("AnnotationLinks"); } getAnnotationLinks().removeAll( targets ); java.util.Iterator<ome.model.annotations.PlateAnnotationLink> it = targets.iterator(); while ( it.hasNext() ) { ome.model.annotations.PlateAnnotationLink target = it.next(); target.setParent ( null ); } }
@Override public void putAt(String field, Object value) { if (field == null) { return; } else if (field.equals(ID)) { setId((Long) value); } else if (field.equals(VERSION)) { setVersion((Integer) value); } else if (field.equals(PARENT)) { setParent((IObject)value); } else if (field.equals(CHILD)) { setChild((IObject)value); } else if (field.equals(DETAILS)) { setDetails((ome.model.internal.Details)value); } else { if (_dynamicFields == null) { _dynamicFields = new java.util.HashMap<String, Object>(); } _dynamicFields.put(field,value); } }
/** * use like addPlateAnnotationLink. */ public void addPlateAnnotationLinkSet(java.util.Collection<ome.model.annotations.PlateAnnotationLink> targets) { if (! _loaded ) errorIfUnloaded(); if (getAnnotationLinks() == null) { throwNullCollectionException("AnnotationLinks"); } getAnnotationLinks().addAll( targets ); java.util.Iterator<ome.model.annotations.PlateAnnotationLink> it = targets.iterator(); while ( it.hasNext() ) { ome.model.annotations.PlateAnnotationLink target = it.next(); // If this relationship is not ordered, then we will // "attempt" the setting even if it is loaded. if (target != null) { target.setParent ( this ); } } }
/** * removes a single element from this set and makes the inverse call on ome.model.annotations.PlateAnnotationLink */ public void removePlateAnnotationLink(ome.model.annotations.PlateAnnotationLink target) { if (! _loaded ) errorIfUnloaded(); if (getAnnotationLinks() == null) { throwNullCollectionException("AnnotationLinks"); } getAnnotationLinks().remove( target ); target.setParent ( null ); }
/** * use instead of setAnnotationLinks . Makes the necessary * call on ome.model.annotations.PlateAnnotationLink as well. */ public void addPlateAnnotationLink(ome.model.annotations.PlateAnnotationLink target) { if (! _loaded ) errorIfUnloaded(); if (getAnnotationLinks() == null) { throwNullCollectionException("AnnotationLinks"); } getAnnotationLinks().add( target ); // If this relationship is not ordered, then we will // "attempt" the setting even if it is loaded. if (target != null) { target.setParent ( this ); } }