Examples of WODeclaration


Examples of com.webobjects.appserver._private.WODeclaration

  private NSMutableDictionary parseDeclarationsWithoutComments(String declarationWithoutComment) throws WOHelperFunctionDeclarationFormatException {
    NSMutableDictionary declarations = new NSMutableDictionary();
    NSMutableDictionary rawDeclarations = _rawDeclarationsWithoutComment(declarationWithoutComment);
    String tagName;
    WODeclaration declaration;
    Enumeration rawDeclarationHeaderEnum = rawDeclarations.keyEnumerator();
    while (rawDeclarationHeaderEnum.hasMoreElements()) {
      String declarationHeader = (String) rawDeclarationHeaderEnum.nextElement();
      String declarationBody = (String) rawDeclarations.objectForKey(declarationHeader);
      int colonIndex = declarationHeader.indexOf(':');
View Full Code Here

Examples of com.webobjects.appserver._private.WODeclaration

  }

  public WOElement dynamicElement(NSDictionary nsdictionary, NSArray nsarray) throws WOHelperFunctionDeclarationFormatException, ClassNotFoundException {
    String s = name();
    WOElement woelement = template();
    WODeclaration wodeclaration = (WODeclaration) nsdictionary.objectForKey(s);
    return _elementWithDeclaration(wodeclaration, s, woelement, nsarray);
  }
View Full Code Here

Examples of com.webobjects.appserver._private.WODeclaration

  }

  public WOElement parse() throws WOHelperFunctionDeclarationFormatException, WOHelperFunctionHTMLFormatException, ClassNotFoundException {
    parseDeclarations();
    for (Enumeration e = declarations().objectEnumerator(); e.hasMoreElements();) {
      WODeclaration declaration = (WODeclaration) e.nextElement();
      processDeclaration(declaration);
    }
    WOElement woelement = parseHTML();
    return woelement;
  }
View Full Code Here

Examples of com.webobjects.appserver._private.WODeclaration

      }
      else {
        colonIndex = s.indexOf(':');
      }
      if (colonIndex != -1) {
        WODeclaration declaration = parseInlineBindings(s, colonIndex);
        s = "<wo name = \"" + declaration.name() + "\"";
      }
    }
    _currentWebObjectTag = new WOHTMLWebObjectTag(s, _currentWebObjectTag);
    if (log.isDebugEnabled()) {
      log.debug("inserted WebObject with Name '" + _currentWebObjectTag.name() + "'.");
View Full Code Here

Examples of com.webobjects.appserver._private.WODeclaration

    synchronized (this) {
      elementName = "_" + elementType + "_" + _inlineBindingCount;
      _inlineBindingCount++;
    }
    WOTagProcessor tagProcessor = (WOTagProcessor) WOHelperFunctionTagRegistry.tagProcessorMap().objectForKey(elementType);
    WODeclaration declaration;
    if (tagProcessor == null) {
      declaration = WOHelperFunctionParser.createDeclaration(elementName, elementType, associations);
    }
    else {
      declaration = tagProcessor.createDeclaration(elementName, elementType, associations);
View Full Code Here

Examples of com.webobjects.appserver._private.WODeclaration

      _declarations = WOHelperFunctionDeclarationParser.declarationsWithString(_declarationString);
    }
  }

  public static WODeclaration createDeclaration(String declarationName, String declarationType, NSMutableDictionary associations) {
    WODeclaration declaration = new WODeclaration(declarationName, declarationType, associations);

    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()) {
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.