View Javadoc

1   /**
2    * Copyright 2010 The Kuali Foundation Licensed under the
3    * Educational Community License, Version 2.0 (the "License"); you may
4    * not use this file except in compliance with the License. You may
5    * obtain a copy of the License at
6    *
7    * http://www.osedu.org/licenses/ECL-2.0
8    *
9    * Unless required by applicable law or agreed to in writing,
10   * software distributed under the License is distributed on an "AS IS"
11   * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12   * or implied. See the License for the specific language governing
13   * permissions and limitations under the License.
14   */
15  
16  package org.kuali.student.core.statement.dto;
17  
18  import java.util.ArrayList;
19  import java.util.List;
20  
21  import javax.xml.bind.annotation.XmlElement;
22  
23  public class StatementTreeViewInfo extends AbstractStatementInfo {
24  
25      private static final long serialVersionUID = 1L;
26  
27      @XmlElement
28      private List<StatementTreeViewInfo> statements;
29      @XmlElement
30      private List<ReqComponentInfo> reqComponents;
31  
32      public List<StatementTreeViewInfo> getStatements() {
33      	if (this.statements == null) {
34      		this.statements = new ArrayList<StatementTreeViewInfo>(0);
35      	}
36          return statements;
37      }
38  
39      public void setStatements(List<StatementTreeViewInfo> statements) {
40          this.statements = statements;
41      }
42  
43      public List<ReqComponentInfo> getReqComponents() {
44      	if (this.reqComponents == null) {
45      		this.reqComponents = new ArrayList<ReqComponentInfo>(0);
46      	}
47          return reqComponents;
48      }
49  
50      public void setReqComponents(List<ReqComponentInfo> reqComponents) {
51          this.reqComponents = reqComponents;
52      }
53  
54  	@Override
55  	public String toString() {
56  		return "StatementTreeViewInfo[id=" + getId() + "]";
57  	}
58  }