org.apache.tapestry.engine
Class TemplateParserDelegateImpl

java.lang.Object
  extended by org.apache.tapestry.engine.TemplateParserDelegateImpl
All Implemented Interfaces:
ITemplateParserDelegate

public class TemplateParserDelegateImpl
extends Object
implements ITemplateParserDelegate

Basic implementation of the ITemplateParserDelegate interface.

Author:
Howard Lewis Ship

Constructor Summary
TemplateParserDelegateImpl(IComponent component, IRequestCycle cycle)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateParserDelegateImpl

public TemplateParserDelegateImpl(IComponent component,
                                  IRequestCycle cycle)
Method Detail

getKnownComponent

public boolean getKnownComponent(String componentId)
Description copied from interface: ITemplateParserDelegate
Returns true if the component id is valid, false if the component id is not recognized.

Specified by:
getKnownComponent in interface ITemplateParserDelegate

getAllowBody

public boolean getAllowBody(String componentId,
                            ILocation location)
Description copied from interface: ITemplateParserDelegate
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.

Specified by:
getAllowBody in interface ITemplateParserDelegate

getAllowBody

public boolean getAllowBody(String libraryId,
                            String type,
                            ILocation location)
Description copied from interface: ITemplateParserDelegate
Used with implicit components to determine if the component allows a body or not.

Specified by:
getAllowBody in interface ITemplateParserDelegate
Parameters:
libraryId - the specified library id, possibly null
type - the component type