Search in sources :

Example 1 with FunctionblockMappingSerializer

use of org.eclipse.vorto.service.mapping.internal.serializer.FunctionblockMappingSerializer in project vorto by eclipse.

the class MappingSpecificationSerializer method iterator.

public Iterator<IMappingSerializer> iterator() {
    List<IMappingSerializer> serializers = new ArrayList<IMappingSerializer>();
    for (ModelProperty fbProperty : specification.getInfoModel().getFunctionblocks()) {
        serializers.add(new FunctionblockMappingSerializer(specification, fbProperty.getName()));
    }
    serializers.add(new InformationModelMappingSerializer(specification));
    return serializers.iterator();
}
Also used : ArrayList(java.util.ArrayList) ModelProperty(org.eclipse.vorto.repository.api.content.ModelProperty) InformationModelMappingSerializer(org.eclipse.vorto.service.mapping.internal.serializer.InformationModelMappingSerializer) FunctionblockMappingSerializer(org.eclipse.vorto.service.mapping.internal.serializer.FunctionblockMappingSerializer)

Aggregations

ArrayList (java.util.ArrayList)1 ModelProperty (org.eclipse.vorto.repository.api.content.ModelProperty)1 FunctionblockMappingSerializer (org.eclipse.vorto.service.mapping.internal.serializer.FunctionblockMappingSerializer)1 InformationModelMappingSerializer (org.eclipse.vorto.service.mapping.internal.serializer.InformationModelMappingSerializer)1