Project

General

Profile

Download (1.1 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2009 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
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.
8
*/
9
package eu.etaxonomy.cdm.persistence.validation;
10

    
11
import eu.etaxonomy.cdm.model.common.CdmBase;
12
import eu.etaxonomy.cdm.validation.Level2;
13
/**
14
 * A Mock class for testing entity validation tasks. DO NOT MODIFY UNLESS YOU ALSO MODIFY
15
 * THE UNIT TESTS MAKING USE OF THIS CLASS!
16
 * 
17
 * @author ayco_holleman
18
 * 
19
 */
20
@SuppressWarnings("serial")
21
public class Address extends CdmBase {
22

    
23
	@CheckCase(value = CaseMode.UPPER, groups = { Level2.class })
24
	String street;
25

    
26

    
27
	public String getStreet(){
28
		return street;
29
	}
30

    
31

    
32
	public void setStreet(String street){
33
		this.street = street;
34
	}
35

    
36

    
37
	public boolean equals(Object obj){
38
		if (this == obj) {
39
			return true;
40
		}
41
		if (obj == null) {
42
			return false;
43
		}
44
		return street.equals(((Address) obj).street);
45
	}
46

    
47

    
48
	public int hashCode(){
49
		return street.hashCode();
50
	}
51

    
52
}
(1-1/12)