|
WebObjects 5.4.2 | ||||||||
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 class |
WOMLAbstractNamespace.WOGenericElementRule
|
static interface |
WOMLAbstractNamespace.WOMLElementGenerator
|
Field Summary | |
---|---|
static String |
ATTRIBUTE_VALUE_CONTENT
|
static String |
ATTRIBUTE_VALUE_REMOVE
|
static String |
WOGENERIC_CONTAINER_NAME
|
static String |
WOGENERIC_ELEMENT_NAME
|
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,
WOMutableDeclaration declaration,
NSArray 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,
WOMutableDeclaration declaration,
NSArray 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 |
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 tag name or the wo:component specification. |
WOMLAbstractNamespace.WOMLElementGenerator |
getDefaultElementGenerator()
|
WOMLAbstractNamespace.WOMLElementGenerator |
getElementGenerator(String elementName)
|
String |
getGenericElementType(WOElement element)
|
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)
|
protected boolean |
shouldContributeAssociation(WOMLElement element,
WOMutableDeclaration declaration,
NSArray languages,
String name,
WOAssociation association)
Returns true if the given association with the given name should be contributed to the declaration. |
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 |
Field Detail |
---|
public static final String ATTRIBUTE_VALUE_REMOVE
public static final String ATTRIBUTE_VALUE_CONTENT
public static final String WOGENERIC_CONTAINER_NAME
public static final String WOGENERIC_ELEMENT_NAME
Constructor Detail |
---|
public WOMLAbstractNamespace(String namespace)
Method Detail |
---|
protected Map getAssociations(WOMLElement element, WOAssociationFactory associationFactory)
element
- associationFactory
-
protected boolean shouldContributeAssociation(WOMLElement element, WOMutableDeclaration declaration, NSArray languages, String name, WOAssociation association)
namespace
- element
- declaration
- name
- association
-
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 element)
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, WOMutableDeclaration declaration, NSArray 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, WOMutableDeclaration declaration, NSArray 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 June 2008 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |