Example #1
0
        ///
        ///     <summary> * Get all PreflightAction from the current element
        ///     *  </summary>
        ///     * <returns> Collection<JDFPreflightAction> </returns>
        ///
        public virtual ICollection <JDFPreflightAction> getAllPreflightAction()
        {
            List <JDFPreflightAction> v = new List <JDFPreflightAction>();

            JDFPreflightAction kElem = (JDFPreflightAction)getFirstChildElement(ElementName.PREFLIGHTACTION, null);

            while (kElem != null)
            {
                v.Add(kElem);

                kElem = (JDFPreflightAction)kElem.getNextSiblingElement(ElementName.PREFLIGHTACTION, null);
            }

            return(v);
        }
Example #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));
        }