com.guiseframework.converter
Interface NumberStringLiteralConverter<V extends java.lang.Number>

Type Parameters:
V - The value type this converter supports.
All Superinterfaces:
Converter<V,java.lang.String>, com.globalmentor.beans.PropertyBindable
All Known Implementing Classes:
AbstractNumberStringLiteralConverter, DoubleStringLiteralConverter, FloatStringLiteralConverter, IntegerStringLiteralConverter, LongStringLiteralConverter

public interface NumberStringLiteralConverter<V extends java.lang.Number>
extends Converter<V,java.lang.String>

Indicates an object that can convert a number from and to a string. This converter supports different representations, including number, currency, percent, and integer. If the currency style is chosen, care should be taken to indicate a specific constant currency unless it is desired that the currency type change whenever the locale changes.

Author:
Garret Wilson
See Also:
http://support.worldpay.com/kb/integration_guides/pro/help/spig12300.html

Nested Class Summary
static class NumberStringLiteralConverter.Style
          The style of the number in its literal form.
 
Field Summary
static java.util.Currency EUR_CURRENCY
          Euro currency.
static java.util.Currency USD_CURRENCY
          United States Dollar currency.
 
Fields inherited from interface com.guiseframework.converter.Converter
INVALID_VALUE_MESSAGE_PROPERTY
 
Method Summary
 
Methods inherited from interface com.guiseframework.converter.Converter
convertLiteral, convertValue, getInvalidValueMessage, getSession, isEquivalent, isValidLiteral, setInvalidValueMessage
 
Methods inherited from interface com.globalmentor.beans.PropertyBindable
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, hasPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
 

Field Detail

USD_CURRENCY

static final java.util.Currency USD_CURRENCY
United States Dollar currency.


EUR_CURRENCY

static final java.util.Currency EUR_CURRENCY
Euro currency.



Copyright © 2005-2010 GlobalMentor, Inc. All Rights Reserved.