org.jbehave.core.i18n
Class LocalizedKeywords

java.lang.Object
  extended by org.jbehave.core.model.Keywords
      extended by org.jbehave.core.i18n.LocalizedKeywords

public class LocalizedKeywords
extends Keywords

Add i18n support to Keywords, allowing to read the keywords from resource bundles for a given locale.


Nested Class Summary
static class LocalizedKeywords.LocalizedKeywordNotFoundException
           
static class LocalizedKeywords.ResourceBundleNotFoundException
           
 
Nested classes/interfaces inherited from class org.jbehave.core.model.Keywords
Keywords.InsufficientKeywordsException, Keywords.KeywordNotFoundException
 
Field Summary
 
Fields inherited from class org.jbehave.core.model.Keywords
AND, AS_A, DRY_RUN, EXAMPLES_TABLE, EXAMPLES_TABLE_HEADER_SEPARATOR, EXAMPLES_TABLE_ROW, EXAMPLES_TABLE_VALUE_SEPARATOR, FAILED, GIVEN, GIVEN_STORIES, I_WANT_TO, IGNORABLE, IN_ORDER_TO, KEYWORDS, NARRATIVE, NOT_PERFORMED, PENDING, SCENARIO, THEN, WHEN
 
Constructor Summary
LocalizedKeywords()
           
LocalizedKeywords(java.util.Locale locale)
           
LocalizedKeywords(java.util.Locale locale, StringCoder encoder)
           
LocalizedKeywords(java.util.Locale locale, StringCoder encoder, java.lang.String bundleName)
           
LocalizedKeywords(java.util.Locale locale, StringCoder encoder, java.lang.String bundleName, java.lang.ClassLoader classLoader)
           
 
Method Summary
 
Methods inherited from class org.jbehave.core.model.Keywords
and, asA, defaultKeywords, dryRun, encode, examplesTable, examplesTableHeaderSeparator, examplesTableRow, examplesTableValueSeparator, failed, given, givenStories, ignorable, inOrderTo, iWantTo, narrative, notPerformed, others, pending, scenario, then, when
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalizedKeywords

public LocalizedKeywords()

LocalizedKeywords

public LocalizedKeywords(java.util.Locale locale)

LocalizedKeywords

public LocalizedKeywords(java.util.Locale locale,
                         StringCoder encoder)

LocalizedKeywords

public LocalizedKeywords(java.util.Locale locale,
                         StringCoder encoder,
                         java.lang.String bundleName)

LocalizedKeywords

public LocalizedKeywords(java.util.Locale locale,
                         StringCoder encoder,
                         java.lang.String bundleName,
                         java.lang.ClassLoader classLoader)


Copyright © 2003-2010. All Rights Reserved.