Package com.independentsoft.office.word.fields

# Class DocVariable

java.lang.Object
com.independentsoft.office.word.fields.Field
com.independentsoft.office.word.fields.DocVariable

All Implemented Interfaces:
  `IContentElement`, `IRunContent`

public class DocVariable extends Field
The Class DocVariable.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DocVariable()`
  Instantiates a new doc variable.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `DocVariable`
  `clone()`
  `String`
  `getName()`
  Gets the name.
  `void`
  `setName​(String name)`
  Sets the name.
  `String`
  `toString()`

  ### Methods inherited from class com.independentsoft.office.word.fields.Field

  `getContentElements, getFieldCodes, parse`

  ### Methods inherited from class java.lang.Object

  `equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### DocVariable

    public DocVariable()
    Instantiates a new doc variable.

- ## Method Details

  - ### clone

    public DocVariable clone()
    Specified by:
      `clone` in interface `IContentElement`
    Specified by:
      `clone` in interface `IRunContent`
    Specified by:
      `clone` in class `Field`

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`

  - ### getName

    public String getName()
    Gets the name.
    Returns:
      the name

  - ### setName

    public void setName​(String name)
    Sets the name.
    Parameters:
      `name` - the new name