Exemplo n.º 1
0
        ///
        ///	 <summary> * create a new JMF with one Message Element of family <code>family</code> and type <code>typ</code>
        ///	 *  </summary>
        ///	 * <param name="family"> the Message family - Query, Acknowledge, Command, Response, Registration or Signal </param>
        ///	 * <param name="typ"> the messages @Type value, null if unknown </param>
        ///	 * <returns> the newly created message </returns>
        ///
        public static JDFJMF createJMF(JDFMessage.EnumFamily family, JDFMessage.EnumType typ)
        {
            if (family == null)
            {
                throw new JDFException("createJMF: creating undefined message family");
            }

            JDFJMF jmf = new JDFDoc(ElementName.JMF).getJMFRoot();

            jmf.appendMessageElement(family, typ);
            return(jmf);
        }