# com.bea.ide.sourceeditor.driver
DefaultDocumentDriver Class

public class DefaultDocumentDriver
extends `Object`

The base class for many document driver types. This driver does nothing on its own, but simply keeps track of the driver's document.

Hierarchy
  `Object`
  `DefaultDocumentDriver`

Direct Known Subclasses
  `DefaultDebugDriver`, `DefaultDebugRunnable`, `DefaultLanguageDriver`, `DefaultSourceViewDriver`, `JavaNavigationBarDriver`, `JavaStructureViewDriver`

## Constructor Summary

DefaultDocumentDriver(`IDocument` doc) Constructs a new driver.

## Method Summary

`public `IDocument`` | `getDocument`() Returns this driver's document.
`public void` | `setDocument`(`IDocument` doc) Sets the document for this driver.

Methods from class `java.lang.`Object``
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

## Constructor Detail

### DefaultDocumentDriver

    public DefaultDocumentDriver(IDocument doc)

  Constructs a new driver.

## Method Detail

### getDocument() Method

    public IDocument getDocument()

Returns this driver's document.

### setDocument(IDocument) Method

    public void setDocument(IDocument doc)

Sets the document for this driver. Since drivers to not generally support being moved from one document to another, his method should only be called if the driver was constructed with a null document, unless a particular driver explicitly states that it supports this operation.

#### Parameters

doc
  this driver's document.