|
WebObjects 5.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webobjects.appserver.parser.woml.namespaces.WOMLGenericElementGenerator
public class WOMLGenericElementGenerator
Constructor Summary | |
---|---|
WOMLGenericElementGenerator()
|
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. |
protected boolean |
shouldContributeAssociation(WOMLAbstractNamespace namespace,
WOMLElement element,
com.webobjects.appserver._private.WOMutableDeclaration declaration,
NSArray<String> languages,
String name,
WOAssociation association)
Returns true if the given association with the given name should be contributed to the declaration. |
protected boolean |
shouldKeepExistingAssociation(WOMLAbstractNamespace namespace,
WOMLElement element,
com.webobjects.appserver._private.WOMutableDeclaration declaration,
NSArray<String> languages,
String name,
WOAssociation association)
Returns true if the existing association should be kept by the current contributor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WOMLGenericElementGenerator()
Method Detail |
---|
protected Map<String,WOAssociation> getElementAssociationsForContribution(WOMLAbstractNamespace namespace, WOMLElement element, WOAssociationFactory associationFactory)
namespace
- element
- associationFactory
-
protected boolean shouldKeepExistingAssociation(WOMLAbstractNamespace namespace, WOMLElement element, com.webobjects.appserver._private.WOMutableDeclaration declaration, NSArray<String> languages, String name, WOAssociation association)
namespace
- element
- declaration
- name
- association
-
protected boolean shouldContributeAssociation(WOMLAbstractNamespace namespace, WOMLElement element, com.webobjects.appserver._private.WOMutableDeclaration declaration, NSArray<String> languages, String name, WOAssociation association)
namespace
- element
- declaration
- name
- association
-
public WOElement generateElement(WOMLAbstractNamespace namespace, WOMLElement element, WOElement template, com.webobjects.appserver._private.WOMutableDeclaration declaration, NSArray<String> languages, WOAssociationFactory associationFactory) throws WOMLElementGenerationException
generateElement
in interface WOMLAbstractNamespace.WOMLElementGenerator
namespace
- element
- template
- declaration
- associationFactory
-
WOMLElementGenerationException
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)
public void contributeToDeclaration(WOMLAbstractNamespace namespace, WOMLElement element, com.webobjects.appserver._private.WOMutableDeclaration declaration, NSArray<String> languages, WOAssociationFactory associationFactory) throws WOMLElementGenerationException
contributeToDeclaration
in interface WOMLAbstractNamespace.WOMLElementGenerator
namespace
- element
- declaration
- associationFactory
-
WOMLElementGenerationException
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 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |