Package com.webobjects.foundation

Examples of com.webobjects.foundation.NSMutableDictionary


      response.appendContentString(" disabled");
    }
  }

  protected static NSDictionary processAssociations(NSDictionary associations) {
    NSMutableDictionary mutableAssociations = (NSMutableDictionary) associations;
    mutableAssociations.setObjectForKey(new WOConstantValueAssociation("button"), "type");
    return mutableAssociations;
  }
View Full Code Here


        try {
            rule = new ERD2WRule(eokeyvalueunarchiver);
        } catch(Throwable t) {
            // AK: this occurs mostly when we want to load a rule that contains an assigment class which can't be found
            //HACK cheesy way to get at the encoded rule dictionary
            NSMutableDictionary dict = (NSMutableDictionary)NSKeyValueCoding.Utility.valueForKey(eokeyvalueunarchiver,"propertyList");
            String ruleString = dict.toString();
            // now store the old assignment class
            dict.takeValueForKeyPath(dict.valueForKeyPath("rhs.class"), "assignmentClassName");
            // and push in the default class
            dict.takeValueForKeyPath(Assignment.class.getName(), "rhs.class");
            // try again
            try {
                rule = new ERD2WRule(eokeyvalueunarchiver);
                ruleString = rule.toString();
               
View Full Code Here

  @Override
  public NSMutableDictionary fetchRow() {
  if (!_fetchInProgress) {
    return null;
  }
    NSMutableDictionary row = null;
    if (hasMoreRowsToReturn()) {
      row = _fetchedRows.objectAtIndex(_fetchIndex++);
    }
    _fetchInProgress = hasMoreRowsToReturn();
    return row;
View Full Code Here

  public ERXDatabase(EOAdaptor adaptor) {
    super(adaptor);

    // AK: huge performance optimization when you use badly distributed LONG keys

    _snapshots = new NSMutableDictionary() {
      /**
       * Do I need to update serialVersionUID?
       * See section 5.6 <cite>Type Changes Affecting Serialization</cite> on page 51 of the
       * <a href="http://java.sun.com/j2se/1.4/pdf/serial-spec.pdf">Java Object Serialization Spec</a>
       */
 
View Full Code Here

  }

  public static HighlightMetadata highlightMetadataForObject(Object obj) {
    HighlightMetadata metadata = null;
    if (obj != null) {
      NSMutableDictionary highlightedObjects = (NSMutableDictionary) ERXWOContext.contextDictionary().valueForKey(AjaxHighlight.HIGHLIGHTED_KEY);
      if (highlightedObjects != null) {
        metadata = (HighlightMetadata) highlightedObjects.objectForKey(highlightedValue(obj));
      }
    }
    return metadata;
  }
View Full Code Here

    AjaxHighlight.highlight(obj, false);
  }

  public static final void highlight(Object obj, boolean isNew) {
    if (obj != null) {
      NSMutableDictionary highlightedObjects = (NSMutableDictionary) ERXWOContext.contextDictionary().valueForKey(AjaxHighlight.HIGHLIGHTED_KEY);
      if (highlightedObjects == null) {
        highlightedObjects = new NSMutableDictionary();
        ERXWOContext.contextDictionary().takeValueForKey(highlightedObjects, AjaxHighlight.HIGHLIGHTED_KEY);
      }
      highlightedObjects.setObjectForKey(new HighlightMetadata(isNew), highlightedValue(obj));
    }
  }
View Full Code Here

  public static void main(String[] args) {
    new DataCreator().createAll();
  }

  private NSDictionary optionsWithPrimaryKeySupportDisabled(NSDictionary options) {
    NSMutableDictionary mutableOptions = options.mutableClone();
    mutableOptions.setObjectForKey("NO", EOSchemaGeneration.CreatePrimaryKeySupportKey);
    mutableOptions.setObjectForKey("NO", EOSchemaGeneration.DropPrimaryKeySupportKey);
    return mutableOptions.immutableClone();
  }
View Full Code Here

    ajaxOptionsArray.addObject(new AjaxOption("color", AjaxOption.STRING));
    ajaxOptionsArray.addObject(new AjaxOption("bgColor", AjaxOption.STRING));
    ajaxOptionsArray.addObject(new AjaxOption("blend", AjaxOption.BOOLEAN));
    ajaxOptionsArray.addObject(new AjaxOption("border", AjaxOption.BOOLEAN));
    ajaxOptionsArray.addObject(new AjaxOption("compact", AjaxOption.BOOLEAN));
    NSMutableDictionary options = AjaxOption.createAjaxOptionsDictionary(ajaxOptionsArray, component, associations());
    return options;
  }
View Full Code Here

      pojoModel = new EOModel();
      pojoModel.setName("PojoModel");
      //ak: fake name for possible NPE
      pojoModel.setAdaptorName("JDBCAdaptor");
      //ak: fake dict for possible NPE
      pojoModel.setConnectionDictionary(new NSMutableDictionary());
      EOModelGroup.defaultGroup().addModel(pojoModel);
    }
    EOEntity entity = EOModelGroup.defaultGroup().entityNamed(entityName);
    /*if (entity != null) {
      pojoModel.removeEntity(entity);
View Full Code Here

      ajaxOptionsArray.addObject(new AjaxOption("steps", AjaxOption.NUMBER));
      ajaxOptionsArray.addObject(new AjaxOption("mode", AjaxOption.STRING));
      ajaxOptionsArray.addObject(new AjaxOption("onChange", AjaxOption.SCRIPT));
      ajaxOptionsArray.addObject(new AjaxOption("onComplete", AjaxOption.SCRIPT));
      ajaxOptionsArray.addObject(new AjaxOption("onTick", AjaxOption.SCRIPT));
    NSMutableDictionary options = AjaxOption.createAjaxOptionsDictionary(ajaxOptionsArray, component, associations());
    return options;

 
View Full Code Here

TOP

Related Classes of com.webobjects.foundation.NSMutableDictionary

Copyright © 2018 www.massapicom. 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.