Ejemplo n.º 1
0
        public virtual void testReturnQueueEntry()
        {
            JDFDoc     doc = new JDFDoc(ElementName.JMF);
            JDFJMF     jmf = doc.getJMFRoot();
            JDFCommand c   = (JDFCommand)jmf.appendMessageElement(EnumFamily.Command, null);

            c.setType("ReturnQueueEntry");
            JDFReturnQueueEntryParams rqe = c.appendReturnQueueEntryParams();

            rqe.setURL("http://foo.jdf");
            rqe.setQueueEntryID("dummyID");
            Assert.IsTrue(rqe.isValid(EnumValidationLevel.Complete), "JDFReturnQueueEntryParams");
        }
Ejemplo 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);
        }