Package com.webobjects.foundation

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


        }

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

            if( object != null ){
                this.checkRule(rule, attributeName, errorDict, object, GSVEngine.ON_DEMAND);
            }
           
            //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);
                throw new NSValidation.ValidationException("Validity Exception", userInfo);
            }
           
        } else {
View Full Code Here

    public void convertRuleDictionaryToKeyValue(){
        NSMutableDictionary dict = new NSMutableDictionary();
        dict = selectedRule.parameters();
        String k,v;
        KeyValue temp;
        for(int i = 0; i<dict.allKeys().count();i++){
            k = (String)dict.allKeys().objectAtIndex(i);
            v = (String)dict.objectForKey(k);
            temp  = new KeyValue(k,v);
            keyValueParameters.addObject(temp);
        }
View Full Code Here

        NSMutableDictionary dict = new NSMutableDictionary();
        dict = selectedRule.parameters();
        String k,v;
        KeyValue temp;
        for(int i = 0; i<dict.allKeys().count();i++){
            k = (String)dict.allKeys().objectAtIndex(i);
            v = (String)dict.objectForKey(k);
            temp  = new KeyValue(k,v);
            keyValueParameters.addObject(temp);
        }
    }
View Full Code Here

        try {
            NSMutableDictionary unknownApps = _unknownApplications;
            // Should make this configurable?
            NSTimestamp cutOffDate = new NSTimestamp(System.currentTimeMillis() - 45000);

            NSArray unknownAppKeys = unknownApps.allKeys();
            for (Enumeration e = unknownAppKeys.objectEnumerator(); e.hasMoreElements(); ) {
                String unknownAppKey = (String) e.nextElement();
                NSMutableDictionary appDict = (NSMutableDictionary) unknownApps.valueForKey(unknownAppKey);
                if (appDict != null) {
                    NSArray appDictKeys = appDict.allKeys();
View Full Code Here

            NSArray unknownAppKeys = unknownApps.allKeys();
            for (Enumeration e = unknownAppKeys.objectEnumerator(); e.hasMoreElements(); ) {
                String unknownAppKey = (String) e.nextElement();
                NSMutableDictionary appDict = (NSMutableDictionary) unknownApps.valueForKey(unknownAppKey);
                if (appDict != null) {
                    NSArray appDictKeys = appDict.allKeys();
                    for (Enumeration e2 = appDictKeys.objectEnumerator(); e2.hasMoreElements(); ) {
                        String appDictKey = (String) e2.nextElement();
                        NSTimestamp lastLifebeat = (NSTimestamp) appDict.valueForKey(appDictKey);
                        if ( (lastLifebeat != null) && (lastLifebeat.before(cutOffDate)) ) {
                            appDict.removeObjectForKey(appDictKey);
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.