org.apache.cocoon.woody.datatype.convertor
Class FormattingLongConvertor
java.lang.Object
org.apache.cocoon.woody.datatype.convertor.FormattingDecimalConvertor
org.apache.cocoon.woody.datatype.convertor.FormattingLongConvertor
- All Implemented Interfaces:
- Convertor
public class FormattingLongConvertor
- extends FormattingDecimalConvertor
A Convertor for Long
s backed by the
DecimalFormat
class.
This class is mostly the same as the FormattingDecimalConvertor
,
so see there for more information.
- Version:
- CVS $Id: FormattingLongConvertor.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FormattingLongConvertor
public FormattingLongConvertor()
convertFromString
public Object convertFromString(String value,
Locale locale,
Convertor.FormatCache formatCache)
- Description copied from interface:
Convertor
- Converts string representation into the object of convertor's type.
Returns null if conversion fails.
- Specified by:
convertFromString
in interface Convertor
- Overrides:
convertFromString
in class FormattingDecimalConvertor
formatCache
- can be null if not needed
getDefaultVariant
protected int getDefaultVariant()
- Overrides:
getDefaultVariant
in class FormattingDecimalConvertor
getTypeClass
public Class getTypeClass()
- Specified by:
getTypeClass
in interface Convertor
- Overrides:
getTypeClass
in class FormattingDecimalConvertor
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.