com.h3c.of.sw

## Class AbstractDefn

- java.lang.Object
- - com.h3c.of.sw.AbstractDefn

- Direct Known Subclasses:
    BankDefn, SwitchDefn

      public abstract class AbstractDefn
      extends Object

  A base class for representing test fixture definitions.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected static String` | `EOL`
    `protected static String` | `EOLI`
    `protected static String` | `EOLI_DASH`
    `protected AbstractDefReader` | `reader`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `AbstractDefn(AbstractDefReader reader)` Constructs the definition, caching the definition file reader object.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getPath()` Returns the path of the definition file.
    `String` | `toDebugString()` Provides a multi-line string representation of this definition, suitable for debugging.
    `String` | `toString()`

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

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

- - ### Field Detail

    - #### reader

          protected final AbstractDefReader reader

    - #### EOL

          protected static final String EOL

    - #### EOLI

          protected static final String EOLI

    - #### EOLI_DASH

          protected static final String EOLI_DASH

  - ### Constructor Detail

    - #### AbstractDefn

          public AbstractDefn(AbstractDefReader reader)

      Constructs the definition, caching the definition file reader object.
      Parameters:
        `reader` - a definition file reader

  - ### Method Detail

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### toDebugString

          public String toDebugString()

      Provides a multi-line string representation of this definition, suitable for debugging.
      Returns:
        a multi-line string representation

    - #### getPath

          public String getPath()

      Returns the path of the definition file.
      Returns:
        the definition file path

Copyright © 2014. All Rights Reserved.