use of org.opentosca.toscana.core.parse.converter.TypeWrapper in project TOSCAna by StuPro-TOSCAna.
the class BaseToscaElement method getThisAsSet.
protected <T> Set<T> getThisAsSet(Class<T> type) {
TypeWrapper factory = new TypeWrapper();
Collection<Entity> values = mappingEntity.getChildren();
Set<T> results = new HashSet<>();
for (Entity v : values) {
T result = factory.wrapEntity((MappingEntity) v, type);
results.add(result);
}
return results;
}
Aggregations