public virtual void testBugBuild058() { // get the JDF document root element JDFDoc jdfDoc = new JDFDoc(ElementName.JDF); JDFNode productNode = jdfDoc.getJDFRoot(); productNode.setType(JDFNode.EnumType.Product.getName(), false); // Add an intent resource JDFLayoutIntent layoutIntent = (JDFLayoutIntent)productNode.appendMatchingResource("LayoutIntent", JDFNode.EnumProcessUsage.AnyInput, null); // set the type attribute JDFResourceLink rli = productNode.getMatchingLink("LayoutIntent", JDFNode.EnumProcessUsage.AnyInput, 0); bool bValid = rli.isValid(KElement.EnumValidationLevel.Complete); Assert.IsTrue(bValid); JDFLayoutIntent layoutIntent2 = (JDFLayoutIntent)rli.getTarget(); bValid = bValid && (layoutIntent2.Equals(layoutIntent)); Assert.IsTrue(bValid); }
/// /// <summary> * add a JDFNode /// * </summary> /// * <param name="node"> the node to add </param> /// public virtual void addElement(JDFNode node) { m_vec.Add(node); }