Package net.anotheria.anosite.guard
Class LanguageIsNotENGuard
- java.lang.Object
-
- net.anotheria.anosite.guard.LanguageAbstractGuard
-
- net.anotheria.anosite.guard.LanguageIsENGuard
-
- net.anotheria.anosite.guard.LanguageIsNotENGuard
-
- All Implemented Interfaces:
ConditionalGuard
public class LanguageIsNotENGuard extends LanguageIsENGuard
Current language shouldn't be 'EN'.- Author:
- Alexandr Bolbat
-
-
Constructor Summary
Constructors Constructor Description LanguageIsNotENGuard()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanshouldMatch()By overriding this method we can change conditional logic.-
Methods inherited from class net.anotheria.anosite.guard.LanguageIsENGuard
getTargetLanguage
-
Methods inherited from class net.anotheria.anosite.guard.LanguageAbstractGuard
isConditionFullfilled
-
-
-
-
Method Detail
-
shouldMatch
protected boolean shouldMatch()
Description copied from class:LanguageAbstractGuardBy overriding this method we can change conditional logic.- Overrides:
shouldMatchin classLanguageAbstractGuard- Returns:
trueif target language should be equal to current logic orfalseif shouldn't
-
-