Skip to content
Snippets Groups Projects
Commit 5aafc3c8 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

API provides info about submaps

parent e8c898c7
No related branches found
No related tags found
1 merge request!40Resolve "Annotations: description of a submap anchor"
......@@ -56,6 +56,7 @@ Alias.prototype.update = function(javaObject) {
this.setOther(javaObject.other);
this.setHierarchyVisibilityLevel(javaObject.hierarchyVisibilityLevel);
this.setComplexId(javaObject.complexId);
this.setLinkedSubmodel(javaObject.linkedSubmodel);
this.setCompartmentId(javaObject.compartmentId);
this.setIsComplete(true);
};
......@@ -81,6 +82,14 @@ Alias.prototype.setFormula = function(formula) {
this.formula = formula;
};
Alias.prototype.getLinkedSubmodel = function() {
return this._linkedSubmodel;
};
Alias.prototype.setLinkedSubmodel = function(linkedSubmodel) {
this._linkedSubmodel = linkedSubmodel;
};
Alias.prototype.getDescription = function() {
return this.description;
};
......
......@@ -100,7 +100,11 @@ public class ElementsRestImpl extends BaseRestImpl {
} else if (column.equals("formersymbols")) {
value = element.getFormerSymbols();
} else if (column.equals("hierarchyvisibilitylevel")) {
value = element.getVisibilityLevel();
value = element.getFormerSymbols();
} else if (column.equals("linkedsubmodel")) {
if (element.getSubmodel() != null) {
value = element.getSubmodel().getSubmodel().getId();
}
} else if (column.equals("bounds")) {
value = createBounds(element.getX(), element.getY(), element.getWidth(), element.getHeight());
} else {
......@@ -141,6 +145,7 @@ public class ElementsRestImpl extends BaseRestImpl {
columnsSet.add("references");
columnsSet.add("bounds");
columnsSet.add("hierarchyVisibilityLevel");
columnsSet.add("linkedSubmodel");
} else {
for (String str : columns.split(",")) {
columnsSet.add(str);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment