public abstract static class AbstractFilter.PatternCondition extends Object implements AbstractFilter.ExecutionCondition
true if the current resource's template type
matches the provided one.| Constructor and Description |
|---|
PatternCondition(String pattern,
boolean isRegExp)
Initializes an instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
getValue(RenderContext renderContext,
Resource resource) |
boolean |
matches(RenderContext renderContext,
Resource resource)
Returns
true if the condition matches the specified
resource. |
String |
toString() |
public PatternCondition(String pattern, boolean isRegExp)
pattern - the string to be matchedisRegExp - do we consider this pattern as a regular expression and
not as an exact string?protected abstract String getValue(RenderContext renderContext, Resource resource)
public final 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.