/// /// <summary> * </summary> /// private void initLayoutElementProductionParams() { JDFLayoutElementProductionParams lep = (JDFLayoutElementProductionParams)theNode.getCreateResource(ElementName.LAYOUTELEMENTPRODUCTIONPARAMS, EnumUsage.Input, 0); JDFBarcodeProductionParams bp = lep.getCreateLayoutElementPart(0).appendBarcodeProductionParams(); JDFIdentificationField idf = bp.appendIdentificationField(); idf.setEncoding(EnumEncoding.Barcode); idf.setEncodingDetails("EAN"); idf.setValue("123456"); }
/// /// <summary> * Get all BarcodeProductionParams from the current element /// * </summary> /// * <returns> Collection<JDFBarcodeProductionParams> </returns> /// public virtual ICollection <JDFBarcodeProductionParams> getAllBarcodeProductionParams() { List <JDFBarcodeProductionParams> v = new List <JDFBarcodeProductionParams>(); JDFBarcodeProductionParams kElem = (JDFBarcodeProductionParams)getFirstChildElement(ElementName.BARCODEPRODUCTIONPARAMS, null); while (kElem != null) { v.Add(kElem); kElem = (JDFBarcodeProductionParams)kElem.getNextSiblingElement(ElementName.BARCODEPRODUCTIONPARAMS, null); } return(v); }