Exemplo n.º 1
0
  private void populateChildElements(
      List<AbstractElement> childrenElements, AXIComponent component) {
    for (AXIComponent child : component.getChildren()) {
      if (child instanceof ContentModel) continue;

      if (child instanceof AbstractElement) {
        childrenElements.add((AbstractElement) child);
        continue;
      }
      populateChildElements(childrenElements, child);
    }
  }
Exemplo n.º 2
0
 /** Returns all the child {@link AbstractElement}s for this component. */
 public List<AbstractElement> getChildElements() {
   List<AbstractElement> childrenElements = new ArrayList<AbstractElement>();
   populateChildElements(childrenElements, this);
   return Collections.unmodifiableList(childrenElements);
 }