Beispiel #1
0
        public void testSetString()
        {
            JDFDoc  d = new JDFDoc("JDF");
            JDFNode n = d.getJDFRoot();

            JDFIntegerList il = null;

            il = new JDFIntegerList("1 2 INF");
            n.setAttribute("test", il, null);
            Assert.AreEqual("1 2 INF", il.ToString(), "il");

            JDFNumberList nl = null;

            nl = new JDFNumberList("-INF 1.1 2.2 INF");
            n.setAttribute("test2", nl, null);
            Assert.AreEqual("-INF 1.1 2.2 INF", nl.ToString(), "nl");
        }
Beispiel #2
0
 ///
 ///	 <summary> * constructs a RGB color with all values set via a JDFNumberList
 ///	 *  </summary>
 ///	 * <param name="nl"> the given number list
 ///	 *  </param>
 ///	 * <exception cref="FormatException"> - if the String has not a valid format </exception>
 ///
 public JDFRGBColor(JDFNumberList nl)
     : this(nl.ToString())
 {
 }