Example #1
0
        ///
        ///	 <summary> * modifies queueEntry to match this filter by removing all non-matching attributes and elements
        ///	 *
        ///	 * make sure that this is a copy of any original queue as the incoming queue itself is not cloned
        ///	 *  </summary>
        ///	 * <param name="qe"> </param>
        ///
        public virtual void match(JDFQueueEntry qe)
        {
            if (qe == null)
            {
                return;
            }

            if (!matches(qe))
            {
                qe.deleteNode();
            }
            EnumQueueEntryDetails qed = getQueueEntryDetails();

            if (qed == null)
            {
                qed = EnumQueueEntryDetails.Brief;
            }
            if (EnumUtil.aLessEqualsThanB(EnumQueueEntryDetails.Brief, qed))
            {
                qe.removeChildren(ElementName.JOBPHASE, null, null);
            }
            if (EnumUtil.aLessEqualsThanB(EnumQueueEntryDetails.JobPhase, qed))
            {
                qe.removeChildren(ElementName.JDF, null, null);
            }
        }
Example #2
0
        //
        //	 * (non-Javadoc)
        //	 *
        //	 * @see java.lang.Object#toString()
        //
        public override string ToString()
        {
            string s = "[" + this.GetType().FullName + " Version: " + EnumUtil.getName(theVersion) + "]";

            if (theNode != null)
            {
                s += theNode.ToString();
            }
            return(s);
        }