Coverage Report - org.kuali.student.core.person.dto.PersonNameInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
PersonNameInfo
0%
0/43
N/A
1
 
 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.person.dto;
 17  
 
 18  
 import java.io.Serializable;
 19  
 import java.util.Date;
 20  
 
 21  
 import javax.xml.bind.annotation.XmlAccessType;
 22  
 import javax.xml.bind.annotation.XmlAccessorType;
 23  
 import javax.xml.bind.annotation.XmlAttribute;
 24  
 import javax.xml.bind.annotation.XmlElement;
 25  
 
 26  
 import org.kuali.student.core.dto.Idable;
 27  
 import org.kuali.student.core.dto.MetaInfo;
 28  
 
 29  
 /**
 30  
  *Information about a person's name. 
 31  
  */ 
 32  
 @XmlAccessorType(XmlAccessType.FIELD)
 33  0
 public class PersonNameInfo implements Serializable, Idable {
 34  
 
 35  
     private static final long serialVersionUID = 1L;
 36  
 
 37  
     @XmlElement
 38  
     private String personId;
 39  
 
 40  
     @XmlElement
 41  
     private String personTitle;
 42  
 
 43  
     @XmlElement
 44  
     private String nonStandardName;
 45  
 
 46  
     @XmlElement
 47  
     private String surname;
 48  
 
 49  
     @XmlElement
 50  
     private String middleName;
 51  
 
 52  
     @XmlElement
 53  
     private String givenName;
 54  
 
 55  
     @XmlElement
 56  
     private String preferredName;
 57  
 
 58  
     @XmlElement
 59  
     private String suffix;
 60  
 
 61  
     @XmlElement
 62  
     private Date effectiveDate;
 63  
 
 64  
     @XmlElement
 65  
     private Date expirationDate;
 66  
 
 67  
     @XmlElement
 68  
     private String nameOrder;
 69  
 
 70  
     @XmlElement
 71  
     private MetaInfo metaInfo;
 72  
 
 73  
     @XmlAttribute
 74  
     private String nameType;
 75  
 
 76  
     @XmlAttribute
 77  
     private String id;
 78  
 
 79  
     /**
 80  
      * Unique identifier for a person record. This is optional, due to the identifier being set at the time of creation of the person. Once the person has been created, this should be seen as required.
 81  
      */
 82  
     public String getPersonId() {
 83  0
         return personId;
 84  
     }
 85  
 
 86  
     public void setPersonId(String personId) {
 87  0
         this.personId = personId;
 88  0
     }
 89  
 
 90  
     /**
 91  
      * Mr, Ms, Dr,
 92  
      */
 93  
     public String getPersonTitle() {
 94  0
         return personTitle;
 95  
     }
 96  
 
 97  
     public void setPersonTitle(String personTitle) {
 98  0
         this.personTitle = personTitle;
 99  0
     }
 100  
 
 101  
     /**
 102  
      * 
 103  
      */
 104  
     public String getNonStandardName() {
 105  0
         return nonStandardName;
 106  
     }
 107  
 
 108  
     public void setNonStandardName(String nonStandardName) {
 109  0
         this.nonStandardName = nonStandardName;
 110  0
     }
 111  
 
 112  
     /**
 113  
      * 
 114  
      */
 115  
     public String getSurname() {
 116  0
         return surname;
 117  
     }
 118  
 
 119  
     public void setSurname(String surname) {
 120  0
         this.surname = surname;
 121  0
     }
 122  
 
 123  
     /**
 124  
      * 
 125  
      */
 126  
     public String getMiddleName() {
 127  0
         return middleName;
 128  
     }
 129  
 
 130  
     public void setMiddleName(String middleName) {
 131  0
         this.middleName = middleName;
 132  0
     }
 133  
 
 134  
     /**
 135  
      * 
 136  
      */
 137  
     public String getGivenName() {
 138  0
         return givenName;
 139  
     }
 140  
 
 141  
     public void setGivenName(String givenName) {
 142  0
         this.givenName = givenName;
 143  0
     }
 144  
 
 145  
     /**
 146  
      * 
 147  
      */
 148  
     public String getPreferredName() {
 149  0
         return preferredName;
 150  
     }
 151  
 
 152  
     public void setPreferredName(String preferredName) {
 153  0
         this.preferredName = preferredName;
 154  0
     }
 155  
 
 156  
     /**
 157  
      * 
 158  
      */
 159  
     public String getSuffix() {
 160  0
         return suffix;
 161  
     }
 162  
 
 163  
     public void setSuffix(String suffix) {
 164  0
         this.suffix = suffix;
 165  0
     }
 166  
 
 167  
     /**
 168  
      * Date/Time this became effective
 169  
      */
 170  
     public Date getEffectiveDate() {
 171  0
         return effectiveDate;
 172  
     }
 173  
 
 174  
     public void setEffectiveDate(Date effectiveDate) {
 175  0
         this.effectiveDate = effectiveDate;
 176  0
     }
 177  
 
 178  
     /**
 179  
      * Date/Time this became no longer effective
 180  
      */
 181  
     public Date getExpirationDate() {
 182  0
         return expirationDate;
 183  
     }
 184  
 
 185  
     public void setExpirationDate(Date expirationDate) {
 186  0
         this.expirationDate = expirationDate;
 187  0
     }
 188  
 
 189  
     /**
 190  
      * String indicating order in which person's name(s) should be displayed.
 191  
      */
 192  
     public String getNameOrder() {
 193  0
         return nameOrder;
 194  
     }
 195  
 
 196  
     public void setNameOrder(String nameOrder) {
 197  0
         this.nameOrder = nameOrder;
 198  0
     }
 199  
 
 200  
     /**
 201  
      * Create and last update info for the structure. This is optional and treated as read only since the data is set by the internals of the service during maintenance operations.
 202  
      */
 203  
     public MetaInfo getMetaInfo() {
 204  0
         return metaInfo;
 205  
     }
 206  
 
 207  
     public void setMetaInfo(MetaInfo metaInfo) {
 208  0
         this.metaInfo = metaInfo;
 209  0
     }
 210  
 
 211  
     /**
 212  
      * Category used for a person's name.
 213  
      */
 214  
     public String getNameType() {
 215  0
         return nameType;
 216  
     }
 217  
 
 218  
     public void setNameType(String nameType) {
 219  0
         this.nameType = nameType;
 220  0
     }
 221  
 
 222  
     /**
 223  
      * Identifier for this particular name structure. This is set by the service to be able to determine changes and alterations to the structure as well as provides a handle for searches. This structure is not accessible through unique operations, and it is strongly recommended that no external references to this particular identifier be maintained. Once this identifier is set by the service, it should be seen as required and read-only.
 224  
      */
 225  
     public String getId() {
 226  0
         return id;
 227  
     }
 228  
 
 229  
     public void setId(String id) {
 230  0
         this.id = id;
 231  0
     }
 232  
 }