|
SalesPoint v3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object data.AbstractNameable data.ooimpl.CatalogItemImpl data.ooimpl.CatalogImpl<CurrencyItemImpl> data.ooimpl.CurrencyImpl
public class CurrencyImpl
Pure Java implementation of the Currency
interface.
Field Summary | |
---|---|
static String |
DM_SCHEIN_10
Field string represents the mainkey for an added CurrencyItemImpl . |
static String |
DM_SCHEIN_100
Field string represents the mainkey for an added CurrencyItemImpl . |
static String |
DM_SCHEIN_1000
Field string represents the mainkey for an added CurrencyItemImpl . |
static String |
DM_SCHEIN_20
Field string represents the mainkey for an added CurrencyItemImpl . |
static String |
DM_SCHEIN_200
Field string represents the mainkey for an added CurrencyItemImpl . |
static String |
DM_SCHEIN_5
Field string represents the mainkey for an added CurrencyItemImpl . |
static String |
DM_SCHEIN_50
Field string represents the mainkey for an added CurrencyItemImpl . |
static String |
DM_SCHEIN_500
Field string represents the mainkey for an added CurrencyItemImpl . |
static String |
DM_STCK_1
Field string represents the mainkey for an added CurrencyItemImpl . |
static String |
DM_STCK_10
Field string represents the mainkey for an added CurrencyItemImpl . |
static String |
DM_STCK_2
Field string represents the mainkey for an added CurrencyItemImpl . |
static String |
DM_STCK_5
Field string represents the mainkey for an added CurrencyItemImpl . |
static String |
PFENNIG_STCK_1
Field string represents the mainkey for an added CurrencyItemImpl . |
static String |
PFENNIG_STCK_10
Field string represents the mainkey for an added CurrencyItemImpl . |
static String |
PFENNIG_STCK_2
Field string represents the mainkey for an added CurrencyItemImpl . |
static String |
PFENNIG_STCK_5
Field string represents the mainkey for an added CurrencyItemImpl . |
static String |
PFENNIG_STCK_50
Field string represents the mainkey for an added CurrencyItemImpl . |
Fields inherited from class data.ooimpl.CatalogImpl |
---|
m_lhListeners, m_nModCount |
Fields inherited from class data.AbstractNameable |
---|
m_ncContext, m_pcsPropertyListeners |
Fields inherited from interface data.CatalogItem |
---|
VALUE_PROPERTY |
Fields inherited from interface data.Nameable |
---|
NAME_PROPERTY |
Fields inherited from interface data.DataBasketKeys |
---|
CATALOG_ITEM_MAIN_KEY, STOCK_ITEM_MAIN_KEY |
Constructor Summary | |
---|---|
CurrencyImpl(String sName)
Create a new CurrencyImpl with a default locale of Locale.GERMANY and fill it. |
|
CurrencyImpl(String sName,
Locale l)
Create a new, initially empty CurrencyImpl for the given locale. |
Method Summary | |
---|---|
NumberValue |
parse(String s)
Try to parse the given String as a currency value in the currency's associated format. |
String |
toString(NumberValue nv)
Return a String representation of the given NumberValue assuming it is a value given in the smallest unit of this currency. |
Methods inherited from class data.ooimpl.CatalogItemImpl |
---|
addValueListener, compareTo, equals, getCatalog, getInternalShallowClone, getValue, isEditable, removeValueListener, setValue |
Methods inherited from class data.AbstractNameable |
---|
addNameListener, addPropertyChangeListener, attach, detachNC, getName, removeNameListener, removePropertyChangeListener, setName |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface data.Catalog |
---|
add, contains, get, iterator, keySet, remove, remove, size |
Methods inherited from interface data.CatalogItem |
---|
addValueListener, getCatalog, getValue, removeValueListener |
Methods inherited from interface data.Nameable |
---|
addNameListener, addPropertyChangeListener, attach, detachNC, getName, removeNameListener, removePropertyChangeListener, setName |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Field Detail |
---|
public static String PFENNIG_STCK_1
CurrencyItemImpl
.
1-Pfennig-Stueck
public static String PFENNIG_STCK_2
CurrencyItemImpl
.
2-Pfennig-Stueck
public static String PFENNIG_STCK_5
CurrencyItemImpl
.
5-Pfennig-Stueck
public static String PFENNIG_STCK_10
CurrencyItemImpl
.
10-Pfennig-Stueck
public static String PFENNIG_STCK_50
CurrencyItemImpl
.
50-Pfennig-Stueck
public static String DM_STCK_1
CurrencyItemImpl
.
1-Mark-Stueck
public static String DM_STCK_2
CurrencyItemImpl
.
2-Mark-Stueck
public static String DM_STCK_5
CurrencyItemImpl
.
5-Mark-Stueck
public static String DM_SCHEIN_5
CurrencyItemImpl
.
5-Mark-Schein
public static String DM_STCK_10
CurrencyItemImpl
.
10-Mark-Stueck
public static String DM_SCHEIN_10
CurrencyItemImpl
.
10-Mark-Schein
public static String DM_SCHEIN_20
CurrencyItemImpl
.
20-Mark-Schein
public static String DM_SCHEIN_50
CurrencyItemImpl
.
50-Mark-Schein
public static String DM_SCHEIN_100
CurrencyItemImpl
.
100-Mark-Schein
public static String DM_SCHEIN_200
CurrencyItemImpl
.
200-Mark-Schein
public static String DM_SCHEIN_500
CurrencyItemImpl
.
500-Mark-Schein
public static String DM_SCHEIN_1000
CurrencyItemImpl
.
1000-Mark-Schein
Constructor Detail |
---|
public CurrencyImpl(String sName, Locale l)
sName
- the name of the currency to create.l
- the locale that determines how currency values will be formatted.public CurrencyImpl(String sName)
Locale.GERMANY
and fill it.
The currency will already contain all denominations that are available in the DEM currency.
sName
- the name of the new currency.Method Detail |
---|
public String toString(NumberValue nv)
toString
in interface Currency<CurrencyItemImpl>
nv
- the value to be rendered.
public NumberValue parse(String s) throws ParseException
parse
in interface Currency<CurrencyItemImpl>
s
- the text to be parsed.
ParseException
- if the given String could not be interpreted as a currency value.
|
SalesPoint v3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |