Coverage Report - org.kuali.student.common.messages.dto.Message
 
Classes in this File Line Coverage Branch Coverage Complexity
Message
0%
0/13
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.common.messages.dto;
 17  
 
 18  
 import java.io.Serializable;
 19  
 
 20  
 import javax.xml.bind.annotation.XmlAccessType;
 21  
 import javax.xml.bind.annotation.XmlAccessorType;
 22  
 import javax.xml.bind.annotation.XmlAttribute;
 23  
 import javax.xml.bind.annotation.XmlElement;
 24  
 import javax.xml.bind.annotation.XmlRootElement;
 25  
 /**
 26  
  * Example:
 27  
 <message locale="en" groupName="/ks/admin/person/validate" id="isRequired">
 28  
   <value>${name} is required</value>
 29  
 </message>
 30  
  */
 31  
 
 32  
 @XmlAccessorType(XmlAccessType.FIELD)
 33  
 @XmlRootElement(name = "message")
 34  0
 public class Message implements Serializable{
 35  
     private static final long serialVersionUID = 1L;
 36  
     
 37  
     @XmlAttribute(required = true)
 38  
     protected String locale;
 39  
     @XmlAttribute(required = true)
 40  
     protected String groupName;
 41  
     @XmlAttribute(required = true)
 42  
     protected String id;
 43  
     @XmlElement(name = "value", required = true)
 44  
     protected String value;
 45  
         public String getLocale() {
 46  0
                 return locale;
 47  
         }
 48  
         public void setLocale(String locale) {
 49  0
                 this.locale = locale;
 50  0
         }
 51  
         public String getGroupName() {
 52  0
                 return groupName;
 53  
         }
 54  
         public void setGroupName(String groupName) {
 55  0
                 this.groupName = groupName;
 56  0
         }
 57  
         public String getId() {
 58  0
                 return id;
 59  
         }
 60  
         public void setId(String id) {
 61  0
                 this.id = id;
 62  0
         }
 63  
         public String getValue() {
 64  0
                 return value;
 65  
         }
 66  
         public void setValue(String value) {
 67  0
                 this.value = value;
 68  0
         }
 69  
 
 70  
     
 71  
 }