org.drools.brms.server.util
Class DataEnumLoader

java.lang.Object
  extended by org.drools.brms.server.util.DataEnumLoader

public class DataEnumLoader
extends java.lang.Object

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


Constructor Summary
DataEnumLoader(java.lang.String mvelSource)
          This is the source of the asset, which is an MVEL map (minus the outer "[") of course.
 
Method Summary
static java.lang.String addCommasForNewLines(java.lang.String mvelSource)
           
 java.util.Map getData()
          Return the map of Fact.field to List (of Strings).
 java.util.List 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(java.lang.String mvelSource)
This is the source of the asset, which is an MVEL map (minus the outer "[") of course.

Method Detail

addCommasForNewLines

public static java.lang.String addCommasForNewLines(java.lang.String mvelSource)

getErrors

public java.util.List getErrors()
Return a list of any errors found.


hasErrors

public boolean hasErrors()

getData

public java.util.Map getData()
Return the map of Fact.field to List (of Strings).