Open topic with navigation

com.hp.lft.sdk

## Class AppModelNodeBase<T extends TestObject,TDescription extends Description>

- java.lang.Object
- - com.hp.lft.sdk.internal.TestObjectWrapper
  - - com.hp.lft.sdk.AppModelNodeBase<T,TDescription>

- Direct Known Subclasses:
    TopLevelObjectNodeBase

      public abstract class AppModelNodeBase<T extends TestObject,TDescription extends Description>
      extends com.hp.lft.sdk.internal.TestObjectWrapper

  Base class for all container sub-classes generated under the Application Model class.

- - ### Field Summary

    Modifier and Type | Field and Description
    --- | ---
    `protected T` | `concrete`
    `protected TestObject` | `parent`

  - ### Constructor Summary

    Modifier | Constructor and Description
    --- | ---
    `protected` | `AppModelNodeBase(AppModelBase applicationModel)` Initializes an instance of AppModelNodeBase.
    `protected` | `AppModelNodeBase(TestObject parent, AppModelBase applicationModel)` Initializes an instance of AppModelNodeBase with a parent TestObject.

  - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `protected abstract TDescription` | `createDescription()` Create the actual description of the Test Object
    `protected T` | `describeConcrete(Description description)` Describes the underlying concrete test object.
    `protected T` | `getConcrete()`
    `TDescription` | `getDescription()` Gets the Description of the generated Application Model node.
    `TestObject` | `getParent()`
    `protected TestObject` | `getRelatedObject(java.lang.String objectId)` Returns the related test object.
    `protected TestObject` | `getWrappedTestObject()` Returns the SDK test object wrapped by this class.
    `protected void` | `setConcrete(Description description)` Sets the concrete test object.
    `void` | `setDescription(Description description)` Sets the description of the generated Application Model node.

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

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

- - ### Field Detail

    - #### parent

          protected TestObject parent

    - #### concrete

          protected T extends TestObject concrete

  - ### Constructor Detail

    - #### AppModelNodeBase

          protected AppModelNodeBase(AppModelBase applicationModel)
                              throws GeneralLeanFtException

      Initializes an instance of AppModelNodeBase.
      Parameters:
        `applicationModel` - the Application Model instance which contains this node.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### AppModelNodeBase

          protected AppModelNodeBase(TestObject parent,
                                     AppModelBase applicationModel)
                              throws GeneralLeanFtException

      Initializes an instance of AppModelNodeBase with a parent TestObject.
      Parameters:
        `parent` - parent test object.
        `applicationModel` - the Application Model instance which contains this node.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

  - ### Method Detail

    - #### getWrappedTestObject

          protected TestObject getWrappedTestObject()

      Description copied from class: `com.hp.lft.sdk.internal.TestObjectWrapper`
      Returns the SDK test object wrapped by this class.
      Specified by:
        `getWrappedTestObject` in class `com.hp.lft.sdk.internal.TestObjectWrapper`
      Returns:
        the SDK test object wrapped by this class.

    - #### createDescription

          protected abstract TDescription createDescription()
                                                     throws GeneralLeanFtException

      Create the actual description of the Test Object
      Returns:
        actual description
      Throws:
        `GeneralLeanFtException`

    - #### getDescription

          public TDescription getDescription()
                                      throws GeneralLeanFtException

      Gets the Description of the generated Application Model node.
      Returns:
        Test object's description.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### setConcrete

          protected void setConcrete(Description description)
                              throws GeneralLeanFtException

      Sets the concrete test object.
      Parameters:
        `description` - Test object's description.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### describeConcrete

          protected T describeConcrete(Description description)
                                throws GeneralLeanFtException

      Describes the underlying concrete test object.
      Parameters:
        `description` - Test object's description.
      Returns:
        The underlying concrete test object
      Throws:
        `GeneralLeanFtException`

    - #### getConcrete

          protected T getConcrete()

    - #### setDescription

          public void setDescription(Description description)
                              throws GeneralLeanFtException

      Sets the description of the generated Application Model node.
      Parameters:
        `description` - Test object's description.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getRelatedObject

          protected TestObject getRelatedObject(java.lang.String objectId)

      Returns the related test object.
      Parameters:
        `objectId` - Identifier for the object in the containing Application Model
      Returns:
        The related test object

    - #### getParent

          public TestObject getParent()