/// /// <summary> * get the DEvCapPool that contains devcap elements referenced by this /// * </summary> /// * <returns> JDFDevCapPool the pool </returns> /// private KElement getParentPool(string poolName) { KElement parent = getParentNode_KElement(); if (!(parent is JDFDeviceCap) && !(parent is JDFMessageService)) { throw new JDFException("JDFDevCap.getParentPool - invalid parent context"); } return(parent.getElement(poolName)); }
/// /// <summary> * gets the matching Attribute value String or AbstractSpan object from the /// * parent, depending on the type of the state /// * </summary> /// * <param name="element"> /// * the parent in which to search </param> /// * <returns> Object: either a String or AbstractSpan </returns> /// public virtual object getMatchingObjectInNode(KElement element) { string nam = getName(); if (getListType().Equals(EnumListType.Span)) { return(element.getElement(nam, getDevNS(), 0)); } return(element.getAttribute(nam, getDevNS(), null)); }
/// /// <summary> * get the testPool that all IDRefs in this action refer to /// * </summary> /// * <returns> JDFTestPool: the neighboring TestPool </returns> /// public virtual JDFTestPool getTestPool() { KElement commonParent = getActionPool().getParentNode_KElement(); if (commonParent == null) { return(null); } JDFTestPool testPool = (JDFTestPool)commonParent.getElement(ElementName.TESTPOOL); return(testPool); }
/// /// <summary> * get the DEvCapPool that contains devcap elements referenced by this /// * </summary> /// * <returns> JDFDevCapPool the pool </returns> /// private KElement getParentPool(string poolName) { KElement parent = getPoolParent(); return(parent.getElement(poolName)); }