Exemple #1
0
        ///
        ///	 <summary> * gets the ListType from a corresponding State/BasicPreflightTest element
        ///	 *  </summary>
        ///	 * <returns> JDFBasicPreflightTest::EnumListType - the value of ListType
        ///	 *         attribute </returns>
        ///
        public virtual JDFBasicPreflightTest.EnumListType getListType()
        {
            JDFAbstractState state = getState();

            if (state != null)
            {
                return(state.getListType());
            }
            JDFBasicPreflightTest basicPreflightTest = getBasicPreflightTest();

            return(basicPreflightTest == null ? null : basicPreflightTest.getListType());
        }
Exemple #2
0
        ///
        ///	 <summary> * Appends element <code>BasicPreflightTest</code> to the end of
        ///	 * <code>this</code> and sets @Name to name
        ///	 *  </summary>
        ///	 * <param name="testName">
        ///	 *            the new Name attribute of the BasicPreflightTest </param>
        ///	 * <returns> JDFBasicPreflightTest: newly created BasicPreflightTest element </returns>
        ///
        public virtual JDFBasicPreflightTest appendBasicPreflightTest(string testName)
        {
            JDFBasicPreflightTest pft = (JDFBasicPreflightTest)appendElementN(ElementName.BASICPREFLIGHTTEST, 1, null);

            if (pft == null)
            {
                return(null);
            }
            if (testName != null)
            {
                pft.setName(testName);
            }
            return(pft);
        }
Exemple #3
0
        ///
        ///	 <summary> * fitsMap - tests whether attribute map 'm' has a key specified by
        ///	 * BasicPreflightTest/@Name. If this the case, it is checked whether its
        ///	 * value fits the testlist.
        ///	 *  </summary>
        ///	 * <param name="m">
        ///	 *            key-value pair attribute map to take the value from </param>
        ///	 * <returns> boolean - true, if 'm' has a key specified by BasicPreflightTest/@Name
        ///	 *         and fitsValue(value) returns true </returns>
        ///
        public override sealed bool fitsMap(JDFAttributeMap m)
        {
            JDFBasicPreflightTest basicPreflightTest = getBasicPreflightTest();

            if (basicPreflightTest == null)
            {
                return(false);
            }
            string n = basicPreflightTest.getName();

            if (m.ContainsKey(n))
            {
                string val = m.get(n);
                return(fitsValue(val));
            }
            return(false); // __Lena__ ? false or smth else
        }