Exemple #1
0
 @Override
 public List<String> getHierarchicalId() {
   List<String> ids = new ArrayList<String>();
   for (Graph graph : getHierarchy()) {
     ids.add(graph.getLabel());
   }
   ids.add(getName());
   return ids;
 }
Exemple #2
0
 @Override
 public String getHierarchicalName() {
   StringBuilder builder = new StringBuilder();
   for (Graph graph : getHierarchy()) {
     builder.append(graph.getLabel());
     builder.append('_');
   }
   builder.append(getName());
   return builder.toString();
 }