Package com.webobjects.foundation

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


        _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

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

          // 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

  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

        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

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.