Package com.webobjects.appserver

Examples of com.webobjects.appserver.WOAssociation


  protected void processDeclaration(WODeclaration declaration) {
    NSMutableDictionary associations = (NSMutableDictionary) declaration.associations();
    Enumeration bindingNameEnum = associations.keyEnumerator();
    while (bindingNameEnum.hasMoreElements()) {
      String bindingName = (String) bindingNameEnum.nextElement();
      WOAssociation association = (WOAssociation) associations.valueForKey(bindingName);
      WOAssociation helperAssociation = parserHelperAssociation(association);
      if (helperAssociation != association) {
        associations.setObjectForKey(helperAssociation, bindingName);
      }
    }
    // This will replace constant associations with ognl associations
View Full Code Here


    // when needed.
    WOOgnl.factory().convertOgnlConstantAssociations(associations);
  }

  protected WOAssociation parserHelperAssociation(WOAssociation originalAssociation) {
    WOAssociation association = originalAssociation;
    String originalKeyPath = null;
    if (association instanceof WOKeyValueAssociation) {
      WOKeyValueAssociation kvAssociation = (WOKeyValueAssociation) association;
      originalKeyPath = kvAssociation.keyPath();
    }
View Full Code Here

    if (WOHelperFunctionParser._debugSupport && associations != null && associations.objectForKey(WOHTMLAttribute.Debug) == null) {
      //associations.setObjectForKey(new WOConstantValueAssociation(Boolean.TRUE), WOHTMLAttribute.Debug);
      Enumeration associationsEnum = associations.keyEnumerator();
      while (associationsEnum.hasMoreElements()) {
        String bindingName = (String) associationsEnum.nextElement();
        WOAssociation association = (WOAssociation) associations.objectForKey(bindingName);
        association.setDebugEnabledForBinding(bindingName, declarationName, declarationType);
        association._setDebuggingEnabled(false);
      }
    }

    return declaration;
  }
View Full Code Here

TOP

Related Classes of com.webobjects.appserver.WOAssociation

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.