org.apache.tapestry.parse
Interface ITemplateParserDelegate

All Known Implementing Classes:
TemplateParserDelegateImpl

public interface ITemplateParserDelegate

Provides a TemplateParser with additional information about dynamic components.

Version:
$Id: ITemplateParserDelegate.java 243791 2004-02-19 17:38:13Z hlship $
Author:
Howard Lewis Ship

Method Summary
 boolean getAllowBody(String componentId, ILocation location)
          Returns true if the specified component allows a body, false otherwise.
 boolean getAllowBody(String libraryId, String type, ILocation location)
          Used with implicit components to determine if the component allows a body or not.
 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,
                     ILocation 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.

Throws:
ApplicationRuntimeException - if no such component exists

getAllowBody

boolean getAllowBody(String libraryId,
                     String type,
                     ILocation 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
Throws:
ApplicationRuntimeException - if the specification cannot be found
Since:
3.0