Package jadex.xml
Class SubObjectConverter
- java.lang.Object
-
- jadex.xml.SubObjectConverter
-
- All Implemented Interfaces:
ISubObjectConverter
public class SubObjectConverter extends java.lang.Object implements ISubObjectConverter
Converter for subobjects. Consist of two object-object converter. The first for reading the second for writing.
-
-
Field Summary
Fields Modifier and Type Field Description protected IObjectObjectConverter
rconv
The object object read converter.protected IObjectObjectConverter
wconv
The object object write converter.
-
Constructor Summary
Constructors Constructor Description SubObjectConverter(IObjectObjectConverter rconv, IObjectObjectConverter wconv)
Create a new attribute converter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
rconv
protected IObjectObjectConverter rconv
The object object read converter.
-
wconv
protected IObjectObjectConverter wconv
The object object write converter.
-
-
Constructor Detail
-
SubObjectConverter
public SubObjectConverter(IObjectObjectConverter rconv, IObjectObjectConverter wconv)
Create a new attribute converter.
-
-
Method Detail
-
convertObjectForRead
public java.lang.Object convertObjectForRead(java.lang.Object val, IContext context) throws java.lang.Exception
Convert an object to another object.- Specified by:
convertObjectForRead
in interfaceISubObjectConverter
- Parameters:
val
- The value to convert.- Throws:
java.lang.Exception
-
convertObjectForWrite
public java.lang.Object convertObjectForWrite(java.lang.Object val, IContext context) throws java.lang.Exception
Convert an object to another object.- Specified by:
convertObjectForWrite
in interfaceISubObjectConverter
- Parameters:
val
- The value to convert.- Throws:
java.lang.Exception
-
-