/// /// <summary> * Get the n'th separation name in the SeparationSpec elements /// * </summary> /// * <param name="iSkip"> the index of the SeparationSpec </param> /// * <returns> separation names, null if iSkip > nSeparations </returns> /// public virtual string getSeparation(int iSkip) { JDFSeparationSpec ss = getSeparationSpec(iSkip); if (ss == null) { return(null); } return(ss.getName()); }
/// /// <summary> * Get a list of all separation names in the SeparationSpec elements /// * </summary> /// * <returns> the vector of separation names </returns> /// public virtual VString getSeparations() { VString vName = new VString(); VElement v = getChildElementVector(ElementName.SEPARATIONSPEC, null, null, false, 0, false); int nSep = v.Count; for (int i = 0; i < nSep; i++) { JDFSeparationSpec sep = (JDFSeparationSpec)v[i]; string sepName = sep.getName(); vName.appendUnique(sepName); } return(vName); }
/// /// <summary> * Get all SeparationSpec from the current element /// * </summary> /// * <returns> Collection<JDFSeparationSpec> </returns> /// public virtual ICollection <JDFSeparationSpec> getAllSeparationSpec() { List <JDFSeparationSpec> v = new List <JDFSeparationSpec>(); JDFSeparationSpec kElem = (JDFSeparationSpec)getFirstChildElement(ElementName.SEPARATIONSPEC, null); while (kElem != null) { v.Add(kElem); kElem = (JDFSeparationSpec)kElem.getNextSiblingElement(ElementName.SEPARATIONSPEC, null); } return(v); }