WebObjects 5.4.2

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

java.lang.Object
  extended by com.webobjects.appserver.parser.woml.namespaces.WOMLDefaultNamespace
All Implemented Interfaces:
WOMLNamespace

public class WOMLDefaultNamespace
extends Object
implements WOMLNamespace


Constructor Summary
WOMLDefaultNamespace(String aNamespaceId)
           
WOMLDefaultNamespace(String aNamespaceId, boolean includeNamespaceInAttributes)
           
 
Method Summary
 boolean canGenerateElement(WOMLElement element)
          Returns true if the receiver can generate a WOElement from the information contained in the given WOMLElement.
 void contributeToDeclaration(WOMLElement element, WOElement template, WOMutableDeclaration declaration, NSArray languages, WOAssociationFactory associationFactory)
          Contributes from the receiving namespace into the declaration given.
 WOElement generateElement(WOMLElement element, WOElement template, WOMutableDeclaration declaration, NSArray languages, WOAssociationFactory associationFactory)
          Returns the constructed WOElement from the given WOMLElement, template (child WOElement of the WOMLElement) and declaration.
 boolean getIncludeNamespaceInAttributes()
           
 String getNamespaceId()
          Returns the namespace identifier for this namespace.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WOMLDefaultNamespace

public WOMLDefaultNamespace(String aNamespaceId)

WOMLDefaultNamespace

public WOMLDefaultNamespace(String aNamespaceId,
                            boolean includeNamespaceInAttributes)
Method Detail

getNamespaceId

public String getNamespaceId()
Description copied from interface: WOMLNamespace
Returns the namespace identifier for this namespace.

Specified by:
getNamespaceId in interface WOMLNamespace
Returns:

getIncludeNamespaceInAttributes

public boolean getIncludeNamespaceInAttributes()

canGenerateElement

public boolean canGenerateElement(WOMLElement element)
Description copied from interface: WOMLNamespace
Returns true if the receiver can generate a WOElement from the information contained in the given WOMLElement.

Specified by:
canGenerateElement in interface WOMLNamespace
Returns:

generateElement

public WOElement generateElement(WOMLElement element,
                                 WOElement template,
                                 WOMutableDeclaration declaration,
                                 NSArray languages,
                                 WOAssociationFactory associationFactory)
                          throws WOMLElementGenerationException
Description copied from interface: WOMLNamespace
Returns the constructed WOElement from the given WOMLElement, template (child WOElement of the WOMLElement) and declaration. The declaration will have been set previously via contributeToDeclaration by all contributors. This method is called if the receiver returns true from canGenerateElement() for a particular element. There can be at most one element generator for a given WOMLElement, so this method has total control over the WOElement generated.

Specified by:
generateElement in interface WOMLNamespace
Returns:
Throws:
WOMLElementGenerationException

contributeToDeclaration

public void contributeToDeclaration(WOMLElement element,
                                    WOElement template,
                                    WOMutableDeclaration declaration,
                                    NSArray languages,
                                    WOAssociationFactory associationFactory)
                             throws WOMLElementGenerationException
Description copied from interface: WOMLNamespace
Contributes from the receiving namespace into the declaration given. Normally this means contributing binding values. This method is called when the target namespace appears in either the attributes or the tag name of the target WOMLElement.

Specified by:
contributeToDeclaration in interface WOMLNamespace
Throws:
WOMLElementGenerationException

Last updated June 2008

Copyright © 2000-2008 Apple Inc.