ilog.rules.dvs.excel.migration

Interface IlrBOM2DVSConverter



  • public interface IlrBOM2DVSConverter
    Used to help the Excel 2003 scenario suite writer to translate the XOM objects into data written in the Excel scenario file. Prerequisites for this operation are:
    • Know the BOM serialization of the XOM.
    • Know the target data structure to generate for the Excel scenario file.
    Once you have the two representations in mind, read the BOM serialization passed as an XML tree and translate it into a data structure accepted by the writer:
    • Case 1: A primitive (or a string) value if the targeted cell is an inline cell.
    • Case 2: A Map from the attribute/value representation of the object where the value is another time either case 1 or 2.
    The IlrConversionContext object gives information about the translation context. The passed list of errors could be completed in case of a problem during the translation.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.lang.Object convert(org.w3c.dom.Element xmlTree, IlrBOMTypeDescriptor expectedBomType, IlrConversionContext context, java.util.List<IlrError> exceptionHandler)
      Used to customize the BOM XML translation into a Java Object instance.
    • Method Detail

      • convert

        java.lang.Object convert(org.w3c.dom.Element xmlTree,
                               IlrBOMTypeDescriptor expectedBomType,
                               IlrConversionContext context,
                               java.util.List<IlrError> exceptionHandler)
        Used to customize the BOM XML translation into a Java Object instance.
        Parameters:
        xmlTree - The XML structure of the BOM serialized element.
        expectedBomType - The expected BOM type descriptor helps you to know the attempted resulting data.
        context - The conversion context.
        exceptionHandler - Append error that occurs during the translation to this list.
        Returns:
        The resulting object.

© Copyright IBM Corp. 1987, 2017