org.drools.ide.common.server.util
Class RepositoryUpgradeHelper

java.lang.Object
  extended by org.drools.ide.common.server.util.RepositoryUpgradeHelper

public class RepositoryUpgradeHelper
extends Object

Helper class to upgrade model used for Guided Decision Table


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

Constructor Detail

RepositoryUpgradeHelper

public RepositoryUpgradeHelper()
Method Detail

convertGuidedDTModel

public static TypeSafeGuidedDecisionTable convertGuidedDTModel(GuidedDecisionTable legacyDTModel)
Convert the legacy Decision Table model to the new

Parameters:
legacyDTModel -
Returns:
The new DTModel

makeDataLists

public static List<List<DTCellValue>> 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 static List<DTCellValue> 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-2011 JBoss Inc.. All Rights Reserved.