Examples of SubSegment


Examples of org.openxri.store.SubSegment

  public boolean equals(Object object) {

    if (object == this) return(true);
    if (object == null || ! (object instanceof SubSegment)) return(false);

    SubSegment other = (SubSegment) object;

    Long id1 = this.getId();
    Long id2 = other.getId();
   
    if (id1 == null || id2 == null) return(false);
   
    return(id1.equals(id2));
  }
View Full Code Here

Examples of org.openxri.store.SubSegment

    Store store = (Store) ServerConfigFactory.getSingleton().getComponentRegistry().getComponent(Store.class);

    try {

      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

        // 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
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.