|
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.WOMLAbstractNamespace
public abstract class WOMLAbstractNamespace
Nested Class Summary | |
---|---|
static interface |
WOMLAbstractNamespace.WOMLElementGenerator
|
Constructor Summary | |
---|---|
WOMLAbstractNamespace(String namespace)
|
Method Summary | |
---|---|
boolean |
canGenerateElement(WOMLElement element)
Default implementation returns true if (a) the element name is in the same namespace as the receiver or (b) it contains the component identifier attribute in the same namespace as the receiver. |
void |
contributeToDeclaration(WOMLElement element,
com.webobjects.appserver._private.WOMutableDeclaration declaration,
NSArray<String> languages,
WOAssociationFactory associationFactory)
Default implementation copies all associations from the defined element that match the namespace of the receiver into the declaration. |
WOElement |
generateElement(WOMLElement element,
WOElement template,
com.webobjects.appserver._private.WOMutableDeclaration declaration,
NSArray<String> languages,
WOAssociationFactory associationFactory)
The default implementation will generate a WOElement from the declaration given. |
String |
getAlias(String elementName)
Returns either the alias for a given element name of the element name itself. |
protected Map<String,WOAssociation> |
getAssociations(WOMLElement element,
WOAssociationFactory associationFactory)
Returns the map of associations that should be contributed by this namespace. |
abstract String |
getComponentIdentifierAttributeName()
|
String |
getDeclaredType(WOMLElement element)
Returns the type of component as determined by either the specified JSP-style tagname or the wo:component specification. |
WOMLAbstractNamespace.WOMLElementGenerator |
getDefaultElementGenerator()
|
WOMLAbstractNamespace.WOMLElementGenerator |
getElementGenerator(String elementName)
|
String |
getGenericElementType(WOElement woElement)
|
String |
getNamespaceId()
Returns the namespace identifier for this namespace. |
String |
getRawComponentType(WOMLElement element)
Returns the raw component type as determined from the parsed element. |
String |
setAlias(String fromElementName,
String toElementName)
|
void |
setDefaultElementGenerator(WOMLAbstractNamespace.WOMLElementGenerator elementGenerator)
|
void |
setElementGenerator(String elementName,
WOMLAbstractNamespace.WOMLElementGenerator elementGenerator)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.webobjects.appserver.parser.woml.WOMLNamespace |
---|
contributeToDeclaration |
Constructor Detail |
---|
public WOMLAbstractNamespace(String namespace)
Method Detail |
---|
protected Map<String,WOAssociation> getAssociations(WOMLElement element, WOAssociationFactory associationFactory)
element
- associationFactory
-
public WOMLAbstractNamespace.WOMLElementGenerator getElementGenerator(String elementName)
public void setElementGenerator(String elementName, WOMLAbstractNamespace.WOMLElementGenerator elementGenerator)
public WOMLAbstractNamespace.WOMLElementGenerator getDefaultElementGenerator()
public void setDefaultElementGenerator(WOMLAbstractNamespace.WOMLElementGenerator elementGenerator)
public String getAlias(String elementName)
elementName
-
public String setAlias(String fromElementName, String toElementName)
public abstract String getComponentIdentifierAttributeName()
public String getRawComponentType(WOMLElement element)
element
-
public String getDeclaredType(WOMLElement element)
element
-
public String getGenericElementType(WOElement woElement)
public String getNamespaceId()
getNamespaceId
in interface WOMLNamespace
WOMLNamespace.getNamespaceId()
public boolean canGenerateElement(WOMLElement element)
canGenerateElement
in interface WOMLNamespace
element
-
WOMLNamespace.canGenerateElement(com.webobjects.appserver.parser.woml.WOMLElement)
public WOElement generateElement(WOMLElement element, WOElement template, com.webobjects.appserver._private.WOMutableDeclaration declaration, NSArray<String> languages, WOAssociationFactory associationFactory) throws WOMLElementGenerationException
generateElement
in interface WOMLNamespace
element
- template
- declaration
- associationFactory
-
WOMLElementGenerationException
com.webobjects.appserver.parser.woml.WOMLNamespace#generateElement(com.webobjects.appserver.parser.woml.WOMLElement, com.webobjects.appserver.WOElement, com.webobjects.appserver._private.WOMutableDeclaration, com.webobjects.appserver.WOAssociationFactory)
public void contributeToDeclaration(WOMLElement element, com.webobjects.appserver._private.WOMutableDeclaration declaration, NSArray<String> languages, WOAssociationFactory associationFactory) throws WOMLElementGenerationException
element
- declaration
- associationFactory
-
WOMLElementGenerationException
com.webobjects.appserver.parser.woml.WOMLNamespace#contributeToDeclaration(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 |