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

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

public class DataEnumLoader
extends Object

Use mvel to load up map/list of valid items for fields - used by the Guided rule editor.


Constructor Summary
DataEnumLoader(String mvelSource)
          This is the source of the asset, which is an MVEL map (minus the outer "[") of course.
 
Method Summary
static String addCommasForNewLines(String mvelSource)
           
 Map<String,String[]> getData()
          Return the map of Fact.field to List (of Strings).
 List<String> getErrors()
          Return a list of any errors found.
 boolean hasErrors()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataEnumLoader

public DataEnumLoader(String mvelSource)
This is the source of the asset, which is an MVEL map (minus the outer "[") of course.

Method Detail

addCommasForNewLines

public static String addCommasForNewLines(String mvelSource)

getErrors

public List<String> getErrors()
Return a list of any errors found.


hasErrors

public boolean hasErrors()

getData

public Map<String,String[]> getData()
Return the map of Fact.field to List (of Strings).



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