Search in sources :

Example 1 with ModelEvent

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;
}
Also used : ModelEvent(org.eclipse.vorto.repository.api.content.ModelEvent)

Aggregations

ModelEvent (org.eclipse.vorto.repository.api.content.ModelEvent)1