Package java.util

Examples of java.util.Map.entrySet()


        throw new TransformationException(ex);
      }
    }

    // populate the concept
    Iterator iter = propertyValues.entrySet().iterator();
    while(iter.hasNext())
    {
      Map.Entry entry = (Map.Entry)iter.next();
      Object value = entry.getValue();
      TemplateDescriptorBase descriptor = (TemplateDescriptorBase)entry.getKey();
View Full Code Here


    /**
     * Add any custom headers to the request
     */
    Map customHeaders = webForward.getCustomHeaders();
    String header;
    for (Iterator it = customHeaders.entrySet().iterator(); it.hasNext();) {
      Map.Entry entry = (Map.Entry) it.next();
      header = (String) entry.getKey();
      Vector v = (Vector) entry.getValue();
      for (Iterator it2 = v.iterator(); it2.hasNext();) {
        method.getProxiedRequest().addHeaderField(header, (String) it2.next());
View Full Code Here

      int size = namespaces.size();

      // TODO: enable non-normative cosmetic sort by prefix ???
      // if (size > 1) namespaces = new java.util.TreeMap(namespaces);

      Iterator iter = namespaces.entrySet().iterator();
      for (int i = 0; i < size; i++) {
        Map.Entry entry = (Map.Entry) iter.next();
        String uri = (String) entry.getValue();
        if (uri.length() > 0) { // xmlns="" is unnecessary
          String prefix = (String) entry.getKey();
View Full Code Here

      Map currentlyLoadedExtensions = getLoadedExtensions();

      // If there are any pending removals or installations, we cannot
      // reload
      boolean pending = false;
      for (Iterator i = currentlyLoadedExtensions.entrySet().iterator(); !pending && i.hasNext();) {
        Map.Entry ent = (Map.Entry) i.next();
        final ExtensionBundle bundle = (ExtensionBundle) ent.getValue();
        pending = bundle.getType() == ExtensionBundle.TYPE_PENDING_INSTALLATION || bundle.getType() == ExtensionBundle.TYPE_PENDING_REMOVAL
          || bundle.getType() == ExtensionBundle.TYPE_PENDING_UPDATE
          || bundle.getType() == ExtensionBundle.TYPE_PENDING_STATE_CHANGE;
View Full Code Here

      // Look for new plugins
      Map newLoadedPlugins = getLoadedPlugins();

      // Look for new plugins
      boolean newPluginsFound = false;
      for (Iterator i = newLoadedPlugins.entrySet().iterator(); i.hasNext();) {
        Map.Entry ent = (Map.Entry) i.next();
        if (!currentlyLoadedPlugins.containsKey(ent.getKey())) {
          ExtensionDescriptor des = (ExtensionDescriptor) newLoadedPlugins.get(ent.getKey());
          des.getApplicationBundle().setType(ExtensionBundle.TYPE_PENDING_INSTALLATION);
          newPluginsFound = true;
View Full Code Here

      Map newLoadedExtensions = getLoadedExtensions();

      // Look for extension updates
      File updatedExtensionsDir = ExtensionStore.getInstance().getUpdatedExtensionsDirectory();
      boolean updatesFound = false;
      for (Iterator i = newLoadedExtensions.entrySet().iterator(); i.hasNext();) {
        Map.Entry ent = (Map.Entry) i.next();
        if (new File(updatedExtensionsDir, (String) ent.getKey()).exists()) {
          final ExtensionBundle bundle = (ExtensionBundle) ent.getValue();
          for (Iterator j = bundle.iterator(); j.hasNext();) {
            ExtensionDescriptor des = (ExtensionDescriptor) j.next();
View Full Code Here

        GlobalWarningManager.getInstance().addMultipleGlobalWarning(new GlobalWarning(GlobalWarning.MANAGEMENT_USERS, new BundleActionMessage("extensions",
                "extensionStore.message.extensionUpdatedRestartRequired"), DismissType.DISMISS_FOR_USER));
      }

      // Check for new extensions
      for (Iterator i = newLoadedExtensions.entrySet().iterator(); i.hasNext();) {
        Map.Entry ent = (Map.Entry) i.next();
        if (!currentlyLoadedExtensions.containsKey(ent.getKey())) {
          final ExtensionBundle bundle = (ExtensionBundle) ent.getValue();

          // If installing, there may be a license agreement to handle
View Full Code Here

     * @param session session
     */
    public void initialize(HttpSession session) {
        super.initialize(session, "user");
        Map active = LogonControllerFactory.getInstance().getActiveSessions();
        for (Iterator i = active.entrySet().iterator(); i.hasNext();) {
            Map.Entry entry = (Map.Entry) i.next();
            String ticket = (String) entry.getKey();
            SessionInfo info = (SessionInfo) entry.getValue();
            ActiveSession activeSession = new ActiveSession(info);
            getModel().addItem(activeSession);
View Full Code Here

        classElement.setAttribute("name", data.getName());
        classElement.setAttribute("type", data.isFCO() ? "FCO" : "SCO");
        classElement.setAttribute("version", ObjectManagerFactoryImpl.getVersionNumber());

        Map dataProps = data.getProperties();
        Iterator propsIter = dataProps.entrySet().iterator();
        while (propsIter.hasNext())
        {
            Map.Entry entry = (Map.Entry)propsIter.next();
            String key = (String)entry.getKey();
            Object val = entry.getValue();
View Full Code Here

      PortTypeImplm portType;
      OperationImplm operation;
      List<PortTypeImplm> portTypeList = new ArrayList<PortTypeImplm>();
      List<OperationImplm> operationList = new ArrayList<OperationImplm>();

      Set s = map.entrySet();
      Iterator it = s.iterator();
      while(it.hasNext())
          {
              // key=value separator this by Map.Entry to get key and value
              Map.Entry m = (Map.Entry)it.next();
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.