| 1 |  |   | 
  | 2 |  |   | 
  | 3 |  |   | 
  | 4 |  |   | 
  | 5 |  |   | 
  | 6 |  |   | 
  | 7 |  |   | 
  | 8 |  |   | 
  | 9 |  |   | 
  | 10 |  |   | 
  | 11 |  |   | 
  | 12 |  |   | 
  | 13 |  |   | 
  | 14 |  |   | 
  | 15 |  |   | 
  | 16 |  |  package org.kuali.student.lum.program.dto; | 
  | 17 |  |   | 
  | 18 |  |  import java.io.Serializable; | 
  | 19 |  |  import java.util.ArrayList; | 
  | 20 |  |  import java.util.HashMap; | 
  | 21 |  |  import java.util.List; | 
  | 22 |  |  import java.util.Map; | 
  | 23 |  |   | 
  | 24 |  |  import javax.xml.bind.annotation.XmlAccessType; | 
  | 25 |  |  import javax.xml.bind.annotation.XmlAccessorType; | 
  | 26 |  |  import javax.xml.bind.annotation.XmlAttribute; | 
  | 27 |  |  import javax.xml.bind.annotation.XmlElement; | 
  | 28 |  |  import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; | 
  | 29 |  |   | 
  | 30 |  |  import org.kuali.student.common.dto.HasAttributes; | 
  | 31 |  |  import org.kuali.student.common.dto.HasTypeState; | 
  | 32 |  |  import org.kuali.student.common.dto.Idable; | 
  | 33 |  |  import org.kuali.student.common.dto.MetaInfo; | 
  | 34 |  |  import org.kuali.student.common.dto.RichTextInfo; | 
  | 35 |  |  import org.kuali.student.core.statement.dto.StatementTreeViewInfo; | 
  | 36 |  |  import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter; | 
  | 37 |  |  import org.kuali.student.lum.course.dto.LoDisplayInfo; | 
  | 38 |  |  import org.kuali.student.lum.program.dto.assembly.ProgramCommonAssembly; | 
  | 39 |  |   | 
  | 40 |  |   | 
  | 41 |  |   | 
  | 42 |  |   | 
  | 43 |  |   | 
  | 44 |  |   | 
  | 45 |  |   | 
  | 46 |  |   | 
  | 47 |  |   | 
  | 48 |  |   | 
  | 49 |  |  @XmlAccessorType(XmlAccessType.FIELD) | 
  | 50 | 0 |  public class ProgramRequirementInfo implements Serializable, Idable, HasTypeState, HasAttributes, ProgramCommonAssembly { | 
  | 51 |  |   | 
  | 52 |  |      private static final long serialVersionUID = 1L; | 
  | 53 |  |   | 
  | 54 |  |      @XmlElement | 
  | 55 |  |      private String shortTitle; | 
  | 56 |  |   | 
  | 57 |  |      @XmlElement | 
  | 58 |  |      private String longTitle; | 
  | 59 |  |   | 
  | 60 |  |      @XmlElement | 
  | 61 |  |      private RichTextInfo descr; | 
  | 62 |  |   | 
  | 63 |  |      @XmlElement | 
  | 64 |  |      private List<LoDisplayInfo> learningObjectives; | 
  | 65 |  |   | 
  | 66 |  |      @XmlElement | 
  | 67 |  |      private StatementTreeViewInfo statement; | 
  | 68 |  |   | 
  | 69 |  |      @XmlElement | 
  | 70 |  |      Integer minCredits; | 
  | 71 |  |       | 
  | 72 |  |      @XmlElement | 
  | 73 |  |      Integer maxCredits; | 
  | 74 |  |       | 
  | 75 |  |      @XmlElement | 
  | 76 |  |      @XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class) | 
  | 77 |  |      private Map<String, String> attributes; | 
  | 78 |  |   | 
  | 79 |  |      @XmlElement | 
  | 80 |  |      private MetaInfo metaInfo; | 
  | 81 |  |   | 
  | 82 |  |      @XmlAttribute | 
  | 83 |  |      private String type; | 
  | 84 |  |   | 
  | 85 |  |      @XmlAttribute | 
  | 86 |  |      private String state; | 
  | 87 |  |   | 
  | 88 |  |      @XmlAttribute | 
  | 89 |  |      private String id; | 
  | 90 |  |   | 
  | 91 |  |      public String getShortTitle() { | 
  | 92 | 0 |          return shortTitle; | 
  | 93 |  |      } | 
  | 94 |  |   | 
  | 95 |  |      public void setShortTitle(String shortTitle) { | 
  | 96 | 0 |          this.shortTitle = shortTitle; | 
  | 97 | 0 |      } | 
  | 98 |  |   | 
  | 99 |  |      public String getLongTitle() { | 
  | 100 | 0 |          return longTitle; | 
  | 101 |  |      } | 
  | 102 |  |   | 
  | 103 |  |      public void setLongTitle(String longTitle) { | 
  | 104 | 0 |          this.longTitle = longTitle; | 
  | 105 | 0 |      } | 
  | 106 |  |   | 
  | 107 |  |      public RichTextInfo getDescr() { | 
  | 108 | 0 |          return descr; | 
  | 109 |  |      } | 
  | 110 |  |   | 
  | 111 |  |      public void setDescr(RichTextInfo descr) { | 
  | 112 | 0 |          this.descr = descr; | 
  | 113 | 0 |      } | 
  | 114 |  |   | 
  | 115 |  |      public List<LoDisplayInfo> getLearningObjectives() { | 
  | 116 | 0 |          if(null == learningObjectives) { | 
  | 117 | 0 |              learningObjectives = new ArrayList<LoDisplayInfo>(0); | 
  | 118 |  |          } | 
  | 119 | 0 |          return learningObjectives; | 
  | 120 |  |      } | 
  | 121 |  |   | 
  | 122 |  |      public void setLearningObjectives(List<LoDisplayInfo> learningObjectives) { | 
  | 123 | 0 |          this.learningObjectives = learningObjectives; | 
  | 124 | 0 |      } | 
  | 125 |  |   | 
  | 126 |  |      public StatementTreeViewInfo getStatement() { | 
  | 127 | 0 |          return statement; | 
  | 128 |  |      } | 
  | 129 |  |   | 
  | 130 |  |      public void setStatement(StatementTreeViewInfo statement) { | 
  | 131 | 0 |          this.statement = statement; | 
  | 132 | 0 |      } | 
  | 133 |  |       | 
  | 134 |  |      public Integer getMinCredits() { | 
  | 135 | 0 |          return minCredits; | 
  | 136 |  |      } | 
  | 137 |  |   | 
  | 138 |  |      public void setMinCredits(Integer minCredits) { | 
  | 139 | 0 |          this.minCredits = minCredits; | 
  | 140 | 0 |      } | 
  | 141 |  |   | 
  | 142 |  |      public Integer getMaxCredits() { | 
  | 143 | 0 |          return maxCredits; | 
  | 144 |  |      } | 
  | 145 |  |   | 
  | 146 |  |      public void setMaxCredits(Integer maxCredits) { | 
  | 147 | 0 |          this.maxCredits = maxCredits; | 
  | 148 | 0 |      } | 
  | 149 |  |   | 
  | 150 |  |       | 
  | 151 |  |   | 
  | 152 |  |   | 
  | 153 |  |      @Override | 
  | 154 |  |      public Map<String, String> getAttributes() { | 
  | 155 | 0 |          if (attributes == null) { | 
  | 156 | 0 |              attributes = new HashMap<String, String>(); | 
  | 157 |  |          } | 
  | 158 | 0 |          return attributes; | 
  | 159 |  |      } | 
  | 160 |  |   | 
  | 161 |  |      @Override | 
  | 162 |  |      public void setAttributes(Map<String, String> attributes) { | 
  | 163 | 0 |          this.attributes = attributes; | 
  | 164 | 0 |      } | 
  | 165 |  |   | 
  | 166 |  |       | 
  | 167 |  |   | 
  | 168 |  |   | 
  | 169 |  |      public MetaInfo getMetaInfo() { | 
  | 170 | 0 |          return metaInfo; | 
  | 171 |  |      } | 
  | 172 |  |   | 
  | 173 |  |      public void setMetaInfo(MetaInfo metaInfo) { | 
  | 174 | 0 |          this.metaInfo = metaInfo; | 
  | 175 | 0 |      } | 
  | 176 |  |   | 
  | 177 |  |       | 
  | 178 |  |   | 
  | 179 |  |   | 
  | 180 |  |      @Override | 
  | 181 |  |      public String getType() { | 
  | 182 | 0 |          return type; | 
  | 183 |  |      } | 
  | 184 |  |   | 
  | 185 |  |      @Override | 
  | 186 |  |      public void setType(String type) { | 
  | 187 | 0 |          this.type = type; | 
  | 188 | 0 |      } | 
  | 189 |  |   | 
  | 190 |  |       | 
  | 191 |  |   | 
  | 192 |  |   | 
  | 193 |  |      @Override | 
  | 194 |  |      public String getState() { | 
  | 195 | 0 |          return state; | 
  | 196 |  |      } | 
  | 197 |  |   | 
  | 198 |  |      @Override | 
  | 199 |  |      public void setState(String state) { | 
  | 200 | 0 |          this.state = state; | 
  | 201 | 0 |      } | 
  | 202 |  |   | 
  | 203 |  |       | 
  | 204 |  |   | 
  | 205 |  |   | 
  | 206 |  |      @Override | 
  | 207 |  |      public String getId() { | 
  | 208 | 0 |          return id; | 
  | 209 |  |      } | 
  | 210 |  |   | 
  | 211 |  |      @Override | 
  | 212 |  |      public void setId(String id) { | 
  | 213 | 0 |          this.id = id; | 
  | 214 | 0 |      } | 
  | 215 |  |  } |