public virtual JDFFileSpec getSearchPath(int iSkip) { int iSkipLocal = iSkip; JDFFileSpec res = null; VElement v = getChildElementVector(ElementName.FILESPEC, null, null, true, 0, false); int siz = v.Count; for (int i = 0; i < siz; i++) { res = (JDFFileSpec)v[i]; if (res.hasAttribute(AttributeName.RESOURCEUSAGE)) { if (res.getResourceUsage() == "SearchPath") { if (iSkipLocal >= 0) { iSkipLocal--; } else { break; } } } } return(res); }
/// /// <summary> * Gets of 'this' an existing child FileSpec(WorkingColorSpace) element /// * </summary> /// * <returns> JDFFileSpec: the matching WorkingColorSpace element </returns> /// public virtual JDFFileSpec getWorkingColorSpace() { VElement v = getChildElementVector(ElementName.FILESPEC, null, null, true, 0, false); int siz = v.Count; for (int i = 0; i < siz; i++) { JDFFileSpec res = (JDFFileSpec)v[i]; if (res.hasAttribute(AttributeName.RESOURCEUSAGE)) { if ("WorkingColorSpace".Equals(res.getResourceUsage())) { return(res); } } } return(null); }