2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.cdm
.model
.common
;
13 import java
.util
.UUID
;
15 import javax
.persistence
.Transient
;
18 import eu
.etaxonomy
.cdm
.model
.media
.Media
;
20 public interface IDefinedTerm
<T
extends IDefinedTerm
> extends ILoadableTerm
<T
> {
23 public UUID
getUuid();
25 public T
getByUuid(UUID uuid
);
28 * Returns the defined term this term is a kind of.
29 * Therefore the returned term is a generalization of <code>this</code> term
33 // public void setKindOf(T kindOf);
36 * Returns all defined terms this term is a generalization for.
37 * Therefore the returned terms are kind of <code>this</code> term
39 public Set
<T
> getGeneralizationOf();
41 // public void setGeneralizationOf(Set<T> generalizationOf);
43 // public void addGeneralizationOf(T generalization);
45 // public void removeGeneralization(T generalization);
48 * Returns the defined term this term is a part of.
49 * Therefore the returned term includes <code>this</code> term
53 // public void setPartOf(T partOf);
56 * Returns all defined terms this term includes.
57 * Therefore the returned terms are part of <code>this</code> term
59 public Set
<T
> getIncludes();
61 // public void setIncludes(Set<T> includes);
63 // public void addIncludes(T includes);
65 // public void removeIncludes(T includes);
67 public Set
<Media
> getMedia();
69 // public void setMedia(Set<Media> media);
71 // public void addMedia(Media media);
73 // public void removeMedia(Media media);
76 * @see eu.etaxonomy.cdm.model.common.IDefTerm#getVocabulary()
78 // public TermVocabulary<T> getVocabulary();
81 * @see eu.etaxonomy.cdm.model.common.IDefTerm#setVocabulary(eu.etaxonomy.cdm.model.common.TermVocabulary)
83 // public void setVocabulary(TermVocabulary<T> newVocabulary);