public class DefaultParserDelegate extends java.lang.Object implements ITemplateParserDelegate
ITemplateParserDelegate.| Constructor and Description |
|---|
DefaultParserDelegate(IComponent component,
java.lang.String componentAttributeName,
IRequestCycle cycle,
ComponentSpecificationResolver resolver) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAllowBody(java.lang.String componentId,
org.apache.hivemind.Location location)
Returns true if the specified component allows a body, false otherwise.
|
boolean |
getAllowBody(java.lang.String libraryId,
java.lang.String type,
org.apache.hivemind.Location location)
Used with implicit components to determine if the component allows a body or not.
|
java.lang.String |
getComponentAttributeName()
Returns the name of the attribute used to indicate a component.
|
boolean |
getKnownComponent(java.lang.String componentId)
Returns true if the component id is valid, false if the component id is not recognized.
|
public DefaultParserDelegate(IComponent component, java.lang.String componentAttributeName, IRequestCycle cycle, ComponentSpecificationResolver resolver)
public boolean getKnownComponent(java.lang.String componentId)
ITemplateParserDelegategetKnownComponent in interface ITemplateParserDelegatepublic boolean getAllowBody(java.lang.String componentId, org.apache.hivemind.Location location)
ITemplateParserDelegategetAllowBody in interface ITemplateParserDelegatepublic boolean getAllowBody(java.lang.String libraryId, java.lang.String type, org.apache.hivemind.Location location)
ITemplateParserDelegategetAllowBody in interface ITemplateParserDelegatelibraryId - the specified library id, possibly nulltype - the component typepublic java.lang.String getComponentAttributeName()
ITemplateParserDelegategetComponentAttributeName in interface ITemplateParserDelegate