/// /// <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); }
/// /// <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); }
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); }