Пример #1
0
        ///
        ///	 <summary> * Gets the <code>AllowedValue</code> attribute of the iSkip'th subelement
        ///	 * <code>Value</code>
        ///	 *  </summary>
        ///	 * <param name="iSkip">
        ///	 *            the number of <code>Value</code> elements to skip </param>
        ///	 * <returns> String: the attribute value </returns>
        ///
        public string getValueAllowedValue(int iSkip)
        {
            JDFValue e = (JDFValue)getElement(ElementName.VALUE, null, iSkip);

            if (e == null)
            {
                return(null);
            }
            return(e.getAllowedValue());
        }
Пример #2
0
        ///
        ///	 <summary> * Gets the AllowedValue attribute of the iSkip'th subelement Value
        ///	 *  </summary>
        ///	 * <param name="iSkip">
        ///	 *            the number of Value elements to skip </param>
        ///	 * <returns> JDFMatrix: the attribute value </returns>
        ///
        public JDFMatrix getValueAllowedValue(int iSkip)
        {
            JDFValue e = (JDFValue)getElement(ElementName.VALUE, null, iSkip);

            try
            {
                return(new JDFMatrix(e.getAllowedValue()));
            }
            catch (FormatException)
            {
                throw new JDFException("JDFMatrixState.getValueAllowedValue: AttributeValue not capable to create JDFMatrix");
            }
        }