Examples of allKeys()


Examples of com.webobjects.foundation.NSDictionary.allKeys()

            log.debug("Object " + c.valueForKey("object"));
            log.debug("qualifierFormat "+qualFormat);
            log.debug("args "+args);
            log.debug("switchDictionary " + switchDictionary);
        }
        for(Enumeration e = switchDictionary.allKeys().objectEnumerator();
            e.hasMoreElements();){
            String switchKey = (String)e.nextElement();
            String completedQualFormat =
                NSArray.componentsSeparatedByString( qualFormat, "@@").componentsJoinedByString(switchKey);
            EOQualifier qualifier =
View Full Code Here

Examples of com.webobjects.foundation.NSDictionary.allKeys()

       
        if (totalDict == null) {
            return 0;
        }

        int totalCount = totalDict.allKeys().count();
        return totalCount;
    }


    public String colorForCoords() {
View Full Code Here

Examples of com.webobjects.foundation.NSDictionary.allKeys()

    public static void reapplyChanges(EOEnterpriseObject eo, EOGeneralAdaptorException e) {
        EOAdaptorOperation adaptorOp = (EOAdaptorOperation) e.userInfo().objectForKey(EOAdaptorChannel.FailedAdaptorOperationKey);
        NSDictionary changedValues = adaptorOp.changedValues();
        EOEntity entity = ERXEOAccessUtilities.entityForEo(eo);
        EOEditingContext ec = eo.editingContext();
        NSArray keys = changedValues.allKeys();
        NSMutableSet relationships = new NSMutableSet();
       
        for (int i=0; i<keys.count(); i++) {
            String key = (String)keys.objectAtIndex(i);
            EOAttribute attrib = entity.attributeNamed(key);
View Full Code Here

Examples of com.webobjects.foundation.NSDictionary.allKeys()

        _unknownAppLock.startReading();

        try {
            NSDictionary appDict = (NSDictionary) _unknownApplications.valueForKey(name);
            if (appDict != null) {
                NSArray keysArray = appDict.allKeys();
                if ( (keysArray != null) && (keysArray.count() > 0) ) {
                    return (String) keysArray.objectAtIndex(0);
                }
            }
            return null;
View Full Code Here

Examples of com.webobjects.foundation.NSDictionary.allKeys()

        if(_totalCount == -1) {
            NSDictionary d = totalDict();
            if (d == null) {
                _totalCount = 0;
            } else {
                _totalCount = d.allKeys().count();
            }
        }
        return _totalCount;
    }
View Full Code Here

Examples of com.webobjects.foundation.NSDictionary.allKeys()

          // MS: We need to do a case-insensitive lookup of the type
          // info string representation, because some databases say
          // "VARCHAR" and some "varchar".
          // Awesome.
          for (String possibleTypeInfoStringRep : (NSArray<String>) typeInfo.allKeys()) {
            if (typeInfoStringRep.equalsIgnoreCase(possibleTypeInfoStringRep)) {
              typeInfoStringRep = possibleTypeInfoStringRep;
              break;
            }
          }
View Full Code Here

Examples of com.webobjects.foundation.NSDictionary.allKeys()

  public void extractResourcesFromProjectIntoWOProject(_JR_WOLipsProject _ppbproject, _WOProject _pwoproject) {

    //System.out.println("_IDEProjectPB.extractResourcesFromProjectIntoWOProject: " + _ppbproject + ", " + _ppbproject.projectName());
    NSDictionary nsdictionary = _ppbproject.filesTable();
    NSArray nsarray = nsdictionary.allKeys();

    int i = 0;
    for (int j = nsarray.count(); i < j; i++) {

      String s = (String) nsarray.objectAtIndex(i);
View Full Code Here

Examples of com.webobjects.foundation.NSDictionary.allKeys()

        StringBuilder sb = new StringBuilder();
        sb.append("<select id=\"").append(selectTagName).append("\" name=\"").append(selectTagName).append("\">\n");
        NSDictionary allValuesDict = cachedPossibleValues();
        NSArray sortedValues = maybeSortedList();
        NSArray selections = selections();
        for (Enumeration keysEnum = allValuesDict.allKeys().objectEnumerator(); keysEnum.hasMoreElements();) {
            Integer key = (Integer)keysEnum.nextElement();
            String displayName = (String)allValuesDict.objectForKey(key);
            Object currentObject = sortedValues.objectAtIndex(key);
            if (!selections.containsObject(currentObject)) {
                sb.append("\t<option value=\"").append(key).append("\">").append(displayName).append("</option>\n");
View Full Code Here

Examples of com.webobjects.foundation.NSMutableDictionary.allKeys()

        }
    }
      }
  }
  //if the error dict contains values, rules failed, so throw an exception
  if(errorDict.allKeys().count()>0) {
      return errorDict;
  } else {
      return null;
  }
    }
View Full Code Here

Examples of com.webobjects.foundation.NSMutableDictionary.allKeys()

        }

    }
      }   
            //if the error dict contains values, rules failed, so throw an exception
            if(errorDict.allKeys().count()>0){
                NSDictionary userInfo = new NSDictionary(errorDict, GSVEngine.ERROR_DICTIONARY_KEY);
                System.out.println("eo="+eoObject);
                throw new NSValidation.ValidationException("Validity Exception", userInfo);
            }
           
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.