org.apache.tapestry.parse
Interface ITemplateParserDelegate
- public interface ITemplateParserDelegate
Provides a TemplateParser
with additional information about
dynamic components.
- Version:
- $Id: ITemplateParserDelegate.java,v 1.5 2003/04/21 13:15:28 glongman Exp $
- 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. |
getKnownComponent
public boolean getKnownComponent(String componentId)
- Returns true if the component id is valid, false if the
component id is not recognized.
getAllowBody
public 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
public 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 nulltype
- the component type- Throws:
ApplicationRuntimeException
- if the specification cannot be found- Since:
- 3.0