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

## org.jboss.portal.common.value
Interface Converter

    public interface Converter

Version:
  $Revision: 7200 $
Author:
  Julien Viet

Method Summary
`boolean` | `accept(java.lang.Class clazz)` Return true if the converter accepts the class for conversion.
`java.lang.Object` | `toObject(java.lang.String value)` String to object conversion.
`java.lang.String` | `toString(java.lang.Object value)` Convert the object to the stored value.

Method Detail

### accept

    boolean accept(java.lang.Class clazz)

  Return true if the converter accepts the class for conversion.

  Throws:
    `java.lang.IllegalArgumentException` - if the class object is null

### toObject

    java.lang.Object toObject(java.lang.String value)
                              throws NullConversionException,
                                     FormatConversionException

  String to object conversion.

  Throws:
    `NullConversionException` - if the value nullity prevent the conversion
    `FormatConversionException` - if the value cannot be converted

### toString

    java.lang.String toString(java.lang.Object value)
                              throws NullConversionException,
                                     FormatConversionException

  Convert the object to the stored value.

  Throws:
    `NullConversionException` - if the value nullity prevent the conversion
    `FormatConversionException` - if the value cannot be converted

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