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  /**
24   *Detailed information about a single LU statement.
25   */
26  public class StatementInfo extends AbstractStatementInfo {
27  
28      private static final long serialVersionUID = 1L;
29  
30      @XmlElement
31      private List<String> statementIds;
32  
33      @XmlElement
34      private List<String> reqComponentIds;
35      /**
36       * List of LU statement identifiers.
37       */
38      public List<String> getStatementIds() {
39          if (statementIds == null) {
40              statementIds = new ArrayList<String>(0);
41          }
42          return statementIds;
43      }
44  
45      public void setStatementIds(List<String> statementIds) {
46          this.statementIds = statementIds;
47      }
48  
49      /**
50       * List of requirement component identifiers.
51       */
52      public List<String> getReqComponentIds() {
53          if (reqComponentIds == null) {
54              reqComponentIds = new ArrayList<String>(0);
55          }
56          return reqComponentIds;
57      }
58  
59      public void setReqComponentIds(List<String> reqComponentIds) {
60          this.reqComponentIds = reqComponentIds;
61      }
62  
63      @Override
64  	public String toString() {
65  		return "StatementInfo[id=" + getId() + (getDesc() == null ? "" : ", desc=" + getDesc().getPlain()) + ", operator=" + getOperator() + ", type="
66  				+ getType() + ", state=" + getState() + "]";
67  	}
68  }