Package com.webobjects.foundation

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


          objectStore = theEC.parentObjectStore();
        }

        i = parentEditingContexts.count();
        while (i-- > 0) {
          EOEditingContext theEC = (EOEditingContext)parentEditingContexts.objectAtIndex(i);
          NSArray objectsMatchingQualifier = ERXEOControlUtilities.insertedObjects(theEC, entityNames, qualifier);
          if (objectsMatchingQualifier.count() > 0) {
            // fault the previous batch down
            objects = EOUtilities.localInstancesOfObjects(theEC, objects);
 
View Full Code Here


                NSMutableArray temp = new NSMutableArray(att.rules());
                if(temp.count()!=0)
                    temp.removeObject(selectedRule());
                GSVRule ru=null;
                for(int s=0;s<temp.count();s++){
                    ru = (GSVRule)temp.objectAtIndex(s);
                    if(ru.ruleName().equals(selectedRule().ruleName())){
                        errorMessage = "There is already a rule named: "+ selectedRule().ruleName();
                        error=true;
                        return null;
                    }
View Full Code Here

    public NSDictionary valDictFromSearchForLookup(Object aval) {
        Object lowVal = null;
        Object highVal = null;
        NSMutableArray possibleValuesToUse = possibleValuesToUse();
        Object maxVal = possibleValuesToUse.lastObject();
        Object minVal = possibleValuesToUse.objectAtIndex(0);
        double v = DRValueConverter.converter().doubleForValue(aval);
        double maxv = DRValueConverter.converter().doubleForValue(maxVal);
        double minv = DRValueConverter.converter().doubleForValue(minVal);

        if (!isPeriodic()) {
View Full Code Here

            if (nextIndex == pvcount) {
                return null;
            }

            lowVal = possibleValuesToUse.objectAtIndex(i);
            highVal = possibleValuesToUse.objectAtIndex(nextIndex);
            minv = DRValueConverter.converter().doubleForValue(lowVal);
            maxv = DRValueConverter.converter().doubleForValue(highVal);

            if ((v <= maxv) && (v > minv)) {
View Full Code Here

            if (nextIndex == pvcount) {
                return null;
            }

            lowVal = possibleValuesToUse.objectAtIndex(i);
            highVal = possibleValuesToUse.objectAtIndex(nextIndex);
            minv = DRValueConverter.converter().doubleForValue(lowVal);
            maxv = DRValueConverter.converter().doubleForValue(highVal);

            if ((v <= maxv) && (v > minv)) {
                break;
View Full Code Here

            Object value = eokeyvaluequalifier.value();
            Object obj;
            if(value == NSKeyValueCoding.NullValue || (value instanceof EOQualifierVariable)) {
                NSMutableDictionary mapping = new NSMutableDictionary(l);
                 for(int j = 0; j < l; j++) {
                    mapping.setObjectForKey(value, destinationAttibuteNames.objectAtIndex(j));
                }
                obj = mapping;
            } else {
                NSMutableDictionary mapping = new NSMutableDictionary(l);
                for(int j = 0; j < l; j++) {
View Full Code Here

              colCounts.addObject(Integer.valueOf(maxColumns));
              //log.info("Added: " + item + " " + colCounts);
            }
            //log.info("Start: " + item + "  " + currentRow + "/" + rowSpan + " " + currentCol + "/" + colSpan + " " + colCounts);
            for(int i = row; i < row + rowSpan; i++) {
              int currentMaxColumns = ((Integer) colCounts.objectAtIndex(i)).intValue();
              currentMaxColumns = currentMaxColumns - (colSpan - (i == row ? 1 : 0));
              colCounts.replaceObjectAtIndex(Integer.valueOf(currentMaxColumns), i);
              //log.info("Curr: " + item + "  " + i + "/" + rowSpan + " " + currentMaxColumns + "/" + colSpan + " " + colCounts);
            }
            //log.info("Intern: " + item + "  " + currentRow + "/" + rowSpan + " " + currentCol + "/" + colSpan + " " + colCounts);
View Full Code Here

              currentMaxColumns = currentMaxColumns - (colSpan - (i == row ? 1 : 0));
              colCounts.replaceObjectAtIndex(Integer.valueOf(currentMaxColumns), i);
              //log.info("Curr: " + item + "  " + i + "/" + rowSpan + " " + currentMaxColumns + "/" + colSpan + " " + colCounts);
            }
            //log.info("Intern: " + item + "  " + currentRow + "/" + rowSpan + " " + currentCol + "/" + colSpan + " " + colCounts);
            int currentRowMaxColums = ((Integer) colCounts.objectAtIndex(row)).intValue();
            total += rowSpan * colSpan;
            col += colSpan;
            if(col >= currentRowMaxColums) {
              row++;
              col = 0;
View Full Code Here

    NSMutableArray nsmutablearray = _ppbproject.fileListForKey("FRAMEWORKS", false);

    if (nsmutablearray != null) {
      int i = 0;
      for (int j = nsmutablearray.count(); i < j; i++) {
        String s = (String) nsmutablearray.objectAtIndex(i);
        _pwoproject.extractFrameworkNamed(s);
      }
    }
  }
View Full Code Here

      if (nsmutablearray == null) {
        continue;
      }
      int j = 0;
      for (int k = nsmutablearray.count(); j < k; j++) {
        String s = (String) nsmutablearray.objectAtIndex(j);
        if (NSPathUtilities.pathIsEqualToString(NSPathUtilities.pathExtension(s), "eomodeld")) {
          String s1 = _ppbproject.contentsFolder().getAbsolutePath() + File.separator + "Resources" + File.separator + s;
          _pwoproject.addModelFilePath(s1);
        }
      }
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.