/// /// <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); } }
static JDFAutoQueueFilter() { atrInfoTable[0] = new AtrInfoTable(AttributeName.GANGNAMES, 0x33333111, AttributeInfo.EnumAttributeType.NMTOKENS, null, null); atrInfoTable[1] = new AtrInfoTable(AttributeName.MAXENTRIES, 0x33333311, AttributeInfo.EnumAttributeType.integer, null, null); atrInfoTable[2] = new AtrInfoTable(AttributeName.OLDERTHAN, 0x33333311, AttributeInfo.EnumAttributeType.dateTime, null, null); atrInfoTable[3] = new AtrInfoTable(AttributeName.NEWERTHAN, 0x33333311, AttributeInfo.EnumAttributeType.dateTime, null, null); atrInfoTable[4] = new AtrInfoTable(AttributeName.QUEUEENTRYDETAILS, 0x33333311, AttributeInfo.EnumAttributeType.enumeration, EnumQueueEntryDetails.getEnum(0), "Brief"); atrInfoTable[5] = new AtrInfoTable(AttributeName.STATUSLIST, 0x33333311, AttributeInfo.EnumAttributeType.enumerations, EnumStatusList.getEnum(0), null); elemInfoTable[0] = new ElemInfoTable(ElementName.QUEUEENTRYDEF, 0x33333311); elemInfoTable[1] = new ElemInfoTable(ElementName.DEVICE, 0x33333311); }
/// /// <summary> * (9) get attribute QueueEntryDetails </summary> /// * <returns> the value of the attribute </returns> /// public virtual EnumQueueEntryDetails getQueueEntryDetails() { return(EnumQueueEntryDetails.getEnum(getAttribute(AttributeName.QUEUEENTRYDETAILS, null, "Brief"))); }
// --------------------------------------------------------------------- // Methods for Attribute QueueEntryDetails // --------------------------------------------------------------------- /// /// <summary> * (5) set attribute QueueEntryDetails </summary> /// * <param name="enumVar">: the enumVar to set the attribute to </param> /// public virtual void setQueueEntryDetails(EnumQueueEntryDetails enumVar) { setAttribute(AttributeName.QUEUEENTRYDETAILS, enumVar == null ? null : enumVar.getName(), null); }