com.hfg.xml.msoffice2003.spreadsheetml.ExcelNumberFormat Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com_hfg Show documentation
Show all versions of com_hfg Show documentation
com.hfg xml, html, svg, and bioinformatics utility library
package com.hfg.xml.msoffice2003.spreadsheetml;
//------------------------------------------------------------------------------
/**
Excel number format.
@author J. Alex Taylor, hairyfatguy.com
*/
//------------------------------------------------------------------------------
// com.hfg Library
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// J. Alex Taylor, President, Founder, CEO, COO, CFO, OOPS hairyfatguy.com
// [email protected]
//------------------------------------------------------------------------------
public class ExcelNumberFormat
{
public static final ExcelNumberFormat General = new ExcelNumberFormat("General");
public static final ExcelNumberFormat GeneralNumber = new ExcelNumberFormat("General Number");
public static final ExcelNumberFormat GeneralDate = new ExcelNumberFormat("General Date");
public static final ExcelNumberFormat LongDate = new ExcelNumberFormat("Long Date");
public static final ExcelNumberFormat MediumDate = new ExcelNumberFormat("Medium Date");
public static final ExcelNumberFormat ShortDate = new ExcelNumberFormat("Short Date");
public static final ExcelNumberFormat LongTime = new ExcelNumberFormat("Long Time");
public static final ExcelNumberFormat MediumTime = new ExcelNumberFormat("Medium Time");
public static final ExcelNumberFormat ShortTime = new ExcelNumberFormat("Short Time");
public static final ExcelNumberFormat Currency = new ExcelNumberFormat("Currency");
public static final ExcelNumberFormat EuroCurrency = new ExcelNumberFormat("Euro Currency");
public static final ExcelNumberFormat Fixed = new ExcelNumberFormat("Fixed");
public static final ExcelNumberFormat Standard = new ExcelNumberFormat("Standard");
public static final ExcelNumberFormat Percent = new ExcelNumberFormat("Percent");
public static final ExcelNumberFormat Scientific = new ExcelNumberFormat("Scientific");
public static final ExcelNumberFormat Yes_No = new ExcelNumberFormat("Yes/No");
public static final ExcelNumberFormat True_False = new ExcelNumberFormat("True/False");
public static final ExcelNumberFormat On_Off = new ExcelNumberFormat("On/Off");
private String mName;
//---------------------------------------------------------------------------
private ExcelNumberFormat(String inName)
{
mName = inName;
}
//---------------------------------------------------------------------------
public String toString()
{
return mName;
}
//---------------------------------------------------------------------------
public String name()
{
return toString();
}
}