Package org.jbehave.core.i18n
Class LocalizedKeywords
- java.lang.Object
-
- org.jbehave.core.configuration.Keywords
-
- org.jbehave.core.i18n.LocalizedKeywords
-
public class LocalizedKeywords extends Keywords
Adds i18n support to Keywords, allowing to read the keywords from resource bundles for a given locale.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LocalizedKeywords.LocalizedKeywordNotFound
static class
LocalizedKeywords.ResourceBundleNotFound
-
Nested classes/interfaces inherited from class org.jbehave.core.configuration.Keywords
Keywords.KeywordNotFound, Keywords.StartingWordNotFound
-
-
Field Summary
-
Fields inherited from class org.jbehave.core.configuration.Keywords
AFTER, AND, AS_A, BEFORE, COMPOSITE, DRY_RUN, DURATION, EXAMPLES_TABLE, EXAMPLES_TABLE_HEADER_SEPARATOR, EXAMPLES_TABLE_IGNORABLE_SEPARATOR, EXAMPLES_TABLE_ROW, EXAMPLES_TABLE_VALUE_SEPARATOR, FAILED, GIVEN, GIVEN_STORIES, I_WANT_TO, IGNORABLE, IN_ORDER_TO, KEYWORDS, LIFECYCLE, META, META_FILTER, META_PROPERTY, NARRATIVE, NO, NOT_PERFORMED, OUTCOME, OUTCOME_ANY, OUTCOME_DESCRIPTION, OUTCOME_FAILURE, OUTCOME_MATCHER, OUTCOME_SUCCESS, OUTCOME_VALUE, OUTCOME_VERIFIED, PENDING, PRIORITY, SCENARIO, SCOPE, SCOPE_SCENARIO, SCOPE_STEP, SCOPE_STORY, SO_THAT, STORY_CANCELLED, THEN, WHEN, YES
-
-
Constructor Summary
Constructors Constructor Description LocalizedKeywords()
LocalizedKeywords(Locale locale)
LocalizedKeywords(Locale locale, String bundleName, ClassLoader classLoader)
LocalizedKeywords(Locale locale, String bundleName, String baseBundleName)
LocalizedKeywords(Locale locale, String bundleName, String baseBundleName, ClassLoader classLoader)
LocalizedKeywords(Locale locale, Locale baseLocale)
LocalizedKeywords(Locale locale, Locale baseLocale, String bundleName, ClassLoader classLoader)
LocalizedKeywords(Locale locale, Locale baseLocale, String bundleName, String baseBundleName, ClassLoader classLoader)
-
Method Summary
-
Methods inherited from class org.jbehave.core.configuration.Keywords
after, and, asA, before, composite, defaultKeywords, dryRun, duration, examplesTable, examplesTableHeaderSeparator, examplesTableIgnorableSeparator, examplesTableRow, examplesTableValueSeparator, failed, given, givenStories, ignorable, inOrderTo, isAndStep, isIgnorableStep, iWantTo, lifecycle, meta, metaFilter, metaProperty, narrative, no, notPerformed, outcome, outcomeAny, outcomeDescription, outcomeFailure, outcomeFields, outcomeMatcher, outcomeSuccess, outcomeValue, outcomeVerified, pending, priority, scenario, scope, scopeScenario, scopeStep, scopeStory, soThat, startingWord, startingWord, startingWordFor, startingWords, startingWordsByType, startingWordsFor, stepStartsWithWord, stepStartsWithWords, stepTypeFor, stepWithoutStartingWord, stepWithoutStartingWord, storyCancelled, synonymsOf, then, toString, when, yes
-
-
-
-
Constructor Detail
-
LocalizedKeywords
public LocalizedKeywords()
-
LocalizedKeywords
public LocalizedKeywords(Locale locale)
-
LocalizedKeywords
public LocalizedKeywords(Locale locale, String bundleName, ClassLoader classLoader)
-
LocalizedKeywords
public LocalizedKeywords(Locale locale, Locale baseLocale, String bundleName, ClassLoader classLoader)
-
LocalizedKeywords
public LocalizedKeywords(Locale locale, String bundleName, String baseBundleName)
-
LocalizedKeywords
public LocalizedKeywords(Locale locale, String bundleName, String baseBundleName, ClassLoader classLoader)
-
LocalizedKeywords
public LocalizedKeywords(Locale locale, Locale baseLocale, String bundleName, String baseBundleName, ClassLoader classLoader)
-
-
Method Detail
-
getLocale
public Locale getLocale()
-
-