use of com.developmentontheedge.beans.DynamicProperty in project be5 by DevelopmentOnTheEdge.
the class GDynamicPropertySetSupport method add.
public DynamicProperty add(String propertyName, @DelegatesTo(strategy = Closure.DELEGATE_FIRST, value = DPSAttributes.class) Closure cl) {
DPSAttributes builder = getBuilder(cl);
DynamicProperty property = new DynamicProperty(propertyName, builder.getTYPE());
add(property);
return DynamicPropertyMetaClass.leftShift(property, builder.getMap());
}
use of com.developmentontheedge.beans.DynamicProperty in project be5 by DevelopmentOnTheEdge.
the class TestOperation method getParameters.
@Override
public Object getParameters(Map<String, Object> presetValues) throws Exception {
DynamicPropertySet dps = new DynamicPropertySetSupport();
dps.add(new DynamicProperty("name", "Name", String.class, presetValues.getOrDefault("name", "")));
dps.add(new DynamicProperty("number", "Number", Long.class, presetValues.getOrDefault("number", "0")));
return dps;
}
Aggregations