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)
ITemplateParserDelegate
getKnownComponent
in interface ITemplateParserDelegate
public boolean getAllowBody(java.lang.String componentId, org.apache.hivemind.Location location)
ITemplateParserDelegate
getAllowBody
in interface ITemplateParserDelegate
public boolean getAllowBody(java.lang.String libraryId, java.lang.String type, org.apache.hivemind.Location location)
ITemplateParserDelegate
getAllowBody
in interface ITemplateParserDelegate
libraryId
- the specified library id, possibly nulltype
- the component typepublic java.lang.String getComponentAttributeName()
ITemplateParserDelegate
getComponentAttributeName
in interface ITemplateParserDelegate