public class SubObjectConverter extends java.lang.Object implements ISubObjectConverter
Modifier and Type | Field and Description |
---|---|
protected IObjectObjectConverter |
rconv
The object object read converter.
|
protected IObjectObjectConverter |
wconv
The object object write converter.
|
Constructor and Description |
---|
SubObjectConverter(IObjectObjectConverter rconv,
IObjectObjectConverter wconv)
Create a new attribute converter.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
convertObjectForRead(java.lang.Object val,
IContext context)
Convert an object to another object.
|
java.lang.Object |
convertObjectForWrite(java.lang.Object val,
IContext context)
Convert an object to another object.
|
protected IObjectObjectConverter rconv
protected IObjectObjectConverter wconv
public SubObjectConverter(IObjectObjectConverter rconv, IObjectObjectConverter wconv)
public java.lang.Object convertObjectForRead(java.lang.Object val, IContext context) throws java.lang.Exception
convertObjectForRead
in interface ISubObjectConverter
val
- The value to convert.java.lang.Exception
public java.lang.Object convertObjectForWrite(java.lang.Object val, IContext context) throws java.lang.Exception
convertObjectForWrite
in interface ISubObjectConverter
val
- The value to convert.java.lang.Exception