Coverage Report - ar.com.fdvs.dj.domain.ColumnOperation
 
Classes in this File Line Coverage Branch Coverage Complexity
ColumnOperation
100%
6/6
N/A
1
 
 1  
 /*
 2  
  * DynamicJasper: A library for creating reports dynamically by specifying
 3  
  * columns, groups, styles, etc. at runtime. It also saves a lot of development
 4  
  * time in many cases! (http://sourceforge.net/projects/dynamicjasper)
 5  
  *
 6  
  * Copyright (C) 2008  FDV Solutions (http://www.fdvsolutions.com)
 7  
  *
 8  
  * This library is free software; you can redistribute it and/or
 9  
  * modify it under the terms of the GNU Lesser General Public
 10  
  *
 11  
  * License as published by the Free Software Foundation; either
 12  
  *
 13  
  * version 2.1 of the License, or (at your option) any later version.
 14  
  *
 15  
  * This library is distributed in the hope that it will be useful,
 16  
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 17  
  *
 18  
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 19  
  *
 20  
  * Lesser General Public License for more details.
 21  
  *
 22  
  * You should have received a copy of the GNU Lesser General Public
 23  
  * License along with this library; if not, write to the Free Software
 24  
  *
 25  
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 26  
  *
 27  
  *
 28  
  */
 29  
 
 30  
 package ar.com.fdvs.dj.domain;
 31  
 
 32  
 import ar.com.fdvs.dj.domain.entities.Entity;
 33  
 import ar.com.fdvs.dj.domain.entities.columns.OperationColumn;
 34  
 
 35  
 /**
 36  
  * Numerical operations that can be applied by an OperationColumn.</br>
 37  
  * </br>
 38  
  * @see OperationColumn
 39  
  */
 40  
 public class ColumnOperation extends DJBaseElement {
 41  
 
 42  
         private static final long serialVersionUID = Entity.SERIAL_VERSION_UID;
 43  
         
 44  1
         public static ColumnOperation SUM = new ColumnOperation("+");
 45  1
         public static ColumnOperation SUBSTRACT = new ColumnOperation("-");
 46  
 
 47  
         private String value;
 48  
 
 49  2
         private ColumnOperation(String value) {
 50  2
                 this.value = value;
 51  2
         }
 52  
 
 53  
         public String getValue() {
 54  3
                 return value;
 55  
         }
 56  
 
 57  
 }