# com.bea.ide.document
ILinkedElement Interface

public interface ILinkedElement
extends `IDocumentElement`

This interface represents an element in a document that is somehow related to an element in another document. An element object that has such a link should implement this interface and the listed methods. Using these, code in the IDE may navigate between documents and follow relationships.

All Known Implementing Classes
  `ControlVariable`, `ControlMethod`

All Superinterfaces
  `IDocumentElement`, `IElement`, `ITreeElement`

## Method Summary

`public `IDocumentElement`` | `getLink`() Gets the element to which this element is linked.
`public `IDocument`` | `getLinkedDocument`() Gets the document containing the element to which this element is linked.

Methods from interface `com.bea.ide.document.`IDocumentElement``
``getDocument``

Methods from interface `com.bea.ide.element.`IElement``
``getProperty`, `getPropertyDescriptors`, `setProperty``

Methods from interface `com.bea.ide.element.`ITreeElement``
``children`, `getChild`, `getChildCount`, `getParent``

## Method Detail

### getLink() Method

    public IDocumentElement getLink()

Gets the element to which this element is linked. The semantic meaning and purpose of this link is implementation defined.

#### Returns

element to which this element is linked or null, if this link is to a document

### getLinkedDocument() Method

    public IDocument getLinkedDocument()

Gets the document containing the element to which this element is linked.

#### Returns

document in which the linked element resides