org.drools.ide.common.server.util.upgrade
Class GuidedDecisionTableModelUpgradeHelper

java.lang.Object
  extended by org.drools.ide.common.server.util.upgrade.GuidedDecisionTableModelUpgradeHelper
All Implemented Interfaces:
IUpgradeHelper<GuidedDecisionTable52,GuidedDecisionTable>

public class GuidedDecisionTableModelUpgradeHelper
extends Object
implements IUpgradeHelper<GuidedDecisionTable52,GuidedDecisionTable>

Helper class to upgrade model used for Guided Decision Table


Constructor Summary
GuidedDecisionTableModelUpgradeHelper()
           
 
Method Summary
 List<List<DTCellValue52>> makeDataLists(String[][] oldData)
          Convert a two-dimensional array of Strings to a List of Lists, with type-safe individual entries
 List<DTCellValue52> makeDataRowList(String[] oldRow)
          Convert a single dimension array of Strings to a List with type-safe entries.
 GuidedDecisionTable52 upgrade(GuidedDecisionTable legacyDTModel)
          Convert the legacy Decision Table model to the new
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuidedDecisionTableModelUpgradeHelper

public GuidedDecisionTableModelUpgradeHelper()
Method Detail

upgrade

public GuidedDecisionTable52 upgrade(GuidedDecisionTable legacyDTModel)
Convert the legacy Decision Table model to the new

Specified by:
upgrade in interface IUpgradeHelper<GuidedDecisionTable52,GuidedDecisionTable>
Parameters:
legacyDTModel -
Returns:
The new DTModel

makeDataLists

public List<List<DTCellValue52>> makeDataLists(String[][] oldData)
Convert a two-dimensional array of Strings to a List of Lists, with type-safe individual entries

Parameters:
oldData -
Returns:
New data

makeDataRowList

public List<DTCellValue52> makeDataRowList(String[] oldRow)
Convert a single dimension array of Strings to a List with type-safe entries. The first entry is converted into a numerical row number

Parameters:
oldRow -
Returns:
New row


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.