Search in sources :

Example 11 with IEntityFactory

use of org.whole.lang.factories.IEntityFactory in project whole by wholeplatform.

the class BindingManagerFactory method createVariablesViewModel.

public IEntity createVariablesViewModel(IBindingManager bm, Set<String> includeNames) {
    IEntityFactory ef = GenericEntityFactory.instance;
    IEntity environments = ef.create(getEdEnum().valueOf("Environments"));
    environments.wAdd(createEnvironment(bm, "env", includeNames, createFlatBindingsModel(bm)));
    return ef.create(getEdEnum().valueOf("VariablesViewModel"), ef.create(getEdEnum().valueOf("EnvironmentManager"), (Object) bm.wGetEnvironmentManager()), environments);
}
Also used : IEntity(org.whole.lang.model.IEntity) IEntityFactory(org.whole.lang.factories.IEntityFactory)

Aggregations

IEntityFactory (org.whole.lang.factories.IEntityFactory)11 IEntity (org.whole.lang.model.IEntity)10 FeatureDescriptor (org.whole.lang.reflect.FeatureDescriptor)3 TreeSet (java.util.TreeSet)2 Test (org.junit.Test)2 IOException (java.io.IOException)1 Map (java.util.Map)1 TreeMap (java.util.TreeMap)1 ITransactionScope (org.whole.lang.bindings.ITransactionScope)1 CommonsFeatureDescriptorEnum (org.whole.lang.commons.reflect.CommonsFeatureDescriptorEnum)1 IWholeRuntimeException (org.whole.lang.exceptions.IWholeRuntimeException)1 WholeIllegalArgumentException (org.whole.lang.exceptions.WholeIllegalArgumentException)1 IEntityRegistryProvider (org.whole.lang.factories.IEntityRegistryProvider)1 Pair (org.whole.lang.json.model.Pair)1 Value (org.whole.lang.json.model.Value)1 ParseException (org.whole.lang.parsers.ParseException)1 FeatureDescriptorEnum (org.whole.lang.reflect.FeatureDescriptorEnum)1 MissingVariableException (org.whole.lang.visitors.MissingVariableException)1 VisitException (org.whole.lang.visitors.VisitException)1 Arguments (org.whole.lang.workflows.model.Arguments)1