TypeConvertor (Bean Scripting Framework API)
Keywords: org.apache.bsf.util.type.TypeConvertor interface

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.bsf.util.type
Interface TypeConvertor

public interface TypeConvertor

A TypeConvertor is used to convert an object of one type to one of another type. The convertor is invoked with the class of the from object, the desired class, and the from object itself. The convertor must return a new object of the desired class.

Author:
  Sanjiva Weerawarana
See Also:
  `TypeConvertorRegistry`

Method Summary
`java.lang.Object` | `convert(java.lang.Class from, java.lang.Class to, java.lang.Object obj)`
`java.lang.String` | `getCodeGenString()`

Method Detail

### convert

    public java.lang.Object convert(java.lang.Class from,
                                    java.lang.Class to,
                                    java.lang.Object obj)

### getCodeGenString

    public java.lang.String getCodeGenString()

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