Examples of SubSegment


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

Examples of org.openxri.SubSegment

    * @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

Examples of org.openxri.store.SubSegment

          break;
        }

        // using the parent authority and subsegment name, find the authority we are describing now

        SubSegment subSegment = moStore.findSubSegment(parent, subSegmentName);
        if (subSegment == null) {

          soLog.warn("Cannot find subsegment: " + subSegmentName);
          return(null);
        }
View Full Code Here

Examples of org.openxri.store.SubSegment

      final Store openXRIStore = ((OpenXRIAdminApplication) this.getApplication()).getOpenXRIStore();
      final Resolver resolver = ((OpenXRIAdminApplication) this.getApplication()).getResolver();

      try {

        SubSegment rootSubSegment = openXRIStore.createRootSubSegment(this.namespace, new XRD());

        CanonicalID canonicalID;
        Authority authority;

        try {
View Full Code Here

Examples of org.openxri.store.SubSegment

    try {

      if (store instanceof StoreResettable) ((StoreResettable) store).resetStore();

      SubSegment rootSubSegment1 = store.createRootSubSegment("=example", new XRD());
      Authority rootAuthority1 = store.getSubSegmentAuthority(rootSubSegment1);
      SubSegment subSegment1 = store.registerSubsegment(rootAuthority1, "*name1", makeSampleXRD());
      SubSegment subSegment2 = store.registerSubsegment(rootAuthority1, "*name2", makeSampleXRD());

      SubSegment rootSubSegment2 = store.createRootSubSegment("@example", new XRD());
      Authority rootAuthority2 = store.getSubSegmentAuthority(rootSubSegment2);
      SubSegment subSegment3 = store.registerSubsegment(rootAuthority2, "*name3", makeSampleXRD());
      Authority authority3 = store.getSubSegmentAuthority(subSegment3);
      SubSegment subSegment4 = store.registerSubsegment(authority3, "*name4", makeSampleXRD());

    } catch (StoreException ex) {

      ex.printStackTrace();
    }
View Full Code Here

Examples of org.openxri.store.SubSegment

          break;
        }

        // using the parent authority and subsegment name, find the authority we are describing now

        SubSegment subSegment;
       
        try {

          subSegment = moStore.findSubSegment(parent, subSegmentName);
          if (subSegment == null) throw new StoreNotFoundException("Null value returned.");
View Full Code Here

Examples of org.openxri.store.SubSegment

      private static final long serialVersionUID = 8793019471745319174L;

      @Override
      protected void populateItem(ListItem item) {

        final SubSegment subSegment = (SubSegment) item.getModelObject();

        PageLink link = new PageLink("link", new IPageLink() {

          private static final long serialVersionUID = 4182879013901656829L;

          public Page getPage() {

            return(new SubSegmentDetails(subSegment));
          }

          public Class<?> getPageIdentity() {

            return(SubSegmentDetails.class);
          }
        });
        link.add(new Label("name", subSegment.getName()));
        item.add(link);
      }
    });
    this.childSubSegmentsContainer.add(new ListView("childSubSegments") {

      private static final long serialVersionUID = 1273612869821409740L;

      @Override
      protected void populateItem(ListItem item) {

        final SubSegment subSegment = (SubSegment) item.getModelObject();

        PageLink link = new PageLink("link", new IPageLink() {

          private static final long serialVersionUID = -1232152334705755201L;

          public Page getPage() {

            return(new SubSegmentDetails(subSegment));
          }

          public Class<?> getPageIdentity() {

            return(SubSegmentDetails.class);
          }
        });
        link.add(new Label("name", subSegment.getName()));
        item.add(link);
      }
    });
    this.add(this.subSegmentsContainer);
    this.add(this.childSubSegmentsContainer);
View Full Code Here

Examples of org.openxri.store.SubSegment

        // using the parent authority and subsegment name, find the subsegment and the authority we are describing now
        // we must be prepared to have null values here, since not all pipeline configurations
        // may use objects from the store

        SubSegment subSegment = null;
        Authority authority = null;

        if (parentAuthority != null) subSegment = this.store.findSubSegment(parentAuthority, subSegmentName);
        if (subSegment != null) authority = this.store.getSubSegmentAuthority(subSegment);
View Full Code Here

Examples of org.openxri.store.SubSegment

    if (! subSegmentDir.exists()) {

      throw new StoreException(StoreException.KEY_NOTFOUND, "Subsegment does not exist.");
    }

    SubSegment subSegment = new FileSubSegment(subSegmentDir);

    // done

    return(subSegment);
  }
View Full Code Here

Examples of org.openxri.store.SubSegment

    @Override
    protected void onSubmit() {

      final Store openXRIStore = ((OpenXRIAdminApplication) this.getApplication()).getOpenXRIStore();

      SubSegment subSegment;
      Authority authority;
     
      try {

        XRD xrd = new XRD();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.