Revision d774802a
Added by Andreas Müller almost 8 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/reference/ReferenceType.java | ||
---|---|---|
1 |
// $Id$ |
|
2 |
/** |
|
3 |
* Copyright (C) 2007 EDIT |
|
4 |
* European Distributed Institute of Taxonomy |
|
5 |
* http://www.e-taxonomy.eu |
|
6 |
* |
|
7 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
|
8 |
* See LICENSE.TXT at the top of this package for the full license terms. |
|
9 |
*/ |
|
10 |
|
|
11 |
package eu.etaxonomy.cdm.model.reference; |
|
12 |
|
|
13 |
import java.io.Serializable; |
|
14 |
import java.util.Set; |
|
15 |
import java.util.UUID; |
|
16 |
|
|
17 |
import javax.xml.bind.annotation.XmlEnum; |
|
18 |
import javax.xml.bind.annotation.XmlEnumValue; |
|
19 |
|
|
20 |
import org.apache.log4j.Logger; |
|
21 |
|
|
22 |
import eu.etaxonomy.cdm.model.common.EnumeratedTermVoc; |
|
23 |
import eu.etaxonomy.cdm.model.common.IEnumTerm; |
|
24 |
import eu.etaxonomy.cdm.model.common.Language; |
|
25 |
import eu.etaxonomy.cdm.strategy.cache.reference.INomenclaturalReferenceCacheStrategy; |
|
26 |
import eu.etaxonomy.cdm.strategy.cache.reference.IReferenceCacheStrategy; |
|
27 |
import eu.etaxonomy.cdm.strategy.cache.reference.NewDefaultReferenceCacheStrategy; |
|
28 |
import eu.etaxonomy.cdm.strategy.cache.reference.old.ArticleDefaultCacheStrategy; |
|
29 |
import eu.etaxonomy.cdm.strategy.cache.reference.old.BookDefaultCacheStrategy; |
|
30 |
import eu.etaxonomy.cdm.strategy.cache.reference.old.BookSectionDefaultCacheStrategy; |
|
31 |
import eu.etaxonomy.cdm.strategy.cache.reference.old.CdDvdDefaultCacheStrategy; |
|
32 |
import eu.etaxonomy.cdm.strategy.cache.reference.old.GenericDefaultCacheStrategy; |
|
33 |
import eu.etaxonomy.cdm.strategy.cache.reference.old.JournalDefaultCacheStrategy; |
|
34 |
import eu.etaxonomy.cdm.strategy.cache.reference.old.ReferenceDefaultCacheStrategy; |
|
35 |
import eu.etaxonomy.cdm.strategy.cache.reference.old.ThesisDefaultCacheStrategy; |
|
36 |
|
|
37 |
|
|
38 |
/** |
|
39 |
* The reference type is used to define the type of a {@link Reference reference}.<BR> |
|
40 |
* When changing the type of a reference one must be careful with handling attached information. |
|
41 |
* E.g. changing the type of a reference from article to book section requires to either exchange |
|
42 |
* the in reference or to change the type of the in reference which may have further consequences. |
|
43 |
* |
|
44 |
* @author a.mueller |
|
45 |
* @created 20.09.2009 |
|
46 |
*/ |
|
47 |
|
|
48 |
//TODO hierarchies, see http://dev.e-taxonomy.eu/trac/ticket/3619 |
|
49 |
@XmlEnum |
|
50 |
public enum ReferenceType implements IEnumTerm<ReferenceType>, Serializable{ |
|
51 |
|
|
52 |
|
|
53 |
/** |
|
54 |
* A reference of type section is a part-of another reference. Section is a generalized type for all |
|
55 |
* references which are expected to be part of another reference (e.g. an article which is part of a journal, |
|
56 |
* a book section which is part of a book) or which may have an in-reference |
|
57 |
* such as books which may be part of a print series or websites which may be part of other websites. |
|
58 |
* <BR> |
|
59 |
* However, section as concrete type should only be used if no more specific type is available. |
|
60 |
* This is usually the case for parts of other sections such parts of articles, parts of book sections, or |
|
61 |
* similar cases). |
|
62 |
* |
|
63 |
* @see ISectionBase |
|
64 |
*/ |
|
65 |
@XmlEnumValue("Section") |
|
66 |
Section(UUID.fromString("98035142-ca82-46c5-bbef-ad225f668644"), "Section", "SEC", null, ReferenceDefaultCacheStrategy.class), |
|
67 |
|
|
68 |
//0 |
|
69 |
/** |
|
70 |
* Article in a journal. |
|
71 |
* Article is a specialization of {@link #Section}. |
|
72 |
*/ |
|
73 |
@XmlEnumValue("Article") |
|
74 |
Article(UUID.fromString("fddfb343-f652-4f33-b6cb-7c94daa2f1ec"), "Article", "ART", Section, ArticleDefaultCacheStrategy.class), |
|
75 |
//1 |
|
76 |
@XmlEnumValue("Book") |
|
77 |
Book(UUID.fromString("9280876c-accb-4c47-873d-46bbf4296f18"), "Book", "BK", Section, BookDefaultCacheStrategy.class), |
|
78 |
//2 |
|
79 |
/** |
|
80 |
* A part in a book, e.g. a chapter. |
|
81 |
* BookSection is a specialization of {@link #Section} |
|
82 |
*/ |
|
83 |
@XmlEnumValue("Book Section") |
|
84 |
BookSection(UUID.fromString("b197435d-deec-46fa-9c66-e0e6c44c57fb"), "Book Section", "BS", Section, BookSectionDefaultCacheStrategy.class), |
|
85 |
//3 |
|
86 |
@XmlEnumValue("CD or DVD") |
|
87 |
CdDvd(UUID.fromString("7d7c9f56-d6fd-45aa-852f-b965afe08ec0"), "CD or DVD", "CD", null, CdDvdDefaultCacheStrategy.class), |
|
88 |
//4 |
|
89 |
@XmlEnumValue("Database") |
|
90 |
Database(UUID.fromString("a36dbaec-0536-4a20-9fbc-e1b10ba35ea6"), "Database", "DB", null, ReferenceDefaultCacheStrategy.class), |
|
91 |
//5 |
|
92 |
@XmlEnumValue("Generic") |
|
93 |
Generic(UUID.fromString("df149dd8-f2b4-421c-b478-acc4cce63f25"), "Generic", "GEN", null, GenericDefaultCacheStrategy.class), |
|
94 |
//6 |
|
95 |
@XmlEnumValue("Inproceedings") |
|
96 |
InProceedings(UUID.fromString("a84dae35-6708-4c3d-8bb6-41b989947fa2"), "In Proceedings", "IPR", Section, ReferenceDefaultCacheStrategy.class), |
|
97 |
//7 |
|
98 |
@XmlEnumValue("Journal") |
|
99 |
Journal(UUID.fromString("d8675c58-41cd-44fb-86be-e966bd4bc747"), "Journal", "JOU", null, JournalDefaultCacheStrategy.class), |
|
100 |
//8 |
|
101 |
@XmlEnumValue("Map") |
|
102 |
Map(UUID.fromString("f4acc990-a277-4d80-9192-bc04be4b1cab"), "Map", "MAP", null, ReferenceDefaultCacheStrategy.class), |
|
103 |
//9 |
|
104 |
@XmlEnumValue("Patent") |
|
105 |
Patent(UUID.fromString("e44e0e6b-a721-417c-9b03-01926ea0bf56"), "Patent", "PAT", null, ReferenceDefaultCacheStrategy.class), |
|
106 |
//10 |
|
107 |
@XmlEnumValue("Personal Communication") |
|
108 |
PersonalCommunication(UUID.fromString("4ba5607e-1b9d-473c-89dd-8f1c2d27ae50"), "Personal Communication", "PEC", null, ReferenceDefaultCacheStrategy.class), |
|
109 |
//11 |
|
110 |
@XmlEnumValue("Print Series") |
|
111 |
PrintSeries(UUID.fromString("d455f30d-2685-4f57-804a-3df5ba4e0888"), "Print Series", "SER", null, ReferenceDefaultCacheStrategy.class), |
|
112 |
//12 |
|
113 |
@XmlEnumValue("Proceedings") |
|
114 |
Proceedings(UUID.fromString("cd934865-cb25-41f1-a155-f344ccb0c57f"), "Proceedings", "PRO", Section, ReferenceDefaultCacheStrategy.class), |
|
115 |
//13 |
|
116 |
@XmlEnumValue("Report") |
|
117 |
Report(UUID.fromString("4d5459b8-b65b-47cb-9579-2fe7be360d04"), "Report", "REP", null, ReferenceDefaultCacheStrategy.class), |
|
118 |
//14 |
|
119 |
@XmlEnumValue("Thesis") |
|
120 |
Thesis(UUID.fromString("cd054393-4f5e-4842-b820-b820e5732d72"), "Thesis", "THE", null, ThesisDefaultCacheStrategy.class), |
|
121 |
//15 |
|
122 |
@XmlEnumValue("Web Page") |
|
123 |
WebPage(UUID.fromString("1ed8b0df-0532-40ea-aef6-ee4361341165"), "Web Page", "WEB", null, ReferenceDefaultCacheStrategy.class), |
|
124 |
|
|
125 |
; |
|
126 |
|
|
127 |
@SuppressWarnings("unused") |
|
128 |
private static final Logger logger = Logger.getLogger(ReferenceType.class); |
|
129 |
|
|
130 |
private Class<? extends IReferenceCacheStrategy> cacheStrategy; |
|
131 |
|
|
132 |
private ReferenceType(UUID uuid, String defaultString, String key, ReferenceType parent, Class<? extends IReferenceCacheStrategy> cacheStrategy){ |
|
133 |
this.cacheStrategy = cacheStrategy; |
|
134 |
delegateVocTerm = EnumeratedTermVoc.addTerm(getClass(), this, uuid, defaultString, key, parent); |
|
135 |
} |
|
136 |
|
|
137 |
|
|
138 |
public INomenclaturalReferenceCacheStrategy getCacheStrategy(){ |
|
139 |
// if (true){ |
|
140 |
return NewDefaultReferenceCacheStrategy.NewInstance(); |
|
141 |
// } |
|
142 |
// switch(this){ |
|
143 |
// case Article: |
|
144 |
// return ArticleDefaultCacheStrategy.NewInstance(); |
|
145 |
// case Book: |
|
146 |
// return BookDefaultCacheStrategy.NewInstance(); |
|
147 |
// case BookSection: |
|
148 |
// return BookSectionDefaultCacheStrategy.NewInstance(); |
|
149 |
// case CdDvd: |
|
150 |
// return CdDvdDefaultCacheStrategy.NewInstance(); |
|
151 |
// case Generic: |
|
152 |
// return GenericDefaultCacheStrategy.NewInstance(); |
|
153 |
// case Journal: |
|
154 |
// return JournalDefaultCacheStrategy.NewInstance(); |
|
155 |
// case Thesis: |
|
156 |
// return ThesisDefaultCacheStrategy.NewInstance(); |
|
157 |
// case Section: |
|
158 |
// return SectionDefaultCacheStrategy.NewInstance(); |
|
159 |
// case WebPage: |
|
160 |
// return WebPageDefaultCacheStrategy.NewInstance(); |
|
161 |
// default: |
|
162 |
// return ReferenceDefaultCacheStrategy.NewInstance(); |
|
163 |
// } |
|
164 |
} |
|
165 |
|
|
166 |
/** |
|
167 |
* Returns true if references of this type have volume information. |
|
168 |
*/ |
|
169 |
public boolean isVolumeReference(){ |
|
170 |
return (this == Article || isPrintedUnit() || this == Generic); |
|
171 |
} |
|
172 |
|
|
173 |
/** |
|
174 |
* Returns true if references of this type are publications (inheriting from |
|
175 |
* {@link IPublicationBase}) and therefore have a publisher and a publication place. |
|
176 |
*/ |
|
177 |
public boolean isPublication(){ |
|
178 |
return (this == CdDvd || this == Database || this == Generic |
|
179 |
|| this == Journal || isPrintedUnit() || this == PrintSeries |
|
180 |
|| this == Report || this == Thesis |
|
181 |
|| this == WebPage || this == Map); |
|
182 |
} |
|
183 |
|
|
184 |
/** |
|
185 |
* Returns true if references of this type are printed units (inheriting from |
|
186 |
* {@link IPrintedUnitBase}) and therefore may have an editor, an in-series or an string |
|
187 |
* representing the series (seriesPart). |
|
188 |
*/ |
|
189 |
public boolean isPrintedUnit(){ |
|
190 |
return (this == Book || this == Proceedings); |
|
191 |
} |
|
192 |
|
|
193 |
|
|
194 |
|
|
195 |
/** |
|
196 |
* Returns true if references of this type are parts of other references (inheriting from |
|
197 |
* {@link ISection}) and therefore may have an in-reference and pages. |
|
198 |
*/ |
|
199 |
public boolean isSection(){ |
|
200 |
// return (this == BookSection || this == InProceedings |
|
201 |
// || isPrintedUnit() || this == Article ); |
|
202 |
return this == Section || isKindOf(Section); |
|
203 |
} |
|
204 |
|
|
205 |
// *************************** DELEGATE **************************************/ |
|
206 |
|
|
207 |
private static EnumeratedTermVoc<ReferenceType> delegateVoc; |
|
208 |
private IEnumTerm<ReferenceType> delegateVocTerm; |
|
209 |
|
|
210 |
static { |
|
211 |
delegateVoc = EnumeratedTermVoc.getVoc(ReferenceType.class); |
|
212 |
} |
|
213 |
|
|
214 |
@Override |
|
215 |
public String getKey(){return delegateVocTerm.getKey();} |
|
216 |
|
|
217 |
@Override |
|
218 |
public String getMessage(){return delegateVocTerm.getMessage();} |
|
219 |
|
|
220 |
@Override |
|
221 |
public String getMessage(Language language){return delegateVocTerm.getMessage(language);} |
|
222 |
|
|
223 |
@Override |
|
224 |
public UUID getUuid() {return delegateVocTerm.getUuid();} |
|
225 |
|
|
226 |
@Override |
|
227 |
public ReferenceType getKindOf() {return delegateVocTerm.getKindOf();} |
|
228 |
|
|
229 |
@Override |
|
230 |
public Set<ReferenceType> getGeneralizationOf() {return delegateVocTerm.getGeneralizationOf();} |
|
231 |
|
|
232 |
@Override |
|
233 |
public boolean isKindOf(ReferenceType ancestor) {return delegateVocTerm.isKindOf(ancestor); } |
|
234 |
|
|
235 |
@Override |
|
236 |
public Set<ReferenceType> getGeneralizationOf(boolean recursive) {return delegateVocTerm.getGeneralizationOf(recursive);} |
|
237 |
|
|
238 |
public static ReferenceType getByKey(String key){return delegateVoc.getByKey(key);} |
|
239 |
public static ReferenceType getByUuid(UUID uuid) {return delegateVoc.getByUuid(uuid);} |
|
240 |
|
|
241 |
|
|
242 |
} |
|
1 |
// $Id$ |
|
2 |
/** |
|
3 |
* Copyright (C) 2007 EDIT |
|
4 |
* European Distributed Institute of Taxonomy |
|
5 |
* http://www.e-taxonomy.eu |
|
6 |
* |
|
7 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
|
8 |
* See LICENSE.TXT at the top of this package for the full license terms. |
|
9 |
*/ |
|
10 |
|
|
11 |
package eu.etaxonomy.cdm.model.reference; |
|
12 |
|
|
13 |
import java.io.Serializable; |
|
14 |
import java.util.Set; |
|
15 |
import java.util.UUID; |
|
16 |
|
|
17 |
import javax.xml.bind.annotation.XmlEnum; |
|
18 |
import javax.xml.bind.annotation.XmlEnumValue; |
|
19 |
|
|
20 |
import org.apache.log4j.Logger; |
|
21 |
|
|
22 |
import eu.etaxonomy.cdm.model.common.EnumeratedTermVoc; |
|
23 |
import eu.etaxonomy.cdm.model.common.IEnumTerm; |
|
24 |
import eu.etaxonomy.cdm.model.common.Language; |
|
25 |
|
|
26 |
|
|
27 |
/** |
|
28 |
* The reference type is used to define the type of a {@link Reference reference}.<BR> |
|
29 |
* When changing the type of a reference one must be careful with handling attached information. |
|
30 |
* E.g. changing the type of a reference from article to book section requires to either exchange |
|
31 |
* the in reference or to change the type of the in reference which may have further consequences. |
|
32 |
* |
|
33 |
* @author a.mueller |
|
34 |
* @created 20.09.2009 |
|
35 |
*/ |
|
36 |
|
|
37 |
//TODO hierarchies, see http://dev.e-taxonomy.eu/trac/ticket/3619 |
|
38 |
@XmlEnum |
|
39 |
public enum ReferenceType implements IEnumTerm<ReferenceType>, Serializable{ |
|
40 |
|
|
41 |
|
|
42 |
/** |
|
43 |
* A reference of type section is a part-of another reference. Section is a generalized type for all |
|
44 |
* references which are expected to be part of another reference (e.g. an article which is part of a journal, |
|
45 |
* a book section which is part of a book) or which may have an in-reference |
|
46 |
* such as books which may be part of a print series or websites which may be part of other websites. |
|
47 |
* <BR> |
|
48 |
* However, section as concrete type should only be used if no more specific type is available. |
|
49 |
* This is usually the case for parts of other sections such parts of articles, parts of book sections, or |
|
50 |
* similar cases). |
|
51 |
* |
|
52 |
* @see ISectionBase |
|
53 |
*/ |
|
54 |
@XmlEnumValue("Section") |
|
55 |
Section(UUID.fromString("98035142-ca82-46c5-bbef-ad225f668644"), "Section", "SEC", null), |
|
56 |
|
|
57 |
//0 |
|
58 |
/** |
|
59 |
* Article in a journal. |
|
60 |
* Article is a specialization of {@link #Section}. |
|
61 |
*/ |
|
62 |
@XmlEnumValue("Article") |
|
63 |
Article(UUID.fromString("fddfb343-f652-4f33-b6cb-7c94daa2f1ec"), "Article", "ART", Section), |
|
64 |
//1 |
|
65 |
@XmlEnumValue("Book") |
|
66 |
Book(UUID.fromString("9280876c-accb-4c47-873d-46bbf4296f18"), "Book", "BK", Section), |
|
67 |
//2 |
|
68 |
/** |
|
69 |
* A part in a book, e.g. a chapter. |
|
70 |
* BookSection is a specialization of {@link #Section} |
|
71 |
*/ |
|
72 |
@XmlEnumValue("Book Section") |
|
73 |
BookSection(UUID.fromString("b197435d-deec-46fa-9c66-e0e6c44c57fb"), "Book Section", "BS", Section), |
|
74 |
//3 |
|
75 |
@XmlEnumValue("CD or DVD") |
|
76 |
CdDvd(UUID.fromString("7d7c9f56-d6fd-45aa-852f-b965afe08ec0"), "CD or DVD", "CD", null), |
|
77 |
//4 |
|
78 |
@XmlEnumValue("Database") |
|
79 |
Database(UUID.fromString("a36dbaec-0536-4a20-9fbc-e1b10ba35ea6"), "Database", "DB", null), |
|
80 |
//5 |
|
81 |
@XmlEnumValue("Generic") |
|
82 |
Generic(UUID.fromString("df149dd8-f2b4-421c-b478-acc4cce63f25"), "Generic", "GEN", null), |
|
83 |
//6 |
|
84 |
@XmlEnumValue("Inproceedings") |
|
85 |
InProceedings(UUID.fromString("a84dae35-6708-4c3d-8bb6-41b989947fa2"), "In Proceedings", "IPR", Section), |
|
86 |
//7 |
|
87 |
@XmlEnumValue("Journal") |
|
88 |
Journal(UUID.fromString("d8675c58-41cd-44fb-86be-e966bd4bc747"), "Journal", "JOU", null), |
|
89 |
//8 |
|
90 |
@XmlEnumValue("Map") |
|
91 |
Map(UUID.fromString("f4acc990-a277-4d80-9192-bc04be4b1cab"), "Map", "MAP", null), |
|
92 |
//9 |
|
93 |
@XmlEnumValue("Patent") |
|
94 |
Patent(UUID.fromString("e44e0e6b-a721-417c-9b03-01926ea0bf56"), "Patent", "PAT", null), |
|
95 |
//10 |
|
96 |
@XmlEnumValue("Personal Communication") |
|
97 |
PersonalCommunication(UUID.fromString("4ba5607e-1b9d-473c-89dd-8f1c2d27ae50"), "Personal Communication", "PEC", null), |
|
98 |
//11 |
|
99 |
@XmlEnumValue("Print Series") |
|
100 |
PrintSeries(UUID.fromString("d455f30d-2685-4f57-804a-3df5ba4e0888"), "Print Series", "SER", null), |
|
101 |
//12 |
|
102 |
@XmlEnumValue("Proceedings") |
|
103 |
Proceedings(UUID.fromString("cd934865-cb25-41f1-a155-f344ccb0c57f"), "Proceedings", "PRO", Section), |
|
104 |
//13 |
|
105 |
@XmlEnumValue("Report") |
|
106 |
Report(UUID.fromString("4d5459b8-b65b-47cb-9579-2fe7be360d04"), "Report", "REP", null), |
|
107 |
//14 |
|
108 |
@XmlEnumValue("Thesis") |
|
109 |
Thesis(UUID.fromString("cd054393-4f5e-4842-b820-b820e5732d72"), "Thesis", "THE", null), |
|
110 |
//15 |
|
111 |
@XmlEnumValue("Web Page") |
|
112 |
WebPage(UUID.fromString("1ed8b0df-0532-40ea-aef6-ee4361341165"), "Web Page", "WEB", null), |
|
113 |
|
|
114 |
; |
|
115 |
|
|
116 |
@SuppressWarnings("unused") |
|
117 |
private static final Logger logger = Logger.getLogger(ReferenceType.class); |
|
118 |
|
|
119 |
|
|
120 |
private ReferenceType(UUID uuid, String defaultString, String key, ReferenceType parent){ |
|
121 |
delegateVocTerm = EnumeratedTermVoc.addTerm(getClass(), this, uuid, defaultString, key, parent); |
|
122 |
} |
|
123 |
|
|
124 |
/** |
|
125 |
* Returns true if references of this type have volume information. |
|
126 |
*/ |
|
127 |
public boolean isVolumeReference(){ |
|
128 |
return (this == Article || isPrintedUnit() || this == Generic); |
|
129 |
} |
|
130 |
|
|
131 |
/** |
|
132 |
* Returns true if references of this type are publications (inheriting from |
|
133 |
* {@link IPublicationBase}) and therefore have a publisher and a publication place. |
|
134 |
*/ |
|
135 |
public boolean isPublication(){ |
|
136 |
return (this == CdDvd || this == Database || this == Generic |
|
137 |
|| this == Journal || isPrintedUnit() || this == PrintSeries |
|
138 |
|| this == Report || this == Thesis |
|
139 |
|| this == WebPage || this == Map); |
|
140 |
} |
|
141 |
|
|
142 |
/** |
|
143 |
* Returns true if references of this type are printed units (inheriting from |
|
144 |
* {@link IPrintedUnitBase}) and therefore may have an editor, an in-series or an string |
|
145 |
* representing the series (seriesPart). |
|
146 |
*/ |
|
147 |
public boolean isPrintedUnit(){ |
|
148 |
return (this == Book || this == Proceedings); |
|
149 |
} |
|
150 |
|
|
151 |
|
|
152 |
|
|
153 |
/** |
|
154 |
* Returns true if references of this type are parts of other references (inheriting from |
|
155 |
* {@link ISection}) and therefore may have an in-reference and pages. |
|
156 |
*/ |
|
157 |
public boolean isSection(){ |
|
158 |
// return (this == BookSection || this == InProceedings |
|
159 |
// || isPrintedUnit() || this == Article ); |
|
160 |
return this == Section || isKindOf(Section); |
|
161 |
} |
|
162 |
|
|
163 |
// *************************** DELEGATE **************************************/ |
|
164 |
|
|
165 |
private static EnumeratedTermVoc<ReferenceType> delegateVoc; |
|
166 |
private IEnumTerm<ReferenceType> delegateVocTerm; |
|
167 |
|
|
168 |
static { |
|
169 |
delegateVoc = EnumeratedTermVoc.getVoc(ReferenceType.class); |
|
170 |
} |
|
171 |
|
|
172 |
@Override |
|
173 |
public String getKey(){return delegateVocTerm.getKey();} |
|
174 |
|
|
175 |
@Override |
|
176 |
public String getMessage(){return delegateVocTerm.getMessage();} |
|
177 |
|
|
178 |
@Override |
|
179 |
public String getMessage(Language language){return delegateVocTerm.getMessage(language);} |
|
180 |
|
|
181 |
@Override |
|
182 |
public UUID getUuid() {return delegateVocTerm.getUuid();} |
|
183 |
|
|
184 |
@Override |
|
185 |
public ReferenceType getKindOf() {return delegateVocTerm.getKindOf();} |
|
186 |
|
|
187 |
@Override |
|
188 |
public Set<ReferenceType> getGeneralizationOf() {return delegateVocTerm.getGeneralizationOf();} |
|
189 |
|
|
190 |
@Override |
|
191 |
public boolean isKindOf(ReferenceType ancestor) {return delegateVocTerm.isKindOf(ancestor); } |
|
192 |
|
|
193 |
@Override |
|
194 |
public Set<ReferenceType> getGeneralizationOf(boolean recursive) {return delegateVocTerm.getGeneralizationOf(recursive);} |
|
195 |
|
|
196 |
public static ReferenceType getByKey(String key){return delegateVoc.getByKey(key);} |
|
197 |
public static ReferenceType getByUuid(UUID uuid) {return delegateVoc.getByUuid(uuid);} |
|
198 |
|
|
199 |
|
|
200 |
} |
Also available in: Unified diff
Further clean up reference cache strategies #5833