Examples of immutableClone()


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

              selectedObjects = ((ERDPickPageInterface)sender).selectedObjects();
            } else {
              selectedObjects = (NSArray)sender.valueForKeyPath("selectedObjects");
            }
            NSArray relatedObjects = (NSArray)eo.valueForKeyPath(relationshipName);
            for(Enumeration e = relatedObjects.immutableClone().objectEnumerator(); e.hasMoreElements(); ) {
                EOEnterpriseObject relatedObject = (EOEnterpriseObject)e.nextElement();
                EOEnterpriseObject pickedObject = (EOEnterpriseObject)relatedObject.valueForKey(pickRelationshipName);
                if(!selectedObjects.containsObject(pickedObject)) {
                    eo.removeObjectFromBothSidesOfRelationshipWithKey(relatedObject, relationshipName);
                    ec.deleteObject(relatedObject);
View Full Code Here

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

      if (hasBinding(Bindings.onSuccess)) _options.add("onSuccess: " + valueForBinding(Bindings.onSuccess));
      if (hasBinding(Bindings.onComplete)) _options.add("onComplete: " + valueForBinding(Bindings.onComplete));
      if (hasBinding(Bindings.onCreate)) _options.add("onCreate: " + valueForBinding(Bindings.onCreate));
      if (hasBinding(Bindings.onException)) _options.add("onException: " + valueForBinding(Bindings.onException));

      return _options.immutableClone();
    }
   
    public String options() {
      return _options().componentsJoinedByString(",");
    }
View Full Code Here

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

      NSMutableArray _options = super._options().mutableClone();
     
      if (hasBinding(Bindings.method)) _options.add("method: '" + valueForBinding(Bindings.method) + "'");
      _options.add("parameters: this.form.serialize(true)");
     
      return _options.immutableClone();
    }

  @Override
  protected String url() {
      if (hasBinding(Bindings.action)) {
View Full Code Here

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

                Object aSelection = selectionsEnum.nextElement();
                if (maybeSortedList().containsObject(aSelection)) {
                    selections.addObject(aSelection);
                }
            }
            _selections = selections.immutableClone();
        }
        return _selections;
    }

    /**
 
View Full Code Here

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

          al.addObject(NSKeyValueCoding.NullValue);
        }
      }
      NSArray finalArray = al;
      if (immutableClone) {
        finalArray = al.immutableClone();
      }
      state.setSerialized(o, finalArray);
      return finalArray;
    }
    catch (UnmarshallException e) {
View Full Code Here

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

                final String selectorKey = (String)sortOrderingDefinition.objectAtIndex(i++);
                final EOSortOrdering sortOrdering = new EOSortOrdering(key, ERXArrayUtilities.sortSelectorWithKey(selectorKey));
                (sortOrderings != null ? sortOrderings : (sortOrderings = new NSMutableArray())).addObject(sortOrdering);
            }

            _defaultSortOrderingsForDestinationEntity = sortOrderings != null ? sortOrderings.immutableClone() : NSArray.EmptyArray;
        }

        return _defaultSortOrderingsForDestinationEntity;
    }
View Full Code Here

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

            EOEntity e = EOModelGroup.defaultGroup().entityNamed(entityName);
            log.debug("embeddedEntityName = " + entityName);
            NSMutableArray classProperties = e.classPropertyNames().mutableClone();
            NSArray relationships = (NSArray)e.relationships().valueForKey("name");
            classProperties.removeObjectsInArray(relationships);
            return classProperties.immutableClone();
        }
       
        return NSArray.EmptyArray;
    }
   
View Full Code Here

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

        for (EOEntity entity : entities) {
            if ( ! ERXModelGroup.isPrototypeEntity(entity)) {
                filteredEntities.addObject(entity);
            }
        }
        allEntities = filteredEntities.immutableClone();
    }


    /**
     * @return list of all entities in all models in the model group
View Full Code Here

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

               
                if ( theObject != null )
                    a.addObject(theObject);
            }
           
            result = a.immutableClone();
        }
       
        return result != null ? result : NSArray.EmptyArray;
    }
View Full Code Here

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

      // HP: There is no guarantee that the array of objects has the same order of the array of
      // globalIDs. We must ensure the array of objects is ordered as expected.
      ensureSortOrdering(ec, gids, objects);
     
      result = objects.immutableClone();
    }
    else {
      // we have hints, use them
     
      EOModel model = EOModelGroup.defaultGroup().entityNamed(spec.entityName()).model();
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.