Package com.google.api.explorer.client.navigation

Examples of com.google.api.explorer.client.navigation.EntryAggregatorView


          throw new RuntimeException("Unknown search result type: " + result.toString());
      }
    }

    if (!serviceResults.isEmpty()) {
      EntryAggregatorView serviceAggregator = new EntryAggregatorView();

      populateServiceEntries(serviceResults, serviceAggregator, serviceTagProcessors);

      searchResults.addSection("Services", serviceAggregator);
    }

    if (!methodResults.isEmpty()) {
      EntryAggregatorView methodAggregator = new EntryAggregatorView();

      for (MethodBundle bundle : methodResults) {
        String prefix =
            "m/" + bundle.getService().getName() + "/" + bundle.getService().getVersion() + "/";
        String serviceTitle =
            bundle.getService().displayTitle() + " " + bundle.getService().getVersion();
        populateMethodEntry(bundle.getMethod(), serviceTitle, prefix, methodAggregator);
      }

      searchResults.addSection("Methods", methodAggregator);
    }

    if (!historyResults.isEmpty()) {
      EntryAggregatorView historyAggregator = new EntryAggregatorView();
      populateHistoryItems("h/", historyResults, historyAggregator);
      searchResults.addSection("History", historyAggregator);
    }

    if (serviceResults.isEmpty() && methodResults.isEmpty() && historyResults.isEmpty()) {
View Full Code Here

TOP

Related Classes of com.google.api.explorer.client.navigation.EntryAggregatorView

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.