Esempio n. 1
0
        ///
        ///	 <summary> * delete this refElement and it's target
        ///	 *  </summary>
        ///	 * <param name="bCheckRefCount"> if true, check that no other element refers to the target before deleting<br>
        ///	 *            if bCheckRefCount=false, the target is force deleted </param>
        ///	 * <returns> JDFElement the deleted targeelement
        ///	 * @since 290502 </returns>
        ///
        public virtual JDFElement deleteRef(bool bCheckRefCount)
        {
            JDFResource e = getTarget();

            if (e != null)
            {
                if (bCheckRefCount)
                {
                    e.deleteUnLinked();
                }
                else
                {
                    e.deleteNode();
                }
            }
            // now zapp myself
            return((JDFElement)deleteNode());
        }