001package com.hfg.xml.msoffice2003.spreadsheetml;
002
003
004
005//------------------------------------------------------------------------------
006/**
007 Excel number format.
008
009 @author J. Alex Taylor, hairyfatguy.com
010 */
011//------------------------------------------------------------------------------
012// com.hfg Library
013//
014// This library is free software; you can redistribute it and/or
015// modify it under the terms of the GNU Lesser General Public
016// License as published by the Free Software Foundation; either
017// version 2.1 of the License, or (at your option) any later version.
018//
019// This library is distributed in the hope that it will be useful,
020// but WITHOUT ANY WARRANTY; without even the implied warranty of
021// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
022// Lesser General Public License for more details.
023//
024// You should have received a copy of the GNU Lesser General Public
025// License along with this library; if not, write to the Free Software
026// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
027//
028// J. Alex Taylor, President, Founder, CEO, COO, CFO, OOPS hairyfatguy.com
029// jataylor@hairyfatguy.com
030//------------------------------------------------------------------------------
031
032public class ExcelNumberFormat
033{
034   public static final ExcelNumberFormat General       = new ExcelNumberFormat("General");
035   public static final ExcelNumberFormat GeneralNumber = new ExcelNumberFormat("General Number");
036   public static final ExcelNumberFormat GeneralDate   = new ExcelNumberFormat("General Date");
037   public static final ExcelNumberFormat LongDate      = new ExcelNumberFormat("Long Date");
038   public static final ExcelNumberFormat MediumDate    = new ExcelNumberFormat("Medium Date");
039   public static final ExcelNumberFormat ShortDate     = new ExcelNumberFormat("Short Date");
040   public static final ExcelNumberFormat LongTime      = new ExcelNumberFormat("Long Time");
041   public static final ExcelNumberFormat MediumTime    = new ExcelNumberFormat("Medium Time");
042   public static final ExcelNumberFormat ShortTime     = new ExcelNumberFormat("Short Time");
043   public static final ExcelNumberFormat Currency      = new ExcelNumberFormat("Currency");
044   public static final ExcelNumberFormat EuroCurrency  = new ExcelNumberFormat("Euro Currency");
045   public static final ExcelNumberFormat Fixed         = new ExcelNumberFormat("Fixed");
046   public static final ExcelNumberFormat Standard      = new ExcelNumberFormat("Standard");
047   public static final ExcelNumberFormat Percent       = new ExcelNumberFormat("Percent");
048   public static final ExcelNumberFormat Scientific    = new ExcelNumberFormat("Scientific");
049   public static final ExcelNumberFormat Yes_No        = new ExcelNumberFormat("Yes/No");
050   public static final ExcelNumberFormat True_False    = new ExcelNumberFormat("True/False");
051   public static final ExcelNumberFormat On_Off        = new ExcelNumberFormat("On/Off");
052
053
054   private String mName;
055
056   //---------------------------------------------------------------------------
057   private ExcelNumberFormat(String inName)
058   {
059      mName = inName;
060   }
061
062   //---------------------------------------------------------------------------
063   public String toString()
064   {
065      return mName;
066   }
067
068   //---------------------------------------------------------------------------
069   public String name()
070   {
071      return toString();
072   }
073}