Module com.github.rvesse.airline
Class AbstractLocaleAndCaseStringRestriction
java.lang.Object
com.github.rvesse.airline.restrictions.AbstractCommonRestriction
com.github.rvesse.airline.restrictions.common.AbstractStringRestriction
com.github.rvesse.airline.restrictions.common.AbstractLocaleAndCaseStringRestriction
- All Implemented Interfaces:
ArgumentsRestriction
,OptionRestriction
- Direct Known Subclasses:
EndsWithRestriction
,StartsWithRestriction
An abstract string restriction that needs a locale and case sensitivity flag
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractLocaleAndCaseStringRestriction
(boolean ignoreCase, Locale locale) Creates the restriction -
Method Summary
Methods inherited from class com.github.rvesse.airline.restrictions.common.AbstractStringRestriction
isValid, preValidate, preValidate, violated, violated
Methods inherited from class com.github.rvesse.airline.restrictions.AbstractCommonRestriction
finalValidate, finalValidate, getArgumentTitle, getArgumentTitle, getOptionTitle, postValidate, postValidate
-
Field Details
-
locale
-
ignoreCase
protected final boolean ignoreCase
-
-
Constructor Details
-
AbstractLocaleAndCaseStringRestriction
Creates the restriction- Parameters:
ignoreCase
- Whether to ignore caselocale
- Locale for comparisons
-