|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IConverter
IConverter is the interface to an object that is able to convert data between a Java representation and a Brahms representation.
Method Summary | |
---|---|
java.lang.Object |
toBrahms(java.lang.Class<?> javaType,
java.lang.Object javaValue,
IType brahmsType,
ConversionContext ctx)
Converts the specified Java value into its matching Brahms value. |
java.lang.Object |
toJava(IType brahmsType,
java.lang.Object brahmsValue,
java.lang.Class<?> javaType,
ConversionContext ctx)
Converts the specified Brahms value into its matching Java value. |
Method Detail |
---|
java.lang.Object toJava(IType brahmsType, java.lang.Object brahmsValue, java.lang.Class<?> javaType, ConversionContext ctx) throws ExternalException
brahmsType
- the Brahms type of the valuebrahmsValue
- the Brahms value to convertjavaType
- the Java type to convert the value toctx
- the ConversionContext
ExternalException
- if there was a problem converting the valuejava.lang.Object toBrahms(java.lang.Class<?> javaType, java.lang.Object javaValue, IType brahmsType, ConversionContext ctx) throws ExternalException
javaType
- the java type of the valuejavaValue
- the java value to convertbrahmsType
- the Brahms type to convert the value toctx
- the ConversionContext
ExternalException
- if there was a problem converting the value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |