org.apache.tapestry.parse
Interface ITemplateParserDelegate

All Known Implementing Classes:
DefaultParserDelegate

public interface ITemplateParserDelegate

Provides a TemplateParserwith additional information about dynamic components.

Author:
Howard Lewis Ship

Method Summary
 boolean getAllowBody(String componentId, org.apache.hivemind.Location location)
          Returns true if the specified component allows a body, false otherwise.
 boolean getAllowBody(String libraryId, String type, org.apache.hivemind.Location location)
          Used with implicit components to determine if the component allows a body or not.
 String getComponentAttributeName()
          Returns the name of the attribute used to indicate a component.
 boolean getKnownComponent(String componentId)
          Returns true if the component id is valid, false if the component id is not recognized.
 

Method Detail

getKnownComponent

boolean getKnownComponent(String componentId)
Returns true if the component id is valid, false if the component id is not recognized.


getAllowBody

boolean getAllowBody(String componentId,
                     org.apache.hivemind.Location location)
Returns true if the specified component allows a body, false otherwise. The parser uses this information to determine if it should ignore the body of a tag.


getAllowBody

boolean getAllowBody(String libraryId,
                     String type,
                     org.apache.hivemind.Location location)
Used with implicit components to determine if the component allows a body or not.

Parameters:
libraryId - the specified library id, possibly null
type - the component type
Since:
3.0

getComponentAttributeName

String getComponentAttributeName()
Returns the name of the attribute used to indicate a component. The default is "jwcid", but this can be overriden in a number of ways.



Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.