use of org.drools.core.factmodel.traits.TraitFieldTMSImpl in project drools by kiegroup.
the class MapCore method _getFieldTMS.
public TraitFieldTMS _getFieldTMS() {
TraitFieldTMS tms = (TraitFieldTMS) _getDynamicProperties().get(FIELDTMS_FIELD_NAME);
if (tms == null) {
tms = new TraitFieldTMSImpl();
_getDynamicProperties().put(FIELDTMS_FIELD_NAME, tms);
}
return tms;
}
use of org.drools.core.factmodel.traits.TraitFieldTMSImpl in project drools by kiegroup.
the class Imp2 method init.
public void init() {
tms = new TraitFieldTMSImpl();
tms.registerField(Imp2.class, "name", String.class, this.getName(), "foo");
}
use of org.drools.core.factmodel.traits.TraitFieldTMSImpl in project drools by kiegroup.
the class TraitableMap method _getFieldTMS.
default TraitFieldTMS _getFieldTMS() {
TraitFieldTMS tms = (TraitFieldTMS) _getDynamicProperties().get(FIELDTMS_FIELD_NAME);
if (tms == null) {
tms = new TraitFieldTMSImpl();
_getDynamicProperties().put(FIELDTMS_FIELD_NAME, tms);
}
return tms;
}
Aggregations