Ejemplo n.º 1
0
        ///
        ///	 <summary> * Append JDFPartAmount element
        ///	 *  </summary>
        ///	 * <param name="mPart"> JDFAttributeMap to append </param>
        ///
        public virtual JDFPartAmount appendPartAmount(JDFAttributeMap mPart)
        {
            JDFPartAmount p = base.appendPartAmount();

            p.setPartMap(mPart);
            return(p);
        }
Ejemplo n.º 2
0
        ///
        ///	 <summary> * get JDFPartAmount specified by mPart, create a new one if it doesn't exist
        ///	 *  </summary>
        ///	 * <param name="mPart"> JDFPartAmount to get/create
        ///	 * @return </param>
        ///
        public virtual JDFPartAmount getCreatePartAmount(JDFAttributeMap mPart)
        {
            JDFPartAmount p = getPartAmount(mPart);

            if (p == null)
            {
                p = (JDFPartAmount)appendElement(ElementName.PARTAMOUNT, null);
                p.setPartMap(mPart);
            }
            return(p);
        }
Ejemplo n.º 3
0
        public virtual JDFPartAmount getPartAmount(JDFAttributeMap mPart, bool bCreate)
        {
            JDFPartAmount p = getPartAmount(mPart, 0);

            if (bCreate && p == null)
            {
                p = (JDFPartAmount)appendElement("PartAmount", JDFConstants.EMPTYSTRING);
                p.setPartMap(mPart);
            }
            return(p);
        }