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 org
.apache
.log4j
.Logger
;
16 import javax
.persistence
.*;
19 * This class aims to make available more "attributes" for identifiable entities
20 * in a flexible way. Application developers (and even users) can define their own
21 * "attributes" as an ExtensionType and add data to Identifiable instances via
22 * Extension instances.
25 * @created 08-Nov-2007 13:06:23
28 public class Extension
extends VersionableEntity
{
29 static Logger logger
= Logger
.getLogger(Extension
.class);
31 private ExtensionType type
;
32 private IdentifiableEntity extendedObj
;
35 public IdentifiableEntity
getExtendedObj() {
38 public void setExtendedObj(IdentifiableEntity extendedObj
) {
39 this.extendedObj
= extendedObj
;
43 public ExtensionType
getType(){
51 public void setType(ExtensionType type
){
55 public String
getValue(){
63 public void setValue(String value
){