Save This Page
Home » pentaho-reporting-engine-classic-0.8.10 » org » jfree » report » demo » invoice » [javadoc | source]
    1   /**
    2    * ========================================
    3    * JFreeReport : a free Java report library
    4    * ========================================
    5    *
    6    * Project Info:  http://www.jfree.org/jfreereport/index.html
    7    * Project Lead:  Thomas Morgner (taquera@sherito.org);
    8    *
    9    * (C) Copyright 2000-2004, by Simba Management Limited and Contributors.
   10    *
   11    * This library is free software; you can redistribute it and/or modify it under the terms
   12    * of the GNU Lesser General Public License as published by the Free Software Foundation;
   13    * either 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, but WITHOUT ANY WARRANTY;
   16    * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   17    * See the GNU Lesser General Public License for more details.
   18    *
   19    * You should have received a copy of the GNU Lesser General Public License along with this
   20    * library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
   21    * Boston, MA 02111-1307, USA.
   22    *
   23    * ------------------------------
   24    * Article.java
   25    * ------------------------------
   26    * (C)opyright 2004, by Thomas Morgner and Contributors.
   27    *
   28    * Original Author:  Thomas Morgner;
   29    * Contributor(s):   David Gilbert (for Simba Management Limited);
   30    *
   31    * $Id: Article.java,v 1.1.2.1 2004/03/26 21:57:54 taqua Exp $
   32    *
   33    * Changes 
   34    * -------------------------
   35    * 26.03.2004 : Initial version
   36    *  
   37    */
   38   
   39   package org.jfree.report.demo.invoice;
   40   
   41   public class Article
   42   {
   43     // how is the article called?
   44     private String name;
   45     // how much does it cost
   46     private float price;
   47     // the article number
   48     private String articleNumber;
   49     // may contain a serial number or special notes
   50     private String articleDetails;
   51   
   52     public Article (final String articleNumber, final String name, final float price)
   53     {
   54       this (articleNumber, name, price, null);
   55     }
   56   
   57     public Article (final String articleNumber, final String name,
   58                     final float price, final String articleDetails)
   59     {
   60       this.articleNumber = articleNumber;
   61       this.name = name;
   62       this.price = price;
   63       this.articleDetails = articleDetails;
   64     }
   65   
   66     public String getArticleDetails ()
   67     {
   68       return articleDetails;
   69     }
   70   
   71     public String getArticleNumber ()
   72     {
   73       return articleNumber;
   74     }
   75   
   76     public String getName ()
   77     {
   78       return name;
   79     }
   80   
   81     public float getPrice ()
   82     {
   83       return price;
   84     }
   85   }

Save This Page
Home » pentaho-reporting-engine-classic-0.8.10 » org » jfree » report » demo » invoice » [javadoc | source]