예제 #1
0
        ///
        ///	 <summary> * @return </summary>
        ///
        public virtual EnumNotificationDetails getNotificationDetailsType()
        {
            string s = getType();

            if (isWildCard(s))
            {
                return(null);
            }
            return(EnumNotificationDetails.getEnum(s));
        }
예제 #2
0
        ///
        ///	 <summary> * get the predefined notification details
        ///	 *  </summary>
        ///	 * <param name="details">
        ///	 * @return </param>
        ///
        public virtual JDFElement getNotificationDetails()
        {
            EnumNotificationDetails det = getNotificationDetailsType();

            if (det == null)
            {
                return(null);
            }
            return((JDFElement)getElement(det.getName(), null, 0));
        }
예제 #3
0
        ///
        ///	 <summary> * append one of the predefined notification details
        ///	 *  </summary>
        ///	 * <param name="details">
        ///	 * @return </param>
        ///
        public virtual JDFElement appendNotificationDetails(EnumNotificationDetails details)
        {
            EnumNotificationDetails det = getNotificationDetailsType();

            if (det != null && !det.Equals(details))
            {
                return(null);
            }
            setType(details.getName());
            return((JDFElement)appendElementN(details.getName(), 1, null));
        }
예제 #4
0
        ///
        ///	 <summary> * append one of the predefined notification details
        ///	 *  </summary>
        ///	 * <param name="details">
        ///	 * @return </param>
        ///
        public virtual JDFElement getCreateNotificationDetails(EnumNotificationDetails details)
        {
            JDFElement e = getNotificationDetails();

            if (e == null)
            {
                return(appendNotificationDetails(details));
            }
            if (!details.getName().Equals(e.LocalName))
            {
                return(null);
            }
            setType(details.getName());
            return(e);
        }