Examples of componentsJoinedByString()


Examples of com.webobjects.foundation.NSArray.componentsJoinedByString()

    int count = objects.count();
    if (count == 0) {
      // everything OK
    }
    else {
      String keyPathsString = keyPaths.componentsJoinedByString(",");
      if (count == 1) {
        // if we get here, we found an object matching the values
        if (ERXEOControlUtilities.isNewObject(eo)) {
          throw ERXValidationFactory.defaultFactory().createException(eo, keyPathsString, dict, "UniquenessViolationNewObject");
        }
View Full Code Here

Examples of com.webobjects.foundation.NSArray.componentsJoinedByString()

                        NSMutableArray tmp = new NSMutableArray();
                        tmp.addObject(DEFAULT_PAIR);
                        tmp.addObjectsFromArray(chosenObjects);
                        chosenObjects = tmp;
                    }
                    chosenKeyPaths = keyPathsArray.componentsJoinedByString ( "," );
                }else {
                    chosenObjects = ERXConstant.EmptyArray;
                }
                if(log.isDebugEnabled()) log.debug("chosenObjects = "+chosenObjects);
            } else if(((ERXSession)session()).browser().isNetscape()) {
View Full Code Here

Examples of com.webobjects.foundation.NSArray.componentsJoinedByString()

                    continue;
                }

                NSArray queryInstanceError = (NSArray) instanceResponse.valueForKey("errorResponse");
                if (queryInstanceError != null) {
                    anInstance.setStatisticsError(queryInstanceError.componentsJoinedByString(", "));
                    continue;
                }

                String queryInstanceResponse = (String) instanceResponse.valueForKey("queryInstanceResponse");
                if (queryInstanceResponse == null) continue;
View Full Code Here

Examples of com.webobjects.foundation.NSArray.componentsJoinedByString()

        if (groupingKeyDisplayKey!=null && !groupingKeyDisplayKey.equals("")){
                if (sublistSection instanceof EOEnterpriseObject) {
                    result = (String)((EOEnterpriseObject)sublistSection).valueForKey(groupingKeyDisplayKey);
                }else if (sublistSection instanceof NSArray) {
                    NSArray values = (NSArray)((NSArray)sublistSection).valueForKey(groupingKeyDisplayKey);
                    result = values.componentsJoinedByString(", ");
                }
            } else {
                result = sublistSection.toString();
            }
        }else {
View Full Code Here

Examples of com.webobjects.foundation.NSArray.componentsJoinedByString()

                LogLog.error("Can't create response!", ex);
                result = dict.objectForKey("formattedMessage") + "\n";
                result = dict.objectForKey("extraInfo") + "\n";
                NSArray lines = (NSArray)dict.objectForKey("reasonLines");
                if(lines != null) {
                  result = lines.componentsJoinedByString("\n");
                }
            }
        } else {
            result = layout.format(event);
            result = result + "\n" + ERXUtilities.stackTrace();
View Full Code Here

Examples of com.webobjects.foundation.NSArray.componentsJoinedByString()

        if (!enableIdentifierQuoting()) {
            return name;
        }
      //Needs to replicate functionality of EOSQLExpression.sqlStringForSchemaObjectName(String name).  For example MySchema.MyTable needs to be quoted "MySchema"."MyTable"
        NSArray components = NSArray.componentsSeparatedByString(name, ".");
        return "\"" + components.componentsJoinedByString("\".\"") + "\"";
    }

    @Override
    protected String formatColumnName(String name) {
        if (!enableIdentifierQuoting()) {
View Full Code Here

Examples of com.webobjects.foundation.NSArray.componentsJoinedByString()

        ERXLocalizer l = ERXLocalizer.localizerForLanguage("English");
        jode.GlobalOptions.err = new PrintWriter(new StringWriter());
        documentationPaths = (NSMutableArray)l.valueForKey("DocumentationPaths");

        NSArray arr = (NSArray)l.valueForKey("ClassPaths");
        cp = arr.componentsJoinedByString(":");
        ClassInfo.setClassPath(cp);
        arr = (NSArray)l.valueForKey("PackagesToIndex");
        for(Enumeration e = arr.objectEnumerator(); e.hasMoreElements();) {
            PackageProxy.indexPackage((String)e.nextElement(), null, true);
        }
View Full Code Here

Examples of com.webobjects.foundation.NSArray.componentsJoinedByString()

        buffer.append(' ');
      }
     
    NSArray directorNames = (NSArray)valueForKeyPath(Movie.DIRECTORS.dot("fullName").toString());
    if (directorNames != null && directorNames.count() > 0) {
      buffer.append(directorNames.componentsJoinedByString(" "));
      buffer.append(' ');
    }
   
    NSArray talentNames = (NSArray)valueForKeyPath(Movie.ROLES.dot(MovieRole.TALENT).dot("fullName").toString());
    if (talentNames != null && talentNames.count() > 0) {
View Full Code Here

Examples of com.webobjects.foundation.NSArray.componentsJoinedByString()

      buffer.append(' ');
    }
   
    NSArray talentNames = (NSArray)valueForKeyPath(Movie.ROLES.dot(MovieRole.TALENT).dot("fullName").toString());
    if (talentNames != null && talentNames.count() > 0) {
      String talentNamesString = talentNames.componentsJoinedByString(" ");
      NSLog.out.appendln( "Movie.searchableContent: talent names: " + talentNamesString);
      buffer.append(talentNamesString);
      buffer.append(' ');
    }
    if (log.isDebugEnabled()) {
View Full Code Here

Examples of com.webobjects.foundation.NSArray.componentsJoinedByString()

     *    the possibly encrypted primary keys.
     */
    public static NSDictionary dictionaryOfFormValuesForEnterpriseObjects(NSArray eos, String separator, boolean encrypt){
        String base = encodeEnterpriseObjectsPrimaryKeyForUrl(eos, separator, encrypt);
        NSArray elements = NSArray.componentsSeparatedByString(base, "&");
        return(NSDictionary)NSPropertyListSerialization.propertyListFromString("{"+elements.componentsJoinedByString(";")+";}");
    }

    /**
     * Simple cover method that calls the method: <code>
     * encodeEnterpriseObjectsPrimaryKeyForUrl</code> with
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.