WebObjects 5.4

com.webobjects.appserver.parser.woml.namespaces
Class WOMLRepetitionElementGenerator

java.lang.Object
  extended by com.webobjects.appserver.parser.woml.namespaces.WOMLGenericElementGenerator
      extended by com.webobjects.appserver.parser.woml.namespaces.WOMLRepetitionElementGenerator
All Implemented Interfaces:
WOMLAbstractNamespace.WOMLElementGenerator

public class WOMLRepetitionElementGenerator
extends WOMLGenericElementGenerator


Constructor Summary
WOMLRepetitionElementGenerator()
           
 
Method Summary
 void contributeToDeclaration(WOMLAbstractNamespace namespace, WOMLElement element, com.webobjects.appserver._private.WOMutableDeclaration declaration, NSArray<String> languages, WOAssociationFactory associationFactory)
          Default implementation copies all associations in the given namespace to the declaration.
 WOElement generateElement(WOMLAbstractNamespace namespace, WOMLElement element, WOElement template, com.webobjects.appserver._private.WOMutableDeclaration declaration, NSArray<String> languages, WOAssociationFactory associationFactory)
          Default implementation generates a new dynamic element with the declaration's type and associations.
protected  Map<String,WOAssociation> getElementAssociationsForContribution(WOMLAbstractNamespace namespace, WOMLElement element, WOAssociationFactory associationFactory)
          Returns the map of associations from the element to be used by the default contributeToDeclaration() method.
 
Methods inherited from class com.webobjects.appserver.parser.woml.namespaces.WOMLGenericElementGenerator
shouldContributeAssociation, shouldKeepExistingAssociation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WOMLRepetitionElementGenerator

public WOMLRepetitionElementGenerator()
Method Detail

getElementAssociationsForContribution

protected Map<String,WOAssociation> getElementAssociationsForContribution(WOMLAbstractNamespace namespace,
                                                                          WOMLElement element,
                                                                          WOAssociationFactory associationFactory)
Description copied from class: WOMLGenericElementGenerator
Returns the map of associations from the element to be used by the default contributeToDeclaration() method. The default implementation of this method returns a copy of the elements associations for only the namespace given. This returned map can then be manipulated without altering the associations in the element itself.

Overrides:
getElementAssociationsForContribution in class WOMLGenericElementGenerator
Returns:

generateElement

public WOElement generateElement(WOMLAbstractNamespace namespace,
                                 WOMLElement element,
                                 WOElement template,
                                 com.webobjects.appserver._private.WOMutableDeclaration declaration,
                                 NSArray<String> languages,
                                 WOAssociationFactory associationFactory)
                          throws WOMLElementGenerationException
Description copied from class: WOMLGenericElementGenerator
Default implementation generates a new dynamic element with the declaration's type and associations.

Specified by:
generateElement in interface WOMLAbstractNamespace.WOMLElementGenerator
Overrides:
generateElement in class WOMLGenericElementGenerator
Throws:
WOMLElementGenerationException
See Also:
com.webobjects.appserver.parser.woml.namespaces.WOMLWebObjectsNamespace.WOMLWebObjectsElementGenerator#generateElement(com.webobjects.appserver.parser.woml.WOMLNamespace, com.webobjects.appserver.parser.woml.WOMLElement, com.webobjects.appserver.WOElement, com.webobjects.appserver._private.WOMutableDeclaration, com.webobjects.appserver.WOAssociationFactory)

contributeToDeclaration

public void contributeToDeclaration(WOMLAbstractNamespace namespace,
                                    WOMLElement element,
                                    com.webobjects.appserver._private.WOMutableDeclaration declaration,
                                    NSArray<String> languages,
                                    WOAssociationFactory associationFactory)
                             throws WOMLElementGenerationException
Description copied from class: WOMLGenericElementGenerator
Default implementation copies all associations in the given namespace to the declaration.

Specified by:
contributeToDeclaration in interface WOMLAbstractNamespace.WOMLElementGenerator
Overrides:
contributeToDeclaration in class WOMLGenericElementGenerator
Throws:
WOMLElementGenerationException
See Also:
com.webobjects.appserver.parser.woml.namespaces.WOMLWebObjectsNamespace.WOMLWebObjectsElementGenerator#contributeToDeclaration(com.webobjects.appserver.parser.woml.WOMLNamespace, com.webobjects.appserver.parser.woml.WOMLElement, com.webobjects.appserver._private.WOMutableDeclaration, com.webobjects.appserver.WOAssociationFactory)

Last updated Tuesday, October 9, 2007 08:58 PDT

Copyright © 2000-2007 Apple Inc.