Package com.webobjects.appserver._private

Examples of com.webobjects.appserver._private.WOKeyValueAssociation


    _associations = associations.mutableClone();
    _attachment = _associations.removeObjectForKey("attachment");
    _download = _associations.removeObjectForKey("download");
    _target = _associations.removeObjectForKey("target");
    if (_attachment == null) {
      throw new WODynamicElementCreationException("<ERAttachmentLink> The 'attachment' binding is required.");
    }
    _configurationName = _associations.removeObjectForKey("configurationName");
  }
View Full Code Here


    _href = _associations.removeObjectForKey("href");
    _type = _associations.removeObjectForKey("type");
    _framework = _associations.removeObjectForKey("framework");
    _filename = _associations.removeObjectForKey("filename");
    if(_filename == null && _href == null) {
      throw new WODynamicElementCreationException("Either 'href' or 'filename' must be bound: " + this);
    }
    if(_filename != null && _href != null) {
      throw new WODynamicElementCreationException("'href' and 'filename' can't both  be bound: " + this);
    }
  }
View Full Code Here

  private WOAssociation _readonly;

  public ERXWOPasswordField(String name, NSDictionary associations, WOElement template) {
    super("input", associations, null);
    if (_value == null || !_value.isValueSettable()) {
      throw new WODynamicElementCreationException("<ERXWOPasswordField> 'value' attribute not present or is a constant.");
    }
    _hiddenValue = _associations.removeObjectForKey("hiddenValue");
    _hashValue = _associations.removeObjectForKey("hashValue");
  _readonly = _associations.removeObjectForKey("readonly");
  }
View Full Code Here

        _directActionName = _associations.removeObjectForKey("directActionName");
        _class = (WOAssociation) nsdictionary.valueForKey("class");
        _id = (WOAssociation) nsdictionary.valueForKey("id");

        if(_action != null && _action.isValueConstant())
            throw new WODynamicElementCreationException("<" + getClass().getName() + ">'action' is a constant.");
        if(_action != null && _directActionName != null || _action != null && _actionClass != null)
            throw new WODynamicElementCreationException("<" + getClass().getName() + "> Either 'action' and 'directActionName' both exist, or 'action' and 'actionClass' both exist ");
    }
View Full Code Here

  public AbstractIMSearchAction(String name, NSDictionary associations, WOElement element) {
    super(name, associations, element);
    _value = (WOAssociation) associations.objectForKey("value");
    _values = (WOAssociation) associations.objectForKey("values");
    if (_value == null && _values == null) {
      throw new WODynamicElementCreationException("Only one of 'value' or 'values' can be bound at any time.");
    }
    _quicksilver = (WOAssociation) associations.objectForKey("quicksilver");
    _optionsDictionary = (WOAssociation) associations.objectForKey("optionsDictionary");
    _optionsArray = (WOAssociation) associations.objectForKey("optionsArray");
    if (_optionsArray == null && _optionsDictionary == null) {
      throw new WODynamicElementCreationException("Only one of 'optionsArray' or 'optionsDictionary' can be bound at any time.");
    }
    if (_optionsArray != null && _optionsDictionary != null) {
      throw new WODynamicElementCreationException("Both 'optionsArray' and 'optionsDictionary' cannot be bound at the same time.");
    }
    _optionKeyPath = (WOAssociation) associations.objectForKey("optionKeyPath");
    if (_optionKeyPath != null && _optionsDictionary != null) {
      throw new WODynamicElementCreationException("Both 'optionKeyPath' and 'optionsDictionary' cannot be bound at the same time.");
    }
  }
View Full Code Here

   * Utility to throw an exception if the bindings are incomplete.
   *
   * @param message
   **/
  protected void _failCreation(String message) {
    throw new WODynamicElementCreationException("<" + getClass().getName() + "> " + message);
  }
View Full Code Here

    _embedded = _associations.removeObjectForKey("embedded");
    if (_associations.objectForKey("method") == null && _associations.objectForKey("Method") == null && _associations.objectForKey("METHOD") == null) {
      _associations.setObjectForKey(new WOConstantValueAssociation("post"), "method");
    }
    if (_action != null && _href != null || _action != null && _directActionName != null || _href != null && _directActionName != null || _action != null && _actionClass != null || _href != null && _actionClass != null) {
      throw new WODynamicElementCreationException("<" + getClass().getName() + ">: At least two of these conflicting attributes are present: 'action', 'href', 'directActionName', 'actionClass'");
    }
    if (_action != null && _action.isValueConstant()) {
      throw new WODynamicElementCreationException("<" + getClass().getName() + ">: 'action' is a constant.");
    }
  }
View Full Code Here

     */
    public ERXWOFileUpload(String string, NSDictionary nsdictionary,
                        WOElement woelement) {
        super(string, nsdictionary, woelement);
        if (nsdictionary.objectForKey("data") != null && nsdictionary.objectForKey("filePath") == null) {
            throw new WODynamicElementCreationException("<" + getClass().getName() + "> 'filePath' must be bound if 'data' is bound.");
        }
    }
View Full Code Here

    super(null, null, null);
    componentName = ((WOAssociation) paramNSDictionary.objectForKey("WOComponentName"));
    if (componentName == null) {
      componentName = ((WOAssociation) paramNSDictionary.objectForKey("_componentName"));
      if (componentName == null)
        throw new WODynamicElementCreationException("<" + getClass().getName() + "> : '" + "WOComponentName" + "' attribute missing.");
    }

    componentAttributes = paramNSDictionary.mutableClone();
    componentAttributes.removeObjectForKey("WOComponentName");
    componentAttributes.removeObjectForKey("_componentName");
View Full Code Here

      if (localWOElement == null) {
        localWOElement = WOApplication.application().dynamicElementWithName(name, componentAttributes, template, paramWOContext._languages());

        if (localWOElement == null) {
          throw new WODynamicElementCreationException("<" + getClass().getName() + "> : cannot find component or dynamic element named " + name);
        }

        componentCache.setObjectForKey(localWOElement, elementID);
      }
    }
View Full Code Here

TOP

Related Classes of com.webobjects.appserver._private.WOKeyValueAssociation

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.