DotNetXri.Syntax.XRIAuthority.getSubSegmentAt C# (CSharp) Method

getSubSegmentAt() public method

Returns the subsegment at the given index
public getSubSegmentAt ( int nIndex ) : XRISubSegment
nIndex int The index of the subsegment to return
return XRISubSegment
        public XRISubSegment getSubSegmentAt(int nIndex)
        {
            parse();
            if (moSegment != null)
            {
                return moSegment.getSubSegmentAt(nIndex);
            }

            return null;
        }

Usage Example

Ejemplo n.º 1
0
        /*
        ****************************************************************************
        * mkdir()
        ****************************************************************************
        */
        /**
         *  Creates an entry under this CacheNode for the given subsegments
         * @param oAuth - The authority to add
         * @param n - The index of the subsegment to start with
         * @param iTargetDepth - The index of the subsegment to stop at.
         * @return The final CacheNode created by this method
         */
        internal CacheNode mkdir(XRIAuthority oAuth, int n, int iTargetDepth)
        {
            XRISubSegment oSubSegment = oAuth.getSubSegmentAt(n);
            if (oSubSegment == null) {
                return this;
            }

            CacheNode oNode = mkdir(oSubSegment.ToString());

            return ((n + 1) < iTargetDepth)
            ? oNode.mkdir(oAuth, n + 1, iTargetDepth) : oNode;
        }
All Usage Examples Of DotNetXri.Syntax.XRIAuthority::getSubSegmentAt