- public StructurePath getPath() {\r
- return path;\r
- }\r
-\r
- public List<TreeSElement> getChildren() {\r
- return children;\r
- }\r
-\r
- public TreeSElement createChild(String name, String description) {\r
- TreeSElement element = new TreeSElement();\r
- element.path = TreeSPath.createChild((TreeSPath) this.getPath(), name);\r
- element.description = description;\r
- children.add(element);\r
- return element;\r
- }\r
-\r
- public static TreeSElement createRootElelment(String name,\r
- String description) {\r
- TreeSElement element = new TreeSElement();\r
- element.path = TreeSPath.createChild(null, name);\r
- element.description = description;\r
- return element;\r
- }\r
-\r
- @Override\r
- public boolean equals(Object obj) {\r
- if (obj instanceof StructureElement) {\r
- StructureElement element = (StructureElement) obj;\r
- return getPath().equals(element.getPath());\r
- }\r
- return false;\r
- }\r
-\r