fixing issue

This commit is contained in:
luca.frosini 2023-10-27 18:15:38 +02:00
parent 0cc1ead630
commit 9eceb98059
1 changed files with 4 additions and 1 deletions

View File

@ -387,7 +387,8 @@ public class ResourceRegistryClientImpl extends BaseRequestInfo implements Resou
public <ERElem extends ERElement> List<Type> getTypeFromServer(Class<ERElem> clazz, Boolean polymorphic) public <ERElem extends ERElement> List<Type> getTypeFromServer(Class<ERElem> clazz, Boolean polymorphic)
throws SchemaNotFoundException, ResourceRegistryException { throws SchemaNotFoundException, ResourceRegistryException {
try { try {
String json = getTypeFromServer(TypeUtility.getTypeName(clazz), polymorphic); // String json = getTypeFromServer(TypeUtility.getTypeName(clazz), polymorphic);
String json = getType(TypeUtility.getTypeName(clazz), polymorphic);
return TypeMapper.deserializeTypeDefinitions(json); return TypeMapper.deserializeTypeDefinitions(json);
} catch(ResourceRegistryException e) { } catch(ResourceRegistryException e) {
throw e; throw e;
@ -406,8 +407,10 @@ public class ResourceRegistryClientImpl extends BaseRequestInfo implements Resou
Node<Type> node = typesKnowledge.getModelKnowledge().getNodeByName(typeName); Node<Type> node = typesKnowledge.getModelKnowledge().getNodeByName(typeName);
if(polymorphic) { if(polymorphic) {
// TODO // TODO
// Navigate the subtree
}else { }else {
// TODO // TODO
node.getNodeElement();
} }
return null; return null;
} catch(Exception e) { } catch(Exception e) {