Package java.util

Examples of java.util.Vector.indexOf()


  public void withdraw(AspectSurrogate ext,Object txId) throws RemoteException,ClassNotFoundException {
    init();
    Aspect asp = qMgr.reconstructAspect(ext);

    List x = new Vector((extMgr.getAllAspects()));
    int extIndx = x.indexOf(asp);
    if (extIndx >= 0) {
      if (txId == null) {
        extMgr.withdraw((Aspect)(x.get(extIndx)));
      }
      else
View Full Code Here


        }
        if ( baseConfigName != null ) {
            Configuration cfg = ConfigurationManager.getConfiguration(baseConfigName);
            String[] parentCategories = cfg.getCategoryNames();
            for ( int i = 0 ; i < parentCategories.length ; i++) {
                if ( all.indexOf(parentCategories[i]) == -1 ) {
                    all.add(parentCategories[i]);
                }
            }
        }  
        return (String[]) all.toArray(new String[0]);
View Full Code Here

        Vector all = new Vector(allCategories);       
        if ( baseConfigName != null && includeParent ) {
            Configuration cfg = ConfigurationManager.getConfiguration(baseConfigName);
            String[] parentCategories = cfg.getCategoryNames();
            for ( int i = 0 ; i < parentCategories.length ; i++) {
                if ( all.indexOf(parentCategories[i]) == -1 ) {
                    all.add(parentCategories[i]);
                }
            }
        }       
        return (String[]) all.toArray(new String[0]);
View Full Code Here

        Vector all = new Vector(allCategories);       
        if ( baseConfigName != null && includeParent ) {
            Configuration cfg = ConfigurationManager.getConfiguration(baseConfigName);
            String[] parentCategories = cfg.getCategoryNames();
            for ( int i = 0 ; i < parentCategories.length ; i++) {
                if ( all.indexOf(parentCategories[i]) == -1 ) {
                    all.add(parentCategories[i]);
                }
            }
        }       
        return (String[]) all.toArray(new String[0]);
View Full Code Here

  for (int i = 0 ; i < folderList.size(); i++) {
      String folderId = ((FolderInfo)folderList.elementAt(i)).getFolderID();
      if (folderListSelector.getSelectedIndex() == -1) {
    folderListSelector.setSelectedValue(folderId, true);
      } else {
    int index = folderNameList.indexOf(folderId);
    if (index != -1)
        folderListSelector.addSelectionInterval(index, index);
      }
  }
  folderListSelector.setValueIsAdjusting(false);
View Full Code Here

    String missingAttribute = null;

    for (int i = 0; i < validAttributes.length; i++) {
        int attrPos;
        if (validAttributes[i].mandatory) {
                attrPos = temp.indexOf(validAttributes[i].name);
        if (attrPos != -1) {
            temp.remove(attrPos);
            valid = true;
        } else {
            valid = false;
View Full Code Here

                    // Get the next key.
                    Object key = keyIterator.next();

                    // Skip this element if the key is suppressed.
                    if (suppressedKeys != null &&
                        suppressedKeys.indexOf(key) != -1) {
                        continue;
                    }

                    // Get the field of the key.
                    Object keyElement = SerializerFactory.getState(key, null);
View Full Code Here

                    // Get the next key.
                    Object key = keyIterator.next();

                    // Skip this element if the key is suppressed.
                    if(suppressedKeys != null &&
                       suppressedKeys.indexOf(key) != -1) {
                        continue;
                    }

                    // Get the field of the key.
                    HintElement keyElement = (HintElement)hintTable.get(key);
View Full Code Here

                    if(srcInvalidBounds.isEmpty()) {
                        invalidRegion = srcInvalidRegion;
                        saveAllTiles = true;
                    } else {
                        // Get index of source which changed.
                        int idx = nodeSources.indexOf(evtSrc);

                        // Determine bounds of invalid destination region.
                        Rectangle dstRegionBounds =
                            oldOpImage.mapSourceRect(srcInvalidBounds,
                                                     idx);
View Full Code Here

               if (cm.member.equals(channel.getLocalAddress()))
               {
                  int nextTarget = r.nextInt(members.size());

                  //chose someone other than yourself
                  while (nextTarget == members.indexOf(channel.getLocalAddress()))
                  {
                     nextTarget = r.nextInt(members.size());
                  }
                  Address next = (Address) members.get(nextTarget);
                  String nextChar = getNext(receivedLetter);
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.