View Javadoc
1   /**
2    * Copyright 2007 Björn Voß
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License"); you may not
5    * use this file except in compliance with the License. You may obtain a copy of
6    * the License at
7    *
8    * http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12   * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13   * License for the specific language governing permissions and limitations under
14   * the License.
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   * @author Björn Voß
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  	 * @return the name
48  	 */
49  	public String getName() {
50  		return this.name;
51  	}
52  	/**
53  	 * @return the oxcolumn
54  	 */
55  	public int getOxcolumnid() {
56  		return this.oxcolumnid;
57  	}
58  	/**
59  	 * @param name the name to set
60  	 */
61  	public void setName(@NotNull @NotEmpty final String name) {
62  		this.name = name;
63  	}
64  	/**
65  	 * @param oxcolumn the oxcolumn to set
66  	 */
67  	public void setOxcolumnid(@Min(value=1) @Max(value=806) final int oxcolumn) {
68  		this.oxcolumnid = oxcolumn;
69  	}
70  
71  
72  }