-
Notifications
You must be signed in to change notification settings - Fork 13
/
IEnum.java
30 lines (27 loc) · 928 Bytes
/
IEnum.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
* Copyright 2006 University of Dundee. All rights reserved.
* Use is subject to license terms supplied in LICENSE.txt
*/
package ome.model;
/**
* interface for all domain enumarations. Mostly a marker interface, but does
* provide access to the single value associated with this instance (See
* {@link #getValue()})
*
* @author Josh Moore
* <a href="mailto:josh.moore@gmx.de">josh.moore@gmx.de</a>
* @version 3.0
* @since 3.0
* @author josh
*
*/
public interface IEnum extends IObject {
/**
* the single String value associated with this instance. This value is a
* surrogate (business) key for this type of enumeration. Equality between
* two instances for {@link #getValue() value} implies that there will also
* be equality for {@link IObject#getId() id}, at least in an controlled
* environment.
*/
public String getValue();
}