| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| Type | 
 | 
 | 1.125;1.125 | 
| 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 |  // | |
| 17 |  // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.0 in JDK 1.6  | |
| 18 |  // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>  | |
| 19 |  // Any modifications to this file will be lost upon recompilation of the source schema.  | |
| 20 |  // Generated on: 2008.10.21 at 02:14:18 PM PDT  | |
| 21 |  // | |
| 22 | ||
| 23 | ||
| 24 |  package org.kuali.student.common.dictionary.old.dto; | |
| 25 | ||
| 26 |  import java.io.Serializable; | |
| 27 |  import java.util.ArrayList; | |
| 28 |  import java.util.Date; | |
| 29 |  import java.util.HashMap; | |
| 30 |  import java.util.List; | |
| 31 |  import java.util.Map; | |
| 32 | ||
| 33 |  import javax.xml.bind.annotation.XmlAccessType; | |
| 34 |  import javax.xml.bind.annotation.XmlAccessorType; | |
| 35 |  import javax.xml.bind.annotation.XmlAttribute; | |
| 36 |  import javax.xml.bind.annotation.XmlElement; | |
| 37 |  import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; | |
| 38 | ||
| 39 |  import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter; | |
| 40 | ||
| 41 | ||
| 42 |  /** | |
| 43 |   * <p>Java class for anonymous complex type. | |
| 44 |   *  | |
| 45 |   * <p>The following schema fragment specifies the expected content contained within this class. | |
| 46 |   *  | |
| 47 |   * <pre> | |
| 48 |   * <complexType> | |
| 49 |   *   <complexContent> | |
| 50 |   *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | |
| 51 |   *       <sequence> | |
| 52 |   *         <element ref="{http://www.dto.dictionary.student.kuali.org}state" maxOccurs="unbounded"/> | |
| 53 |   *       </sequence> | |
| 54 |   *       <attribute name="key" type="{http://www.w3.org/2001/XMLSchema}string" /> | |
| 55 |   *     </restriction> | |
| 56 |   *   </complexContent> | |
| 57 |   * </complexType> | |
| 58 |   * </pre> | |
| 59 |   *  | |
| 60 |   *  | |
| 61 |   */ | |
| 62 | @XmlAccessorType(XmlAccessType.FIELD) | |
| 63 | 0 |  public class Type implements Serializable{ | 
| 64 | ||
| 65 | private static final long serialVersionUID = 1L; | |
| 66 | ||
| 67 |      @XmlElement(required = true) | |
| 68 |      protected List<State> state; | |
| 69 | ||
| 70 | @XmlAttribute | |
| 71 |      protected String id; | |
| 72 | ||
| 73 |      @XmlAttribute(required = true) | |
| 74 |      protected String key; | |
| 75 | ||
| 76 | @XmlElement | |
| 77 |          private String name; | |
| 78 | @XmlElement | |
| 79 |          private String desc; | |
| 80 | @XmlElement | |
| 81 |          private Date effectiveDate; | |
| 82 | @XmlElement | |
| 83 |          private Date expirationDate; | |
| 84 | @XmlElement | |
| 85 | private boolean modifiable; | |
| 86 | ||
| 87 | @XmlElement | |
| 88 |          @XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class) | |
| 89 |          private Map<String, String> attributes; | |
| 90 | ||
| 91 |      /** | |
| 92 |       * Gets the value of the state property. | |
| 93 |       *  | |
| 94 |       * <p> | |
| 95 |       * This accessor method returns a reference to the live list, | |
| 96 |       * not a snapshot. Therefore any modification you make to the | |
| 97 |       * returned list will be present inside the JAXB object. | |
| 98 |       * This is why there is not a <CODE>set</CODE> method for the state property. | |
| 99 |       *  | |
| 100 |       * <p> | |
| 101 |       * For example, to add a new item, do as follows: | |
| 102 |       * <pre> | |
| 103 |       *    getState().add(newItem); | |
| 104 |       * </pre> | |
| 105 |       *  | |
| 106 |       *  | |
| 107 |       * <p> | |
| 108 |       * Objects of the following type(s) are allowed in the list | |
| 109 |       * {@link State } | |
| 110 |       *  | |
| 111 |       *  | |
| 112 |       */ | |
| 113 |      public List<State> getState() { | |
| 114 | 0 |          if (state == null) { | 
| 115 | 0 |              state = new ArrayList<State>(); | 
| 116 | } | |
| 117 | 0 |          return this.state; | 
| 118 | } | |
| 119 | ||
| 120 |      /** | |
| 121 |       * Gets the value of the key property. | |
| 122 |       *  | |
| 123 |       * @return | |
| 124 |       *     possible object is | |
| 125 |       *     {@link String } | |
| 126 |       *      | |
| 127 |       */ | |
| 128 |      public String getKey() { | |
| 129 | 0 |          return key; | 
| 130 | } | |
| 131 | ||
| 132 |      /** | |
| 133 |       * Sets the value of the key property. | |
| 134 |       *  | |
| 135 |       * @param value | |
| 136 |       *     allowed object is | |
| 137 |       *     {@link String } | |
| 138 |       *      | |
| 139 |       */ | |
| 140 | public void setKey(String value) { | |
| 141 | 0 |          this.key = value; | 
| 142 | 0 |      } | 
| 143 | ||
| 144 | public void setState(List<State> state) { | |
| 145 | 0 |                  this.state = state; | 
| 146 | 0 |          } | 
| 147 | ||
| 148 |          public String getName() { | |
| 149 | 0 |                  return name; | 
| 150 | } | |
| 151 | ||
| 152 | public void setName(String name) { | |
| 153 | 0 |                  this.name = name; | 
| 154 | 0 |          } | 
| 155 | ||
| 156 |          public String getDesc() { | |
| 157 | 0 |                  return desc; | 
| 158 | } | |
| 159 | ||
| 160 | public void setDesc(String desc) { | |
| 161 | 0 |                  this.desc = desc; | 
| 162 | 0 |          } | 
| 163 | ||
| 164 |          public Date getEffectiveDate() { | |
| 165 | 0 |                  return effectiveDate; | 
| 166 | } | |
| 167 | ||
| 168 | public void setEffectiveDate(Date effectiveDate) { | |
| 169 | 0 |                  this.effectiveDate = effectiveDate; | 
| 170 | 0 |          } | 
| 171 | ||
| 172 |          public Date getExpirationDate() { | |
| 173 | 0 |                  return expirationDate; | 
| 174 | } | |
| 175 | ||
| 176 | public void setExpirationDate(Date expirationDate) { | |
| 177 | 0 |                  this.expirationDate = expirationDate; | 
| 178 | 0 |          } | 
| 179 | ||
| 180 | public boolean isModifiable() { | |
| 181 | 0 |                  return modifiable; | 
| 182 | } | |
| 183 | ||
| 184 | public void setModifiable(boolean modifiable) { | |
| 185 | 0 |                  this.modifiable = modifiable; | 
| 186 | 0 |          } | 
| 187 | ||
| 188 |          public Map<String, String> getAttributes() { | |
| 189 | 0 |                  if(attributes == null){ | 
| 190 | 0 |                          attributes = new HashMap<String, String>(); | 
| 191 | } | |
| 192 | 0 |                  return attributes; | 
| 193 | } | |
| 194 | ||
| 195 | public void setAttributes(Map<String, String> attributes) { | |
| 196 | 0 |                  this.attributes = attributes; | 
| 197 | 0 |          } | 
| 198 | ||
| 199 | } |