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.beans;
17  
18  import org.apache.commons.lang.builder.ToStringBuilder;
19  
20  
21  /**
22   * @author Björn Voß
23   *
24   */
25  public class Folder extends OXBean {
26  
27  	private static final long serialVersionUID = -2551531366856147929L;
28  
29  	private boolean defaultFolder = false;
30  	private String name = null;
31  	private int type = 0;
32  	private String module = null;
33  
34  	public String getModule() {
35  		return this.module;
36  	}
37  
38  	public void setModule(final String module) {
39  		this.module = module;
40  	}
41  
42  	public int getType() {
43  		return this.type;
44  	}
45  
46  	public void setType(final int type) {
47  		this.type = type;
48  	}
49  
50  	public String getName() {
51  		return this.name;
52  	}
53  
54  	public boolean isDefaultFolder() {
55  		return this.defaultFolder;
56  	}
57  
58  	public void setName(final String name) {
59  		this.name = name;
60  	}
61  
62  	public void setDefaultFolder(final boolean defaultFolder) {
63  		this.defaultFolder = defaultFolder;
64  	}
65  
66  	/**
67  	 * @see java.lang.Object#toString()
68  	 */
69  	@Override
70  	public String toString() {
71  		return new ToStringBuilder(this).appendSuper(super.toString())
72  				.append("type", this.type)
73  				.append("module", this.module)
74  				.append("name", this.name)
75  				.append("defaultFolder", this.defaultFolder)
76  				.toString();
77  	}
78  }