1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package net.sf.oxclient.mappings.xml;
17
18 import net.sf.oval.constraint.Max;
19 import net.sf.oval.constraint.Min;
20 import net.sf.oval.constraint.NotEmpty;
21 import net.sf.oval.constraint.NotNull;
22 import net.sf.oval.guard.Guarded;
23
24
25
26
27
28 @Guarded
29 public class Property {
30
31 private String name;
32 private int oxcolumnid;
33
34 public Property(
35 @NotNull @NotEmpty final String name,
36 @Min(value=1) @Max(value=806) final int oxcolumn) {
37 super();
38 this.name = name;
39 this.oxcolumnid = oxcolumn;
40 }
41
42 public Property() {
43 super();
44 }
45
46
47
48
49 public String getName() {
50 return this.name;
51 }
52
53
54
55 public int getOxcolumnid() {
56 return this.oxcolumnid;
57 }
58
59
60
61 public void setName(@NotNull @NotEmpty final String name) {
62 this.name = name;
63 }
64
65
66
67 public void setOxcolumnid(@Min(value=1) @Max(value=806) final int oxcolumn) {
68 this.oxcolumnid = oxcolumn;
69 }
70
71
72 }