Package org.openxri

Examples of org.openxri.SubSegment


    CacheResult find(
        XRIAuthority oAuth, int nNextSubsegment, boolean bCompleteChain,
        Vector oCachedDescriptors)
    {
        // if there are no new subsegments to get, just return "this", we are done
        SubSegment oSubSegment = oAuth.getSubSegmentAt(nNextSubsegment);
        if (oSubSegment == null)
        {
            return new CacheResult(this, nNextSubsegment);
        }

        // also return if we can't find the next subsegment
        CacheNode oNode = find(oSubSegment.toString());
        if (oNode == null)
        {
            return new CacheResult(this, nNextSubsegment);
        }
View Full Code Here


    * @param iTargetDepth - The index of the subsegment to stop at.
    * @return The final CacheNode created by this method
    */
    CacheNode mkdir(XRIAuthority oAuth, int n, int iTargetDepth)
    {
        SubSegment 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;

    } // mkdir()
View Full Code Here

TOP

Related Classes of org.openxri.SubSegment

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.