Coverage Report - th.co.edge.jseq.argouml.pgml.Stroke
 
Classes in this File Line Coverage Branch Coverage Complexity
Stroke
70%
7/10
N/A
1
 
 1  
 /*
 2  
  * Copyright (c) 2003-2008, by Henrik Arro and Contributors
 3  
  *
 4  
  * This file is part of JSeq, a tool to automatically create
 5  
  * sequence diagrams by tracing program execution.
 6  
  *
 7  
  * See <http://jseq.sourceforge.net> for more information.
 8  
  *
 9  
  * JSeq is free software: you can redistribute it and/or modify
 10  
  * it under the terms of the GNU Lesser General Public License as
 11  
  * published by the Free Software Foundation, either version 3 of
 12  
  * the License, or (at your option) any later version.
 13  
  *
 14  
  * JSeq is distributed in the hope that it will be useful,
 15  
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 16  
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 17  
  * GNU Lesser General Public License for more details.
 18  
  *
 19  
  * You should have received a copy of the GNU Lesser General Public License
 20  
  * along with JSeq. If not, see <http://www.gnu.org/licenses/>.
 21  
  */
 22  
 
 23  
 package th.co.edge.jseq.argouml.pgml;
 24  
 
 25  
 public class Stroke {
 26  1
     public static final Stroke ON = new Stroke(1, "ON");
 27  1
     public static final Stroke OFF = new Stroke(0, "OFF");
 28  
 
 29  
     private int value;
 30  
     private String description;
 31  
 
 32  2
     private Stroke(int value, String description) {
 33  2
         this.value = value;
 34  2
         this.description = description;
 35  2
     }
 36  
 
 37  
     public int getIntValue() {
 38  0
         return value;
 39  
     }
 40  
 
 41  
     public String getStringValue() {
 42  85
         return Integer.toString(value);
 43  
     }
 44  
 
 45  
     public String getDescription() {
 46  0
         return description;
 47  
     }
 48  
 
 49  
     public String toString() {
 50  0
         return "Stroke." + getDescription();
 51  
     }
 52  
 }