Пример #1
0
        ///
        ///	 <summary> * get the Test element in the TestPool that is referenced by this action
        ///	 *  </summary>
        ///	 * <returns> JDFTest: the referenced test, null if none exists </returns>
        ///
        public virtual JDFTest getTest()
        {
            JDFTestPool testPool = getTestPool();

            if (testPool == null)
            {
                return(null);
            }
            return(testPool.getTest(getTestRef()));
        }
Пример #2
0
        ///
        ///	 <summary> * get the test defined by PreflightAction/@SetRef
        ///	 *  </summary>
        ///	 * <returns> JDFTest: the test to use </returns>
        ///
        public virtual JDFTest getPreflightActionSetRef()
        {
            JDFPreflightAction pfa = getPreflightAction(0);

            if (pfa == null)
            {
                return(null);
            }
            string      setRef   = pfa.getSetRef();
            JDFTestPool testPool = getTestPool();

            if (testPool == null)
            {
                return(null);
            }
            return(testPool.getTest(setRef));
        }