public class ResourceString extends NativeObject
Modifier and Type | Field and Description |
---|---|
static int |
LANG_COUNT
Number of languages managed by the library.
|
static int |
LANG_EN
English language constant.
|
static int |
LANG_FR
French language constant.
|
Modifier | Constructor and Description |
---|---|
|
ResourceString()
Default constructor.
|
protected |
ResourceString(long I64_NativeStringRef)
Constructor for createFromNative() or child classes only.
|
|
ResourceString(ResourceString CLI_String)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
protected static void |
createFromNative(long I64_NativeStringRef)
Creation from native code.
|
java.lang.String |
getString(int E_Lang)
Retrieves the string attached for the given language.
|
boolean |
hasString(int E_Lang)
States whether the resource string object has a resource for the given language.
|
ResourceString |
setString(int E_Lang,
java.lang.String J_String)
String addition for a given language.
|
createdFromNative, dontFinalize, finalize, forget, getbDoFinalize, getNativeRef, getObject, remember
public static final int LANG_EN
public static final int LANG_FR
public static final int LANG_COUNT
public ResourceString()
public ResourceString(ResourceString CLI_String)
CLI_String
- Source object.protected ResourceString(long I64_NativeStringRef)
I64_NativeStringRef
- Native instance reference.protected static void createFromNative(long I64_NativeStringRef)
I64_NativeStringRef
- Native instance reference.public final ResourceString setString(int E_Lang, java.lang.String J_String)
E_Lang
- Language identifier (LANG_EN, LANG_FR...)J_String
- String of the given language.public final boolean hasString(int E_Lang)
E_Lang
- Language identifier (LANG_EN, LANG_FR...)public final java.lang.String getString(int E_Lang)
E_Lang
- Language identifier (LANG_EN, LANG_FR...)