com.hp.lft.sdk

Class AppModelNodeBase<T extends TestObject,TDescription extends Description>

  • 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.
    • 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.
      • 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