Beispiel #1
0
        ///
        ///	 <summary> * getRefTarget() get the target referencened in @rRef
        ///	 *  </summary>
        ///	 * <returns> ICapabilityElement the referenced element, either state or a
        ///	 *         devcap </returns>
        ///
        public virtual ICapabilityElement getRefTarget()
        {
            IDeviceCapable deviceCap = getDeviceCapable();

            if (deviceCap == null)
            {
                return(null);
            }
            return(deviceCap.getTargetCap(getrRef()));
        }
Beispiel #2
0
        ///
        ///	 <summary> * get the parent devicecap or messageservice
        ///	 *
        ///	 * @return </summary>
        ///
        internal virtual IDeviceCapable getDeviceCapable()
        {
            IDeviceCapable deviceCap = (IDeviceCapable)getDeepParent(ElementName.DEVICECAP, 0);

            if (deviceCap != null)
            {
                return(deviceCap);
            }
            deviceCap = (IDeviceCapable)getDeepParent(ElementName.MESSAGESERVICE, 0);
            return(deviceCap);
        }