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 etaxonomy
.cdm
.model
.common
;
13 import org
.apache
.log4j
.Logger
;
16 * workaround for enumerations, base type according to TDWG.
18 * For linear ordering use partOf relation and BreadthFirst.
19 * Default iterator order should therefore be BreadthFirst (not DepthFirst)
22 * @created 02-Nov-2007 18:14:43
24 public abstract class DefinedTermBase
extends VersionableEntity
{
25 static Logger logger
= Logger
.getLogger(DefinedTermBase
.class);
27 //URI used as an ID for the term. In the case of TDWG ontology derived terms the URL to the term!
28 @Description("URI used as an ID for the term. In the case of TDWG ontology derived terms the URL to the term!")
30 //The RDF ontology source defining the terms to be loaded when a database is created for the first time.
32 //Software can go and grap these terms incl labels and description. UUID needed? Furhter vocs can be setup through our
34 @Description("The RDF ontology source defining the terms to be loaded when a database is created for the first time.
36 Software can go and grap these terms incl labels and description. UUID needed? Furhter vocs can be setup through our own ontology.")
37 private static final int initializationClassUri
;
38 private DefinedTermBase partOf
;
39 private ArrayList includes
;
40 private ArrayList representations
;
41 private DefinedTermBase kindOf
;
42 private ArrayList generalizationOf
;
43 private java
.util
.ArrayList media
;
45 public ArrayList
getRepresentations(){
46 return representations
;
53 public void setRepresentations(ArrayList newVal
){
54 representations
= newVal
;
57 public DefinedTermBase
getKindOf(){
65 public void setKindOf(DefinedTermBase newVal
){
69 public ArrayList
getGeneralizationOf(){
70 return generalizationOf
;
77 public void setGeneralizationOf(ArrayList newVal
){
78 generalizationOf
= newVal
;
81 public DefinedTermBase
getPartOf(){
89 public void setPartOf(DefinedTermBase newVal
){
93 public ArrayList
getIncludes(){
101 public void setIncludes(ArrayList newVal
){
105 public java
.util
.ArrayList
getMedia(){
113 public void setMedia(java
.util
.ArrayList newVal
){
117 public String
getUri(){
125 public void setUri(String newVal
){
129 public getInitializationClassUri(){
130 return initializationClassUri
;
137 public void setInitializationClassUri(newVal
){
138 initializationClassUri
= newVal
;
146 public static defined terms
getDefinedTermByUri(String uri
){
151 * add new terms from a vocabulary to which uri points. By default this is the
152 * initializationClassUri
156 public void addTermsFromInitializationClass(String uri
){