use of org.whole.lang.model.IFragmentModel in project whole by wholeplatform.
the class AbstractFragment method wSetChildrenModel.
protected void wSetChildrenModel(IFragmentModel model) {
IFragmentModel newModel = (IFragmentModel) model.clone();
newModel.setFragment(this);
((InternalIEntity) rootEntity).wSetModel(newModel);
}
use of org.whole.lang.model.IFragmentModel in project whole by wholeplatform.
the class ReflectionFactory method makeRootEntity.
public static <E extends IEntity> E makeRootEntity(E entity, IFragmentModel parentFragmentModel) {
IFragmentModel fragmentModel = getLanguageKit(entity).createFragmentModel();
if (parentFragmentModel != NullFragmentModel.instance)
fragmentModel.setCompoundModel(parentFragmentModel.getCompoundModel());
((InternalIEntity) entity).wSetModel(fragmentModel);
return entity;
}
Aggregations