|
ILOG JRules | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.rules.ras.tools.IlrBindingTool
public class IlrBindingTool
The IlrBindingTool class can be used to perform quick to and from
databinding operations without having to pass by the IlrDataBinding class.
Simply create an instance of the binding class and then use the to or
from binding API methods to perform your binding operations.
For example:
Creating an Excel file from an IlrScenarioReport instance:
IlrExcelDataReportImpl excel = new IlrExcelDataReportImpl();
byte[] data = IlrBindingTool.fromBinding(excel, report);
Creating an IlrScenarioReport instance from an Excel file:
IlrXMLDataReportImpl binding = new IlrXMLDataReportImpl();
IlrScenarioTestResult tr = (IlrScenarioTestResult)toBinding(binding, bytes);
| Constructor Summary | |
|---|---|
IlrBindingTool()
|
|
| Method Summary | |
|---|---|
static Object |
fromBinding(IlrDataBindingBaseImpl binding,
byte[] data)
Converts data from a databinding format to an object. |
static byte[] |
fromBinding(IlrDataBindingBaseImpl binding,
Object o)
Deprecated. Use toBinding. |
protected static IlrResourceResolver |
resolver()
|
static Object |
toBinding(IlrDataBindingBaseImpl binding,
byte[] data)
Deprecated. Use fromBinding. |
static byte[] |
toBinding(IlrDataBindingBaseImpl binding,
Object o)
Converts an object that supports databinding to the data format of that binding. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlrBindingTool()
| Method Detail |
|---|
public static byte[] fromBinding(IlrDataBindingBaseImpl binding,
Object o)
toBinding.
binding - The databinding to use.o - The object to pass to the databinding for conversion.
public static byte[] toBinding(IlrDataBindingBaseImpl binding,
Object o)
throws Exception
Exceptionbinding - The databinding to use.o - The object to pass to the databinding for conversion.
public static Object toBinding(IlrDataBindingBaseImpl binding,
byte[] data)
throws Exception
fromBinding.
Exceptionbinding - The databinding to use.data - A byte array to convert.
public static Object fromBinding(IlrDataBindingBaseImpl binding,
byte[] data)
throws Exception
Exceptionbinding - The databinding to use.data - A byte array to convert.
protected static IlrResourceResolver resolver()
|
ILOG JRules | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||