cdm-vaadin/src/main/java/eu/etaxonomy/cdm/vaadin/container/IdUuidName.java @ 1e201891
1 |
// $Id$
|
---|---|
2 |
/**
|
3 |
* Copyright (C) 2015 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 |
package eu.etaxonomy.cdm.vaadin.container; |
11 |
|
12 |
import java.util.UUID; |
13 |
|
14 |
/**
|
15 |
* @author cmathew
|
16 |
* @date 7 Apr 2015
|
17 |
*
|
18 |
*/
|
19 |
public class IdUuidName { |
20 |
|
21 |
private final Object id; |
22 |
private final UUID uuid; |
23 |
private final String name; |
24 |
|
25 |
public IdUuidName(Object id, UUID uuid, String name) { |
26 |
|
27 |
if(id == null || uuid == null) { |
28 |
throw new IllegalArgumentException("Neither Id nor Uuid can be null"); |
29 |
}
|
30 |
this.id = id; |
31 |
this.uuid = uuid; |
32 |
this.name = name; |
33 |
}
|
34 |
|
35 |
/**
|
36 |
* @return the id
|
37 |
*/
|
38 |
public Object getId() { |
39 |
return id; |
40 |
}
|
41 |
|
42 |
/**
|
43 |
* @return the uuid
|
44 |
*/
|
45 |
public UUID getUuid() { |
46 |
return uuid; |
47 |
}
|
48 |
|
49 |
/**
|
50 |
* @return the name
|
51 |
*/
|
52 |
public String getName() { |
53 |
return name; |
54 |
}
|
55 |
|
56 |
}
|