Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cocoon.forms.datatype.convertor
Class PlainIntegerConvertor

    java.lang.Object
      org.apache.cocoon.forms.datatype.convertor.PlainIntegerConvertor

All Implemented Interfaces:
  Convertor

public class PlainIntegerConvertor
extends Object
implements Convertor

Convertor for java.lang.Integers that does not do any (Locale-dependent) formatting. It simply uses String.valueOf() and Long.parseLong().

Version:
  $Id: PlainIntegerConvertor.java 587759 2007-10-24 03:00:37Z vgritsenko $

Nested Class Summary

Nested classes inherited from class org.apache.cocoon.forms.datatype.convertor.Convertor
`Convertor.FormatCache`

Constructor Summary
`PlainIntegerConvertor()`

Method Summary
`ConversionResult` | `convertFromString(String value, Locale locale, Convertor.FormatCache formatCache)` Converts string representation into the object of convertor's type.
`String` | `convertToString(Object value, Locale locale, Convertor.FormatCache formatCache)`
`void` | `generateSaxFragment(ContentHandler contentHandler, Locale locale)` Generates a bit of information about this convertor (optional).
`Class` | `getTypeClass()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### PlainIntegerConvertor

    public PlainIntegerConvertor()

Method Detail

### convertFromString

    public ConversionResult convertFromString(String value,
                                              Locale locale,
                                              Convertor.FormatCache formatCache)

  Description copied from interface: `Convertor`
  Converts string representation into the object of convertor's type.

  Specified by:
    `convertFromString` in interface `Convertor`
  Parameters:
    `formatCache` - can be null if not needed

### convertToString

    public String convertToString(Object value,
                                  Locale locale,
                                  Convertor.FormatCache formatCache)

  Specified by:
    `convertToString` in interface `Convertor`

### getTypeClass

    public Class getTypeClass()

  Specified by:
    `getTypeClass` in interface `Convertor`

### generateSaxFragment

    public void generateSaxFragment(ContentHandler contentHandler,
                                    Locale locale)
                             throws SAXException

  Description copied from interface: `Convertor`
  Generates a bit of information about this convertor (optional).

  Specified by:
    `generateSaxFragment` in interface `Convertor`
  Throws:
    `SAXException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.