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 Details

  • Constructor Details

    • 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 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 error occurs during execution
  • Method Details

    • 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 - if error occurs during execution
    • getDescription

      public TDescription getDescription() throws GeneralLeanFtException
      Gets the Description of the generated Application Model node.
      Returns:
      Test object's description.
      Throws:
      GeneralLeanFtException - if 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 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 - if error occurs during execution
    • 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 error occurs during execution
    • getRelatedObject

      protected TestObject getRelatedObject(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()