Package com.webobjects.foundation

Examples of com.webobjects.foundation.NSMutableArray.containsObject()


                      // Prefer the parent entity as long as it is using the same table
                        EOEntity root = entity;
                        while (root.parentEntity() != null &&
                             lowercaseTableName.equalsIgnoreCase(root.parentEntity().externalName()))
                            root = root.parentEntity();
                        if (! possibleEntities.containsObject(root))
                          possibleEntities.addObject(root);
                  }
              }
            }
View Full Code Here


            return a;
        }
       
        public void updateClassProperties(EOEntity entity, Object o, boolean add) {
            NSMutableArray array = entity.classProperties().mutableClone();
            boolean contains = array.containsObject(o);
            if(add && !contains) {
                array.addObject(o);
                entity.setClassProperties(array);
            } else if(!add && contains){
                array.removeObject(o);
View Full Code Here

      if (browser() != null) {
        _messageEncoding = browser().messageEncodingForLanguage(_localizer.language());
      }

      NSMutableArray languageList = new NSMutableArray(_localizer.language());
      if (!languageList.containsObject("Nonlocalized"))
        languageList.addObject("Nonlocalized");
      setLanguages(languageList);
    }
  }
View Full Code Here

                                                                 null);
                log.debug("Beginning loading of shared EOs");
                NSMutableArray loadedModels = new NSMutableArray();
                for (Enumeration e = _modelList.objectEnumerator(); e.hasMoreElements();) {
                    currentModel = (EOModel)e.nextElement();
                    if (!loadedModels.containsObject(currentModel.name())) {
                        loadSharedObjectsForModel(currentModel);
                        loadedModels.addObject(currentModel.name());
                    }
                }
                NSNotificationCenter.defaultCenter().removeObserver(this, EOAdaptorContext.AdaptorContextBeginTransactionNotification, null);
View Full Code Here

      Object value = valueForKey(key);

      if ((value instanceof NSMutableArray)) {
        NSMutableArray mutableValue = (NSMutableArray) value;

        if (mutableValue.containsObject(eo)) {
          willChange();
          mutableValue.removeObject(eo);
        }
      } else if ((value instanceof NSArray)) {
        NSArray immutableValue = (NSArray) value;
View Full Code Here

      Object value = valueForKey(key);

      if ((value instanceof NSMutableArray)) {
        NSMutableArray mutableValue = (NSMutableArray) value;

        if (!mutableValue.containsObject(eo)) {
          willChange();
          mutableValue.addObject(eo);
        }
      } else if ((value instanceof NSArray)) {
        NSArray immutableValue = (NSArray) value;
View Full Code Here

      }
      woresponse._appendContentAsciiString("\n<option");
      if (nsmutablearray != null || vector1 != null) {
        boolean flag2 = false;
        if (_selections != null) {
          flag2 = nsarray == null ? vector1.contains(obj2) : nsmutablearray.containsObject(obj2);
        }
        else {
          String s3 = null;
          if (_value != null) {
            s3 = s;
View Full Code Here

            s3 = s;
          }
          else {
            s3 = WOShared.unsignedIntString(i);
          }
          flag2 = nsarray == null ? vector1.contains(s3) : nsmutablearray.containsObject(s3);
        }
        if (flag2) {
          woresponse.appendContentCharacter(' ');
          woresponse._appendContentAsciiString("selected=\"selected\"");
        }
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.