org.salespointframework.core.data
Class EUROCurrencyImpl

java.lang.Object
  extended by org.salespointframework.core.data.AbstractNameable
      extended by org.salespointframework.core.data.CatalogItemImpl
          extended by org.salespointframework.core.data.CatalogImpl<CurrencyItemImpl>
              extended by org.salespointframework.core.data.AbstractCurrency
                  extended by org.salespointframework.core.data.EUROCurrencyImpl
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable<java.lang.Object>, java.lang.Iterable<CurrencyItemImpl>, Recoverable, DatasourceChangeListener, ExternalModificationListener, Catalog<CurrencyItemImpl>, CatalogItem, Currency<CurrencyItemImpl>, DataBasketEntryDestination, DataBasketEntrySource, DataBasketKeys, ListenableCatalog<CurrencyItemImpl>, Nameable, NameContext, SpAggregate, SpItem, SelfManagingDBEDestination<CurrencyItemImpl>, SelfManagingDBESource<CurrencyItemImpl>

public class EUROCurrencyImpl
extends AbstractCurrency

EURO-Implementation of AbstractCurrency

Version:
3.0
Author:
Thomas Medack

Nested Class Summary
 
Nested classes/interfaces inherited from class org.salespointframework.core.data.AbstractCurrency
AbstractCurrency.CurrencyItemData
 
Field Summary
static java.lang.String ABBREVIATION
           
static java.lang.String CENT_COIN_1
          Field string represents the mainkey for an added CurrencyItemImpl.
static java.lang.String CENT_COIN_10
          Field string represents the mainkey for an added CurrencyItemImpl.
static java.lang.String CENT_COIN_2
          Field string represents the mainkey for an added CurrencyItemImpl.
static java.lang.String CENT_COIN_20
          Field string represents the mainkey for an added CurrencyItemImpl.
static java.lang.String CENT_COIN_5
          Field string represents the mainkey for an added CurrencyItemImpl.
static java.lang.String CENT_COIN_50
          Field string represents the mainkey for an added CurrencyItemImpl.
static java.lang.String EURO_COIN_1
          Field string represents the mainkey for an added CurrencyItemImpl.
static java.lang.String EURO_COIN_2
          Field string represents the mainkey for an added CurrencyItemImpl.
static java.lang.String EURO_NOTE_10
          Field string represents the mainkey for an added CurrencyItemImpl.
static java.lang.String EURO_NOTE_100
          Field string represents the mainkey for an added CurrencyItemImpl.
static java.lang.String EURO_NOTE_20
          Field string represents the mainkey for an added CurrencyItemImpl.
static java.lang.String EURO_NOTE_200
          Field string represents the mainkey for an added CurrencyItemImpl.
static java.lang.String EURO_NOTE_5
          Field string represents the mainkey for an added CurrencyItemImpl.
static java.lang.String EURO_NOTE_50
          Field string represents the mainkey for an added CurrencyItemImpl.
static java.lang.String EURO_NOTE_500
          Field string represents the mainkey for an added CurrencyItemImpl.
 
Fields inherited from class org.salespointframework.core.data.CatalogImpl
m_lhListeners, m_nModCount
 
Fields inherited from class org.salespointframework.core.data.AbstractNameable
m_ncContext, m_pcsPropertyListeners, SOME_PROPERTY
 
Fields inherited from interface org.salespointframework.core.data.interfaces.CatalogItem
VALUE_PROPERTY
 
Fields inherited from interface org.salespointframework.core.data.interfaces.Nameable
NAME_PROPERTY
 
Fields inherited from interface org.salespointframework.core.data.interfaces.DataBasketKeys
CATALOG_ITEM_MAIN_KEY, STOCK_ITEM_MAIN_KEY
 
Constructor Summary
EUROCurrencyImpl(CatalogIdentifier<?> id)
          Creates a new instance of EUROCurrencyImpl
EUROCurrencyImpl(java.lang.String name)
          Creates a new instance of EUROCurrencyImpl
EUROCurrencyImpl(java.lang.String name, java.util.Locale locale)
          Creates a new instance of EUROCurrencyImpl
 
Method Summary
protected  AbstractCurrency.CurrencyItemData[] getCurrencyItemData()
          This abstract method allows the programmer to choose the names and values of the CurrencyItems (EURO, DM, ...).
 
Methods inherited from class org.salespointframework.core.data.AbstractCurrency
format, initCurrencyItems, parse, toString
 
Methods inherited from class org.salespointframework.core.data.CatalogImpl
add, addCatalogChangeListener, checkNameChange, commitAdd, commitRemove, contains, createPeer, DatasourceChanged, externalModificationOccurred, fireCanEditCatalogItem, fireCanRemoveCatalogItem, fireCatalogItemAddCommit, fireCatalogItemAdded, fireCatalogItemAddRollback, fireCatalogItemDataChanged, fireCatalogItemRemoveCommit, fireCatalogItemRemoved, fireCatalogItemRemoveRollback, fireCommitEditCatalogItem, fireEditingCatalogItem, fireRollbackEditCatalogItem, get, getEditableCopy, getEditingItemsContainer, getItemsContainer, getItemsLock, getNCMonitor, getShallowClone, getTemporaryAddedItemsContainer, getTemporaryRemovedItemsContainer, isPersistent, iterator, iterator, keySet, nameHasChanged, remove, remove, removeCatalogChangeListener, rollbackAdd, rollbackRemove, setCatalog, size, toString
 
Methods inherited from class org.salespointframework.core.data.CatalogItemImpl
addValueListener, compareTo, equals, firePropertyChanged, getCatalog, getImage, getImageBytes, getInternalShallowClone, getValue, isEditable, recover, removeValueListener, setImage, setImageBytes, setValue
 
Methods inherited from class org.salespointframework.core.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 org.salespointframework.core.data.interfaces.Catalog
add, contains, get, iterator, keySet, remove, remove, size
 
Methods inherited from interface org.salespointframework.core.data.interfaces.CatalogItem
addValueListener, firePropertyChanged, getCatalog, getImage, getValue, removeValueListener, setImage
 
Methods inherited from interface org.salespointframework.core.data.interfaces.Nameable
addNameListener, addPropertyChangeListener, attach, detachNC, getName, removeNameListener, removePropertyChangeListener, setName
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface org.salespointframework.core.data.interfaces.SpItem
getName
 
Methods inherited from interface org.salespointframework.core.data.events.DatasourceChangeListener
DatasourceChanged
 
Methods inherited from interface org.salespointframework.core.data.events.ExternalModificationListener
externalModificationOccurred
 
Methods inherited from interface java.lang.Iterable
iterator
 

Field Detail

ABBREVIATION

public static final java.lang.String ABBREVIATION
See Also:
Constant Field Values

CENT_COIN_1

public static java.lang.String CENT_COIN_1
Field string represents the mainkey for an added CurrencyItemImpl.

1 Cent Coin


CENT_COIN_2

public static java.lang.String CENT_COIN_2
Field string represents the mainkey for an added CurrencyItemImpl.

2 Cent Coin


CENT_COIN_5

public static java.lang.String CENT_COIN_5
Field string represents the mainkey for an added CurrencyItemImpl.

5 Cent Coin


CENT_COIN_10

public static java.lang.String CENT_COIN_10
Field string represents the mainkey for an added CurrencyItemImpl.

10 Cent Coin


CENT_COIN_20

public static java.lang.String CENT_COIN_20
Field string represents the mainkey for an added CurrencyItemImpl.

20 Cent Coin


CENT_COIN_50

public static java.lang.String CENT_COIN_50
Field string represents the mainkey for an added CurrencyItemImpl.

50 Cent Coin


EURO_COIN_1

public static java.lang.String EURO_COIN_1
Field string represents the mainkey for an added CurrencyItemImpl.

1 EURO Coin


EURO_COIN_2

public static java.lang.String EURO_COIN_2
Field string represents the mainkey for an added CurrencyItemImpl.

2 EURO Coin


EURO_NOTE_5

public static java.lang.String EURO_NOTE_5
Field string represents the mainkey for an added CurrencyItemImpl.

5 EURO Note


EURO_NOTE_10

public static java.lang.String EURO_NOTE_10
Field string represents the mainkey for an added CurrencyItemImpl.

10 EURO Note


EURO_NOTE_20

public static java.lang.String EURO_NOTE_20
Field string represents the mainkey for an added CurrencyItemImpl.

20 EURO Note


EURO_NOTE_50

public static java.lang.String EURO_NOTE_50
Field string represents the mainkey for an added CurrencyItemImpl.

50 EURO Note


EURO_NOTE_100

public static java.lang.String EURO_NOTE_100
Field string represents the mainkey for an added CurrencyItemImpl.

100 EURO Note


EURO_NOTE_200

public static java.lang.String EURO_NOTE_200
Field string represents the mainkey for an added CurrencyItemImpl.

200 EURO Note


EURO_NOTE_500

public static java.lang.String EURO_NOTE_500
Field string represents the mainkey for an added CurrencyItemImpl.

500 EURO Note

Constructor Detail

EUROCurrencyImpl

public EUROCurrencyImpl(java.lang.String name)
Creates a new instance of EUROCurrencyImpl


EUROCurrencyImpl

public EUROCurrencyImpl(java.lang.String name,
                        java.util.Locale locale)
Creates a new instance of EUROCurrencyImpl


EUROCurrencyImpl

public EUROCurrencyImpl(CatalogIdentifier<?> id)
Creates a new instance of EUROCurrencyImpl

Method Detail

getCurrencyItemData

protected AbstractCurrency.CurrencyItemData[] getCurrencyItemData()
This abstract method allows the programmer to choose the names and values of the CurrencyItems (EURO, DM, ...). A complete list of data containers, which always contain pairs of name and value, has to be returned. The single CurrencyItems can be found in the Catalog (Currency) with those names.

Specified by:
getCurrencyItemData in class AbstractCurrency
Returns:
an Array of data containers that contain names and values of CurrencyItems to be added.