Package com.webobjects.foundation

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


                int index = list.indexOfObject(aSelection);
                if (index >= 0) {
                    indexes.addObject(index);
                }
            }
            _selectionsString = indexes.componentsJoinedByString(", ");
        }
        return _selectionsString;
    }

    /**
 
View Full Code Here


            if (displayString != null) {
                displayString = displayString.replaceAll("'", "\\\\'");
            }
            jsHashValues.addObject(i + " : '" + displayString + "'");
        }
        return "{ " + jsHashValues.componentsJoinedByString(", ") + " }";
    }

    /**
     * Creates a JSON/JavaScript-formatted array of the selected list items' offsets.
     * @return the array representation
View Full Code Here

            int offset = indexOfObjectInArrayUsingERXEOControlUtilitiesEOEquals(obj, sortedList);
            if (offset >= 0) {
                offsets.addObject(offset);
            }
        }
        return "[" + offsets.componentsJoinedByString(", ") + "]";
    }

    /**
     * Builds a cached dictionary of the list item offsets and their display strings.
     * @return the dictionary
View Full Code Here

        /*  Report the result */
    if (reportLoggingEnabled && projectsInfo.count() > 0 && log.isInfoEnabled()) {
      StringBuilder message = new StringBuilder();
      message.append("\n\n").append("ERXProperties has found the following Properties files: \n");
      message.append(projectsInfo.componentsJoinedByString("\n"));
      message.append('\n');
      message.append("ERXProperties currently has the following properties:\n");
      message.append(ERXProperties.logString(ERXSystem.getProperties()));
      // ERXLogger.configureLoggingWithSystemProperties();
      log.info(message.toString());
View Full Code Here

    }
        if (entityName() != null) {
            classes.addObject(elementClassPrefix + entityName());
        }
        classes.addObject(elementClassPrefix + d2wContext.dynamicPage());
    return classes.componentsJoinedByString(" ");
    }

    /**
     * Gets the CSS class(es) that should be applied to the current property name container element.
     * @return the css classes
View Full Code Here

            NSArray explicitClasses = ERXValueUtilities.arrayValueWithDefault(d2wContext.valueForKey(cssKey), NSArray.EmptyArray);
            if (explicitClasses.count() > 0) {
                classes.addObjectsFromArray(explicitClasses);
            }
        }
        return classes.componentsJoinedByString(" ");
    }

    /**
     * Gets any inline style declarations for the current property name container element.
     * @return the inline style declarations
View Full Code Here

        }
        else {
          first = false;
        }
      }
      return "\t" + subParts.componentsJoinedByString("\n\t") + "\n";
    }
  }

  /**
   * The application name pattern converter is useful for logging the current
View Full Code Here

    // FIXME: Must be a better way of doing
    public String nameForSet(NSSet set) {
        NSMutableArray stringObjects = new NSMutableArray();
        stringObjects.addObjectsFromArray(set.allObjects());
        ERXArrayUtilities.sortArrayWithKey(stringObjects, "description");
        return stringObjects.componentsJoinedByString(".");
    }


    // stuff to dump and restore the cache. This should increase the experience
    // for the first folks after an app needed to be restarted and the rules have not been fired yet
View Full Code Here

            classes.addObject("unset");
        }
        if (currentLoggerLevel() == aLoggerLevel) {
            classes.addObject("selected");
        }
        return classes.componentsJoinedByString(" ");
    }

    public String classForLoggerRow() {
        NSMutableArray array = new NSMutableArray();
        Level level = logger().getLevel();
View Full Code Here

            array.addObject(level.toString().toLowerCase());
        }
        if (rowIndex % 2 == 0) {
            array.addObject("alt");
        }
        return array.componentsJoinedByString(" ");
    }

    public boolean omitLoggerLevelSettingDecoration() {
        return classNameForLoggerLevelName().length() == 0;
    }
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.