Search in sources :

Example 1 with TraitFieldTMSImpl

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;
}
Also used : TraitFieldTMSImpl(org.drools.core.factmodel.traits.TraitFieldTMSImpl) TraitFieldTMS(org.drools.core.factmodel.traits.TraitFieldTMS)

Example 2 with TraitFieldTMSImpl

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");
}
Also used : TraitFieldTMSImpl(org.drools.core.factmodel.traits.TraitFieldTMSImpl)

Example 3 with TraitFieldTMSImpl

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;
}
Also used : TraitFieldTMSImpl(org.drools.core.factmodel.traits.TraitFieldTMSImpl) TraitFieldTMS(org.drools.core.factmodel.traits.TraitFieldTMS)

Aggregations

TraitFieldTMSImpl (org.drools.core.factmodel.traits.TraitFieldTMSImpl)3 TraitFieldTMS (org.drools.core.factmodel.traits.TraitFieldTMS)2