Coverage Report - org.mule.example.hello.NameString
 
Classes in this File Line Coverage Branch Coverage Complexity
NameString
0%
0/13
0%
0/4
1
 
 1  
 /*
 2  
  * $Id: NameString.java 19191 2010-08-25 21:05:23Z tcarlson $
 3  
  * --------------------------------------------------------------------------------------
 4  
  * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
 5  
  *
 6  
  * The software in this package is published under the terms of the CPAL v1.0
 7  
  * license, a copy of which has been included with this distribution in the
 8  
  * LICENSE.txt file.
 9  
  */
 10  
 
 11  
 package org.mule.example.hello;
 12  
 
 13  
 import java.io.Serializable;
 14  
 
 15  
 /**
 16  
  * <code>NameString</code> is a simple string wrapper that holds a name and a greeting string
 17  
  */
 18  
 public class NameString implements Serializable
 19  
 {
 20  
     /**
 21  
      * Serial version
 22  
      */
 23  
     private static final long serialVersionUID = 7010138636008560022L;
 24  
 
 25  
     private String name;
 26  
     private String greeting;
 27  
 
 28  
     public NameString()
 29  0
     {
 30  0
         this.name = null;
 31  0
     }
 32  
     
 33  
     public NameString(String name)
 34  0
     {
 35  0
         this.name = name;
 36  0
     }
 37  
 
 38  
     /**
 39  
      * @return Returns the name.
 40  
      */
 41  
     public String getName()
 42  
     {
 43  0
         return name;
 44  
     }
 45  
 
 46  
     /**
 47  
      * @param name The name to set.
 48  
      */
 49  
     public void setName(String name)
 50  
     {
 51  0
         this.name = name;
 52  0
     }
 53  
 
 54  
     /**
 55  
      * @return Returns the greeting.
 56  
      */
 57  
     public String getGreeting()
 58  
     {
 59  0
         return greeting;
 60  
     }
 61  
 
 62  
     /**
 63  
      * @param greeting The greeting to set.
 64  
      */
 65  
     public void setGreeting(String greeting)
 66  
     {
 67  0
         this.greeting = greeting;
 68  0
     }
 69  
     
 70  
     public boolean isValid()
 71  
     {
 72  0
         return name != null && name.length() > 0;
 73  
     }
 74  
 }