|
Revision 10919, 1.1 kB
(checked in by a.mueller, 18 months ago)
|
|
merge 3.0.2 to trunk
|
-
Property svn:keywords set to
Id
|
| Line | |
|---|
| 1 | /** |
|---|
| 2 | * Copyright (C) 2009 EDIT |
|---|
| 3 | * European Distributed Institute of Taxonomy |
|---|
| 4 | * http://www.e-taxonomy.eu |
|---|
| 5 | * |
|---|
| 6 | * The contents of this file are subject to the Mozilla Public License Version 1.1 |
|---|
| 7 | * See LICENSE.TXT at the top of this package for the full license terms. |
|---|
| 8 | */ |
|---|
| 9 | |
|---|
| 10 | package eu.etaxonomy.cdm.model.common; |
|---|
| 11 | |
|---|
| 12 | import java.util.Set; |
|---|
| 13 | |
|---|
| 14 | import eu.etaxonomy.cdm.model.reference.Reference; |
|---|
| 15 | |
|---|
| 16 | |
|---|
| 17 | public interface ISourceable<T extends IOriginalSource> { |
|---|
| 18 | |
|---|
| 19 | /** |
|---|
| 20 | * Returns the set of original sources (citations) for this sourceable object |
|---|
| 21 | * @return |
|---|
| 22 | */ |
|---|
| 23 | public Set<T> getSources(); |
|---|
| 24 | |
|---|
| 25 | /** |
|---|
| 26 | * Adds a source to this object |
|---|
| 27 | * @param source |
|---|
| 28 | */ |
|---|
| 29 | public void addSource(T source); |
|---|
| 30 | |
|---|
| 31 | |
|---|
| 32 | /** |
|---|
| 33 | * Adds a source that is newly created by its components. If all components are <code>null</null> |
|---|
| 34 | * no source is added. |
|---|
| 35 | * @param id |
|---|
| 36 | * @param idNamespace |
|---|
| 37 | * @param citation |
|---|
| 38 | * @param microCitation |
|---|
| 39 | */ |
|---|
| 40 | public T addSource(String id, String idNamespace, Reference citation, String microCitation); |
|---|
| 41 | |
|---|
| 42 | |
|---|
| 43 | /** |
|---|
| 44 | * Removes a source from this object |
|---|
| 45 | * @param source |
|---|
| 46 | */ |
|---|
| 47 | public void removeSource(T source); |
|---|
| 48 | |
|---|
| 49 | } |
|---|