public LightPathExcitationFilterLink( IObject _parent,IObject _child ) { this(null, true); setParent(_parent); setChild(_child); }
public void link(ome.model.acquisition.LightPath parent, ome.model.acquisition.Filter child) { setParent( parent ); setChild( child ); }
@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 removeLightPathExcitationFilterLink */ public void removeLightPathExcitationFilterLinkSet(java.util.Collection<ome.model.acquisition.LightPathExcitationFilterLink> targets ) { if (! _loaded ) errorIfUnloaded(); if (getExcitationFilterLink() == null) { throwNullCollectionException("ExcitationFilterLink"); } getExcitationFilterLink().removeAll( targets ); java.util.Iterator<ome.model.acquisition.LightPathExcitationFilterLink> it = targets.iterator(); while ( it.hasNext() ) { ome.model.acquisition.LightPathExcitationFilterLink target = it.next(); if (target.isLoaded()) { target.setParent ( null ); } } }
/** * use like addLightPathExcitationFilterLink. */ public void addLightPathExcitationFilterLinkSet(java.util.Collection<ome.model.acquisition.LightPathExcitationFilterLink> targets) { if (! _loaded ) errorIfUnloaded(); if (getExcitationFilterLink() == null) { throwNullCollectionException("ExcitationFilterLink"); } getExcitationFilterLink().addAll( targets ); java.util.Iterator<ome.model.acquisition.LightPathExcitationFilterLink> it = targets.iterator(); while ( it.hasNext() ) { ome.model.acquisition.LightPathExcitationFilterLink target = it.next(); // If this relationship is not ordered, then we will // "attempt" the setting even if it is loaded. if (target != null) { if (target.isLoaded()) { target.setParent ( this ); } } } }
/** * removes a single element from this set and makes the inverse call on ome.model.acquisition.LightPathExcitationFilterLink */ public void removeLightPathExcitationFilterLink(ome.model.acquisition.LightPathExcitationFilterLink target) { if (! _loaded ) errorIfUnloaded(); if (getExcitationFilterLink() == null) { throwNullCollectionException("ExcitationFilterLink"); } getExcitationFilterLink().remove( target ); if (target.isLoaded()) { target.setParent ( null ); } }
/** * use instead of setExcitationFilterLink . Makes the necessary * call on ome.model.acquisition.LightPathExcitationFilterLink as well. */ public void addLightPathExcitationFilterLink(ome.model.acquisition.LightPathExcitationFilterLink target) { if (! _loaded ) errorIfUnloaded(); if (getExcitationFilterLink() == null) { throwNullCollectionException("ExcitationFilterLink"); } getExcitationFilterLink().add( target ); // If this relationship is not ordered, then we will // "attempt" the setting even if it is loaded. if (target != null) { if (target.isLoaded()) { target.setParent ( this ); } } }
/** * Sets the ome.model.acquisition.LightPathExcitationFilterLink at the given index. Adheres to the {@link java.util.List#set(int, Object)} * contract. To extend the list, use {@link #addLightPathExcitationFilterLink(LightPathExcitationFilterLink)}. * @see java.util.List#set(int, Object) */ public ome.model.acquisition.LightPathExcitationFilterLink setLightPathExcitationFilterLink(int index, ome.model.acquisition.LightPathExcitationFilterLink element) throws IndexOutOfBoundsException { if (! _loaded ) errorIfUnloaded(); if (getExcitationFilterLink() == null) { throwNullCollectionException("ExcitationFilterLink"); } ome.model.acquisition.LightPathExcitationFilterLink old = getExcitationFilterLink().set(index, element); // If this relationship is not ordered, then we will // "attempt" the setting even if it is loaded. if (element != null) { if (element.isLoaded()) { element.setParent ( this ); } } return old; }