use of org.eclipse.vorto.repository.api.content.ModelEvent in project vorto by eclipse.
the class ModelDtoFactory method createEvent.
private static ModelEvent createEvent(Event event, Optional<MappingModel> mappingModel) {
ModelEvent modelEvent = new ModelEvent();
modelEvent.setName(event.getName());
modelEvent.setProperties(event.getProperties().stream().map(p -> createProperty(p, mappingModel)).collect(Collectors.toList()));
return modelEvent;
}
Aggregations