Changeset 4452


Ignore:
Timestamp:
Mar 18, 2013, 1:19:35 PM (10 years ago)
Author:
olle
Message:

Refs #800. Added core function for removing file from biomaterial.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/api/core/src/org/proteios/core/BioMaterial.java

    r3207 r4452  
    9696
    9797
     98    /**
     99     * Remove a File
     100     *
     101     * @param file The File to remove from the Set
     102     */
     103    public void removeFile(File file)
     104    {
     105        if (file != null)
     106        {
     107            ((FileData) file.getData()).getBioMaterials().remove(
     108                this.getData());
     109            getData().getFiles().remove(
     110                (FileData) file.getData());
     111        }
     112    }
     113
     114
    98115  /**
    99116   * @return Returns the files.
Note: See TracChangeset for help on using the changeset viewer.