Class OrRenderCondition
- java.lang.Object
-
- com.adobe.granite.ui.components.rendercondition.AbstractCompositeRenderCondition
-
- com.adobe.granite.ui.components.rendercondition.OrRenderCondition
-
- All Implemented Interfaces:
RenderCondition
public class OrRenderCondition extends AbstractCompositeRenderCondition
The condition that returnstruewhen any of the sub conditions is returningtrue;falseotherwise.
-
-
Constructor Summary
Constructors Constructor Description OrRenderCondition(SlingHttpServletRequest request, SlingHttpServletResponse response, Resource resource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheck()Returnstrueif the component should be rendered;falseotherwise.
-
-
-
Constructor Detail
-
OrRenderCondition
public OrRenderCondition(@Nonnull SlingHttpServletRequest request, @Nonnull SlingHttpServletResponse response, @Nonnull Resource resource)
-
-
Method Detail
-
check
public boolean check() throws javax.servlet.ServletException, java.io.IOExceptionDescription copied from interface:RenderConditionReturnstrueif the component should be rendered;falseotherwise.- Returns:
trueif the component should be rendered,falseotherwise- Throws:
javax.servlet.ServletException- in case a servlet error occursjava.io.IOException- in case an IO error occurs
-
-