public static class AbstractFilter.ModeCondition extends Object implements AbstractFilter.ExecutionCondition
true if the current mode equals to the
specified one| Constructor and Description |
|---|
ModeCondition(String mode)
Initializes an instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(RenderContext renderContext,
Resource resource)
Returns
true if the condition matches the specified
resource. |
static boolean |
matches(RenderContext renderContext,
String mode) |
String |
toString() |
public ModeCondition(String mode)
mode - the target mode to check forpublic 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
resourcepublic static boolean matches(RenderContext renderContext, String mode)
Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.