예제 #1
0
        public virtual void testSubAssemblySection()
        {
            JDFAssemblySection ass  = @as.appendAssemblySection();
            JDFAssemblySection asss = ass.appendAssemblySection();

            asss.setAssemblyIDs(new VString("a b c", " "));
            Assert.IsTrue(@as.isValid(EnumValidationLevel.Incomplete));
            doc.write2File(sm_dirTestDataTemp + "AssemblySection.jdf", 2, false);
        }
예제 #2
0
        ///
        ///     <summary> * Get all AssemblySection from the current element
        ///     *  </summary>
        ///     * <returns> Collection<JDFAssemblySection> </returns>
        ///
        public virtual ICollection <JDFAssemblySection> getAllAssemblySection()
        {
            List <JDFAssemblySection> v = new List <JDFAssemblySection>();

            JDFAssemblySection kElem = (JDFAssemblySection)getFirstChildElement(ElementName.ASSEMBLYSECTION, null);

            while (kElem != null)
            {
                v.Add(kElem);

                kElem = (JDFAssemblySection)kElem.getNextSiblingElement(ElementName.ASSEMBLYSECTION, null);
            }

            return(v);
        }
예제 #3
0
        public virtual void testAssemblySectionCollection()
        {
            JDFAssemblySection ass = @as.appendAssemblySection();

            ass = @as.appendAssemblySection();
            JDFAssemblySection asss = ass.appendAssemblySection();

            asss.setAssemblyIDs(new VString("a b c", " "));
            ass = @as.getAssemblySection(0);
            ass = @as.getAssemblySection(1);
            ass.setXMLComment("MyComment");
            ass = @as.getAssemblySection(2);

            ICollection <JDFAssemblySection> vASS = @as.getAllAssemblySection();

            Assert.IsTrue(vASS.Count == 2);
        }
예제 #4
0
        public virtual void testSubAssemblySection()
        {
            JDFAssemblySection ass = @as.appendAssemblySection();

            ass = @as.appendAssemblySection();
            JDFAssemblySection asss = ass.appendAssemblySection();

            asss.setAssemblyIDs(new VString("a b c", " "));
            ass = @as.getAssemblySection(0);
            ass = @as.getAssemblySection(1);
            ass.setXMLComment("MyComment");
            ass = @as.getAssemblySection(2);

//		Collection<JDFAssemblySection> vASS =
            @as.getAllAssemblySection();

            Assert.IsTrue(@as.isValid(EnumValidationLevel.Incomplete));
        }