use of org.whole.lang.tests.model.HasKind in project whole by wholeplatform.
the class HasKindPart method getModelSpecificChildren.
protected List<IEntity> getModelSpecificChildren() {
HasKind entity = getModelEntity();
List<IEntity> list = new ArrayList<IEntity>(1);
list.add(entity.getKind());
return list;
}
use of org.whole.lang.tests.model.HasKind in project whole by wholeplatform.
the class TestsLearningInterpreterVisitor method visit.
@Override
public void visit(HasKind entity) {
Kind kind = entity.getKind();
if (isLearning() && EntityUtils.isResolver(kind)) {
EntityKinds entityKind = getBindings().wGet("evaluatedSubject").wGetEntityKind();
Value entityKindValue = KindEnum.instance.valueOf(entityKind.name());
Kind learntKind = TestsEntityFactory.instance.createKind(entityKindValue);
putLearntEntity(kind, learntKind);
setResultVisitor(GenericTraversalFactory.instance.identity());
} else
super.visit(entity);
}