XMT-O Reference Software

xmto2xmta.resources
Class SetRes

java.lang.Object
  |
  +--java.util.ResourceBundle
        |
        +--java.util.ListResourceBundle
              |
              +--xmto2xmta.resources.SetRes

public class SetRes
extends java.util.ListResourceBundle

This is the default language resources. The language is English (United States).

There is a good explanation on the National Language Support (NLS) in the book "Core Java Volume II - Advanced Features". The chapter is Internationalization.

The resources are listed on two lines so that it is easier to compare the various language resource files to see what strings are missing.

The resources that use parameters (like filenames or numbers) are formated into MessageFormat (java.text.MessageFormat). To put a single quote (') in such a resources, you have to put it twice (''). For the others resources, you just have to put it once.

History:


Field Summary
(package private) static java.lang.Object[][] contents
          These are the strings which should get translated.
static java.lang.String MSG_ERROR_ATTRIBUTE_NAME_ATTRIBUTE_MISSING
           
static java.lang.String MSG_ERROR_PARENT_BEFORE_SENSOR
           
static java.lang.String MSG_ERROR_SET_NOT_SUPPORTED
          All these keys are public since this will keep accessing the string standardized and lead to less problems.
static java.lang.String MSG_ERROR_TO_ATTRIBUTE_MISSING
           
 
Fields inherited from class java.util.ListResourceBundle
lookup
 
Fields inherited from class java.util.ResourceBundle
CACHE_LOAD_FACTOR, cacheKey, cacheList, DEFAULT_NOT_FOUND, INITIAL_CACHE_SIZE, locale, MAX_BUNDLES_SEARCHED, parent, underConstruction
 
Constructor Summary
SetRes()
           
 
Method Summary
 java.lang.Object[][] getContents()
           
 
Methods inherited from class java.util.ListResourceBundle
getKeys, handleGetObject, loadLookup
 
Methods inherited from class java.util.ResourceBundle
, calculateBundleNames, cleanUpConstructionList, findBundle, findBundleInCache, getBundle, getBundle, getBundle, getBundleImpl, getClassContext, getLoader, getLocale, getObject, getString, getStringArray, loadBundle, propagate, putBundleInCache, setLocale, setParent, throwMissingResourceException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

MSG_ERROR_SET_NOT_SUPPORTED

public static final java.lang.String MSG_ERROR_SET_NOT_SUPPORTED
All these keys are public since this will keep accessing the string standardized and lead to less problems.

MSG_ERROR_TO_ATTRIBUTE_MISSING

public static final java.lang.String MSG_ERROR_TO_ATTRIBUTE_MISSING

MSG_ERROR_ATTRIBUTE_NAME_ATTRIBUTE_MISSING

public static final java.lang.String MSG_ERROR_ATTRIBUTE_NAME_ATTRIBUTE_MISSING

MSG_ERROR_PARENT_BEFORE_SENSOR

public static final java.lang.String MSG_ERROR_PARENT_BEFORE_SENSOR

contents

static final java.lang.Object[][] contents
These are the strings which should get translated. The first line is the KEY and the second line is the string to be translated. These could be on the same line but having them on separate lines will make it easier to compare the various language files to see which items have not been translated and which lines are missing from the default language file English.
Constructor Detail

SetRes

public SetRes()
Method Detail

getContents

public java.lang.Object[][] getContents()
Overrides:
getContents in class java.util.ListResourceBundle

XMT-O Reference Software