public static class AbstractFilter.NodeTypeCondition extends Object implements AbstractFilter.ExecutionCondition
true if the current resource's node has the
specified node type.| Constructor and Description |
|---|
NodeTypeCondition(String nodeTypeName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(RenderContext renderContext,
Resource resource)
Returns
true if the condition matches the specified
resource. |
String |
toString() |
public NodeTypeCondition(String nodeTypeName)
public boolean matches(RenderContext renderContext, Resource resource)
AbstractFilter.ExecutionConditiontrue if the condition matches the specified
resource.matches in interface AbstractFilter.ExecutionConditionrenderContext - Current RenderContextresource - Resource being displayedtrue if the condition matches the specified
resourceCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.