public MicrobeamManipulation( ome.model.enums.MicrobeamManipulationType _type,ome.model.experiment.Experiment _experiment ) { this(null, true); setType(_type); setExperiment(_experiment); }
/** * use like removeMicrobeamManipulation */ public void removeMicrobeamManipulationSet(java.util.Collection<ome.model.experiment.MicrobeamManipulation> targets ) { if (! _loaded ) errorIfUnloaded(); if (getMicrobeamManipulation() == null) { throwNullCollectionException("MicrobeamManipulation"); } getMicrobeamManipulation().removeAll( targets ); java.util.Iterator<ome.model.experiment.MicrobeamManipulation> it = targets.iterator(); while ( it.hasNext() ) { ome.model.experiment.MicrobeamManipulation target = it.next(); target.setExperiment ( null ); } }
/** * use like addMicrobeamManipulation. */ public void addMicrobeamManipulationSet(java.util.Collection<ome.model.experiment.MicrobeamManipulation> targets) { if (! _loaded ) errorIfUnloaded(); if (getMicrobeamManipulation() == null) { throwNullCollectionException("MicrobeamManipulation"); } getMicrobeamManipulation().addAll( targets ); java.util.Iterator<ome.model.experiment.MicrobeamManipulation> it = targets.iterator(); while ( it.hasNext() ) { ome.model.experiment.MicrobeamManipulation target = it.next(); // If this relationship is not ordered, then we will // "attempt" the setting even if it is loaded. if (target != null) { target.setExperiment ( this ); } } }
@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(TYPE)) { setType((ome.model.enums.MicrobeamManipulationType)value); } else if (field.equals(LIGHTSOURCESETTINGS)) { setLightSourceSettings((java.util.Set<ome.model.acquisition.LightSettings>)value); } else if (field.equals(EXPERIMENT)) { setExperiment((ome.model.experiment.Experiment)value); } else if (field.equals(DESCRIPTION)) { setDescription((java.lang.String)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); } }
/** * removes a single element from this set and makes the inverse call on ome.model.experiment.MicrobeamManipulation */ public void removeMicrobeamManipulation(ome.model.experiment.MicrobeamManipulation target) { if (! _loaded ) errorIfUnloaded(); if (getMicrobeamManipulation() == null) { throwNullCollectionException("MicrobeamManipulation"); } getMicrobeamManipulation().remove( target ); target.setExperiment ( null ); }
/** * clears the set. */ public void clearMicrobeamManipulation() { if (! _loaded ) errorIfUnloaded(); if (getMicrobeamManipulation() == null) { throwNullCollectionException("MicrobeamManipulation"); } getMicrobeamManipulation().clear(); java.util.Iterator<ome.model.experiment.MicrobeamManipulation> it = iterateMicrobeamManipulation(); while (it.hasNext()) { ome.model.experiment.MicrobeamManipulation target = it.next(); target.setExperiment ( null ); } }
/** * use instead of setMicrobeamManipulation . Makes the necessary * call on ome.model.experiment.MicrobeamManipulation as well. */ public void addMicrobeamManipulation(ome.model.experiment.MicrobeamManipulation target) { if (! _loaded ) errorIfUnloaded(); if (getMicrobeamManipulation() == null) { throwNullCollectionException("MicrobeamManipulation"); } getMicrobeamManipulation().add( target ); // If this relationship is not ordered, then we will // "attempt" the setting even if it is loaded. if (target != null) { target.setExperiment ( this ); } }