org.apache.tapestry.services.impl
Class DefaultParserDelegate

java.lang.Object
  extended by org.apache.tapestry.services.impl.DefaultParserDelegate
All Implemented Interfaces:
ITemplateParserDelegate

public class DefaultParserDelegate
extends Object
implements ITemplateParserDelegate

Default implementation of ITemplateParserDelegate.

Since:
4.0
Author:
Howard Lewis Ship

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

Constructor Detail

DefaultParserDelegate

public DefaultParserDelegate(IComponent component,
                             String componentAttributeName,
                             IRequestCycle cycle,
                             ComponentSpecificationResolver resolver)
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,
                            org.apache.hivemind.Location 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,
                            org.apache.hivemind.Location 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

getComponentAttributeName

public String getComponentAttributeName()
Description copied from interface: ITemplateParserDelegate
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.

Specified by:
getComponentAttributeName in interface ITemplateParserDelegate


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