Package com.webobjects.foundation

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


            NSArray keys = associations.allKeysForObject(association);
            //if (log.isDebugEnabled())
            //    log.debug("Constructing Ognl association for binding key(s): "
            //              + (keys.count() == 1 ? keys.lastObject() : keys) + " expression: " + ognlExpression);
            if (keys.count() == 1) {
              associations.setObjectForKey(newAssociation, keys.lastObject());
            }
            else {
              for (Enumeration ee = keys.objectEnumerator(); ee.hasMoreElements();) {
                associations.setObjectForKey(newAssociation, e.nextElement());
              }
View Full Code Here


    NSArray paths = super.getRequestHandlerPathForRequest(aRequest);
    NSMutableArray temp = new NSMutableArray();
    if (paths != null) {
      int pathCount = paths.count();
      String firstPathComponent = pathCount > 0 ? (String)paths.objectAtIndex(0) : null;
      String lastPathComponent = (String)paths.lastObject();

      if (pathCount > 2) {
        if (useClassName && useActionName) {
          temp.addObject(firstPathComponent);
          temp.addObject(lastPathComponent);
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.