Overview | Package | Class | Deprecated | Index | Help
| Groovy Documentation
| FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD

## org.gradle.tooling.model
[Java] Interface HierarchicalElement

    org.gradle.tooling.model.HierarchicalElement
      org.gradle.tooling.model.Element

All Superinterfaces:
  Element

    public interface HierarchicalElement
    extends Element

Represents an element which belongs to some hierarchy.

Since:
  1.0-rc-1

Method Summary
`DomainObjectSet` | `getChildren()` Returns the child elements.
`HierarchicalElement` | `getParent()` Returns the parent of this element, if any.

Methods inherited from interface Element
getDescription, getName

Method Detail

### getChildren

    public DomainObjectSet getChildren()

  Returns the child elements.
  Returns:
    The child elements. Returns an empty set if it has no children.

### getParent

    public HierarchicalElement getParent()

  Returns the parent of this element, if any.
  Returns:
    The parent, or null if it has no parent.

Groovy Documentation