Esempio n. 1
0
        public virtual void testgetSubmissionParams()
        {
            JDFDoc doc = new JDFDoc(ElementName.JMF);
            JDFJMF jmf = doc.getJMFRoot();

            Assert.IsNull(jmf.getSubmissionURL());
            JDFCommand c = jmf.appendCommand(EnumType.ResubmitQueueEntry);

            Assert.IsNull(jmf.getSubmissionURL());
            JDFResubmissionParams rsp = c.appendResubmissionParams();

            Assert.IsNull(jmf.getSubmissionURL());
            rsp.setURL("url");
            Assert.AreEqual("url", jmf.getSubmissionURL());
        }
Esempio n. 2
0
        ///
        ///	 <summary> * get the @URL of this message if it is either a submitQueueEntry, a returnQueuentry or a resubmitqueueentry
        ///	 *
        ///	 * @return </summary>
        ///
        public virtual string getSubmissionURL()
        {
            JDFCommand cSubmit = (JDFCommand)getMessageElement(EnumFamily.Command, EnumType.SubmitQueueEntry, 0);

            if (cSubmit != null)
            {
                JDFQueueSubmissionParams qsp = cSubmit.getQueueSubmissionParams(0);
                return(qsp == null ? null : isWildCard(qsp.getURL()) ? null : qsp.getURL());
            }
            cSubmit = (JDFCommand)getMessageElement(EnumFamily.Command, EnumType.ResubmitQueueEntry, 0);
            if (cSubmit != null)
            {
                JDFResubmissionParams rsp = cSubmit.getResubmissionParams(0);
                return(rsp == null ? null : isWildCard(rsp.getURL()) ? null : rsp.getURL());
            }
            cSubmit = (JDFCommand)getMessageElement(EnumFamily.Command, EnumType.ReturnQueueEntry, 0);
            if (cSubmit != null)
            {
                JDFReturnQueueEntryParams rsp = cSubmit.getReturnQueueEntryParams(0);
                return(rsp == null ? null : isWildCard(rsp.getURL()) ? null : rsp.getURL());
            }
            return(null);
        }