View Javadoc

1   package org.kuali.common.util.log4j.model;
2   
3   import java.util.ArrayList;
4   import java.util.Arrays;
5   import java.util.List;
6   
7   import javax.xml.bind.annotation.XmlAttribute;
8   import javax.xml.bind.annotation.XmlElement;
9   
10  import org.kuali.common.util.CollectionUtils;
11  
12  /**
13   * @deprecated
14   */
15  @Deprecated
16  public class Layout {
17  
18  	Class<?> javaClass;
19  	List<Param> params = new ArrayList<Param>();
20  
21  	public Layout(Layout layout) {
22  		super();
23  		this.javaClass = layout.getJavaClass();
24  		for (Param param : CollectionUtils.toEmptyList(layout.getParams())) {
25  			this.params.add(new Param(param));
26  		}
27  	}
28  
29  	public Layout() {
30  		this(null, (List<Param>) null);
31  	}
32  
33  	public Layout(Class<?> javaClass, Param param) {
34  		this(javaClass, Arrays.asList(param));
35  	}
36  
37  	public Layout(Class<?> javaClass, List<Param> params) {
38  		super();
39  		this.javaClass = javaClass;
40  		this.params = params;
41  	}
42  
43  	@XmlAttribute(name = "class")
44  	public Class<?> getJavaClass() {
45  		return javaClass;
46  	}
47  
48  	@XmlElement(name = "param")
49  	public List<Param> getParams() {
50  		return params;
51  	}
52  
53  	public void setJavaClass(Class<?> javaClass) {
54  		this.javaClass = javaClass;
55  	}
56  
57  	public void setParams(List<Param> params) {
58  		this.params = params;
59  	}
60  
61  }