fixing issue
This commit is contained in:
parent
0cc1ead630
commit
9eceb98059
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue