Package org.openxri.util

Examples of org.openxri.util.PrioritizedList


    List selectedServices = SEPSelector.select(services, type, mediaType,
        path, flags);
    if (selectedServices == null || selectedServices.size() == 0)
      return new ArrayList();

    PrioritizedList list = new PrioritizedList();
    for (int i = 0; i < selectedServices.size(); i++) {
      Service s = (Service) selectedServices.get(i);
      String priority = (s.getPriority() == null) ? PrioritizedList.PRIORITY_NULL
          : s.getPriority().toString();
      list.addObject(priority, s);
    }

    return list.getList();
  }
View Full Code Here


    equivIDs             = new Vector();
    canonicalIDs         = new Vector(); // CanonicalID (TODO: Should be 0 or 1)
    canonicalEquivID     = null;
   
    refs                 = new Vector();
    prioritizedRefs      = new PrioritizedList();
   
    redirects            = new Vector();
    prioritizedRedirects = new PrioritizedList();
   
    services             = new Vector();
    prioritizedServices  = new PrioritizedList();
    selectedServices     = new PrioritizedList();

    samlAssertion        = null;

    moElem               = null;
    moOtherChildrenVectorsMap = new HashMap();
View Full Code Here

  }
 
 
  public void setServices(Collection col) {
    services = new Vector();
    prioritizedServices = new PrioritizedList();
   
    Iterator i = col.iterator();
    while (i.hasNext()) {
      Service s = (Service)i.next();
      addService(s);
View Full Code Here

    }
  }
 
 
  public void setSelectedServices (Collection svcs) {
    selectedServices = new PrioritizedList();
    Iterator i = svcs.iterator();
    while (i.hasNext()) {
      Service s = (Service)i.next();
      Integer priority = s.getPriority();
      String priStr = (priority == null)? "null" : priority.toString();
View Full Code Here

    List selectedServices = SEPSelector.select(services, type, mediaType,
        path, flags);
    if (selectedServices == null || selectedServices.size() == 0)
      return new ArrayList();

    PrioritizedList list = new PrioritizedList();
    for (int i = 0; i < selectedServices.size(); i++) {
      Service s = (Service) selectedServices.get(i);
      String priority = (s.getPriority() == null) ? PrioritizedList.PRIORITY_NULL
          : s.getPriority().toString();
      list.addObject(priority, s);
    }

    return list.getList();
  }
View Full Code Here

     public void addURI(SEPUri uri)
     {
         if (uris == null || prioritizedURIs == null)
         {
             uris = new Vector();
             prioritizedURIs = new PrioritizedList();
         }

         uris.add(uri);
         Integer priority = uri.getPriority();
         prioritizedURIs.addObject((priority == null)? PrioritizedList.PRIORITY_NULL : priority.toString(), uri);
View Full Code Here

  public void addRef(Ref ref) {
    Integer priority = ref.getPriority();
   
    if (refs == null || prioritizedRefs == null) {
      refs = new Vector();
      prioritizedRefs = new PrioritizedList();
    }
   
    refs.add(ref);
    prioritizedRefs.addObject((priority == null)? "null" : priority.toString(), ref);
  }
View Full Code Here

  public void addService(Service service)
  {
    if (services == null || prioritizedServices == null)
    {
      services = new Vector();
      prioritizedServices = new PrioritizedList();
    }
   
    services.add(service);
    Integer priority = service.getPriority();
    prioritizedServices.addObject((priority == null)? "null" : priority.toString(), service);
View Full Code Here

    }
  }
 
 
  public void setSelectedServices (Collection svcs) {
    selectedServices = new PrioritizedList();
    Iterator i = svcs.iterator();
    while (i.hasNext()) {
      Service s = (Service)i.next();
      Integer priority = s.getPriority();
      String priStr = (priority == null)? "null" : priority.toString();
View Full Code Here

 
  /**
   * @return Returns the selectedServices.
   */
  public PrioritizedList getSelectedServices() {
    return (selectedServices == null)? new PrioritizedList() : selectedServices;
  }
View Full Code Here

TOP

Related Classes of org.openxri.util.PrioritizedList

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.