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)
throws SchemaNotFoundException, ResourceRegistryException {
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);
} catch(ResourceRegistryException e) {
throw e;
@ -406,8 +407,10 @@ public class ResourceRegistryClientImpl extends BaseRequestInfo implements Resou
Node<Type> node = typesKnowledge.getModelKnowledge().getNodeByName(typeName);
if(polymorphic) {
// TODO
// Navigate the subtree
}else {
// TODO
node.getNodeElement();
}
return null;
} catch(Exception e) {