Sys Class

Sys Class

This Package | All Packages

StaticResourceManager
  |
  +--Sys
public class Sys
extends StaticResourceManager

Retrieves named localized resources for various data types.

Methods
Name Description
getBoolean(String name) Retrieves a localized boolean value.
getBoolean(Locale locale, String name) Retrieves a localized boolean value.
getByte(String name) Retrieves a localized byte value.
getByte(Locale locale, String name) Retrieves a localized byte value.
getChar(String name) Retrieves a localized character value.
getChar(Locale locale, String name) Retrieves a localized character value.
getDouble(String name) Retrieves a localized double value.
getDouble(Locale locale, String name) Retrieves a localized double value.
getFloat(String name) Retrieves a localized float value.
getFloat(Locale locale, String name) Retrieves a localized float value.
getInt(String name) Retrieves a localized integer value.
getInt(Locale locale, String name) Retrieves a localized integer value.
getLong(String name) Retrieves a localized long value.
getLong(Locale locale, String name) Retrieves a localized long value.
getObject(String name) Retrieves a localized object.
getObject(Locale locale, String name) Retrieves a localized object.
getShort(String name) Retrieves a localized short value.
getShort(Locale locale, String name) Retrieves a localized short value.
getString(String name, String arg1) Retrieves a localized string.
getString(Locale locale, String name, String arg1) Retrieves a localized string.
getString(String name, String arg1, String arg2) Retrieves a localized string.
getString(Locale locale, String name, String arg1, String arg2) Retrieves a localized string.
getString(String name, String arg1, String arg2, String arg3) Retrieves a localized string.
getString(Locale locale, String name, String arg1, String arg2, String arg3) Retrieves a localized string.
getString(String name, String arg1, String arg2, String arg3, String arg4) Retrieves a localized string.
getString(Locale locale, String name, String arg1, String arg2, String arg3, String arg4) Retrieves a localized string.
getString(String name, String arg1, String arg2, String arg3, String arg4, String arg5) Retrieves a localized string.
getString(Locale locale, String name, String arg1, String arg2, String arg3, String arg4, String arg5) Retrieves a localized string.
getString(String name, String[] args) Retrieves a localized string.
getString(Locale locale, String name, String[] args) Retrieves a localized string.
getString(String name) Retrieves a localized string.
getString(Locale locale, String name) Retrieves a localized string.

Methods

Sys.getBoolean

Syntax 1
public static boolean getBoolean( String name );
Parameters
name
The key name assigned to the element.
Return Value

Returns a named boolean value from a resource.

Description

Retrieves a localized boolean value. This method uses the default application locale.



Syntax 2
public static boolean getBoolean( Locale locale, String name );
Parameters
local
The local of the value to retrieve.
name
The key name assigned to the element.
Return Value

Returns a named boolean value from a resource.

Description

Retrieves a localized boolean value.

Sys.getByte

Syntax 1
public static byte getByte( String name );
Parameters
name
The key name assigned to the element.
Return Value

Returns a named byte value from a resource.

Description

Retrieves a localized byte value. This method uses the default application locale.



Syntax 2
public static byte getByte( Locale locale, String name );
Parameters
locale
The locale of the value to retrieve.
name
The key name assigned to the element.
Return Value

Returns a named byte value from a resource.

Description

Retrieves a localized byte value.

Sys.getChar

Syntax 1
public static char getChar( String name );
Parameters
name
The key name assigned to the element.
Return Value

Returns a named character value from a resource.

Description

Retrieves a localized character value. This method uses the default application locale.



Syntax 2
public static char getChar( Locale locale, String name );
Parameters
locale
The locale of the value to retrieve.
Return Value

Returns a named character value from a resource.

Description

Retrieves a localized character value.

Sys.getDouble

Syntax 1
public static double getDouble( String name );
Parameters
name
The key name assigned to the element.
Return Value

Returns a named double value from a resource.

Description

Retrieves a localized double value. This method uses the default application locale.



Syntax 2
public static double getDouble( Locale locale, String name );
Parameters
locale
The locale of the value to retrieve.
name
The key name assigned to the element.
Return Value

Returns a named double value from a resource.

Description

Retrieves a localized double value.

Sys.getFloat

Syntax 1
public static float getFloat( String name );
Parameters
name
The key name assigned to the element.
Return Value

Returns a named float value from a resource.

Description

Retrieves a localized float value. This method uses the default application locale.



Syntax 2
public static float getFloat( Locale locale, String name );
Parameters
locale
The locale of the value to retrieve.
name
The key name assigned to the element.
Return Value

Returns a named float value from a resource.

Description

Retrieves a localized float value.

Sys.getInt

Syntax 1
public static int getInt( String name );
Parameters
name
The key name assigned to the element.
Return Value

Returns a named integer value from a resource.

Description

Retrieves a localized integer value. This method uses the default application locale.



Syntax 2
public static int getInt( Locale locale, String name );
Parameters
locale
The locale of the value to retrieve.
name
The key name assigned to the element.
Return Value

Returns a named integer value from a resource.

Description

Retrieves a localized integer value.

Sys.getLong

Syntax 1
public static long getLong( String name );
Parameters
name
The key name assigned to the element.
Return Value

Returns a named long value from a resource.

Description

Retrieves a localized long value. This method uses the default application locale.



Syntax 2
public static long getLong( Locale locale, String name );
Parameters
locale
The locale of the value to retrieve.
name
The key name assigned to the element.
Return Value

Returns a named long value from a resource.

Description

Retrieves a localized long value.

Sys.getObject

Syntax 1
public static Object getObject( String name );
Parameters
name
The key name assigned to the element.
Return Value

Returns a named object from a resource.

Description

Retrieves a localized object. This method uses the default application locale.



Syntax 2
public static Object getObject( Locale locale, String name );
Parameters
locale
The locale of the object to retrieve.
name
The key name assigned to the element.
Return Value

Returns a named object from a resource.

Description

Retrieves a localized object.

Sys.getShort

Syntax 1
public static short getShort( String name );
Parameters
name
The key name assigned to the element.
Return Value

Returns a named short value from a resource.

Description

Retrieves a localized short value. This method uses the default application locale.



Syntax 2
public static short getShort( Locale locale, String name );
Parameters
locale
The locale of the value to retrieve.
name
The key name assigned to the element.
Return Value

Returns a named short value from a resource.

Description

Retrieves a localized short value.

Sys.getString

Syntax 1
public static String getString( String name, String arg1 );
Parameters
name
The key name assigned to the element.
Return Value

Returns a named string from a resource.

Description

Retrieves a localized string. The default application locale is used.



Syntax 2
public static String getString( Locale locale, String name, String arg1 );
Parameters
locale
The locale of the value to retrieve.
name
The key name assigned to the element.
Return Value

Returns a named string from a resource.

Description

Retrieves a localized string.



Syntax 3
public static String getString( String name, String arg1, String arg2 );
Parameters
name
The key name assigned to the element.
Return Value

Returns a named string from a resource.

Description

Retrieves a localized string. This method uses the default application locale.



Syntax 4
public static String getString( Locale locale, String name, String arg1, String arg2 );
Parameters
locale
The locale of the value to retrieve.
name
The key name assigned to the element.
Return Value

Returns a named string from a resource.

Description

Retrieves a localized string.



Syntax 5
public static String getString( String name, String arg1, String arg2, String arg3 );
Parameters
name
The key name assigned to the element.
Return Value

Returns a named string from a resource.

Description

Retrieves a localized string. This method uses the default application locale.



Syntax 6
public static String getString( Locale locale, String name, String arg1, String arg2, String arg3 );
Parameters
locale
The locale of the value to retrieve.
name
The key name assigned to the element.
Return Value

Returns a named string from a resource.

Description

Retrieves a localized string.



Syntax 7
public static String getString( String name, String arg1, String arg2, String arg3, String arg4 );
Parameters
name
The key name assigned to the element.
Return Value

Returns a named string from a resource.

Description

Retrieves a localized string. This method uses the default application locale.



Syntax 8
public static String getString( Locale locale, String name, String arg1, String arg2, String arg3, String arg4 );
Parameters
locale
The locale of the value to retrieve.
Return Value

Returns a named string from a resource.

Description

Retrieves a localized string.



Syntax 9
public static String getString( String name, String arg1, String arg2, String arg3, String arg4, String arg5 );
Parameters
name
The key name assigned to the element.
Return Value

Returns a named string from a resource.

Description

Retrieves a localized string. This method uses the default application locale.



Syntax 10
public static String getString( Locale locale, String name, String arg1, String arg2, String arg3, String arg4, String arg5 );
Parameters
locale
The locale of the value to retrieve.
name
The key name assigned to the element.
Return Value

Returns a named string from a resource.

Description

Retrieves a localized string.



Syntax 11
public static String getString( String name, String[] args );
Parameters
name
The key name assigned to the element.
Return Value

Returns a named string from a resource.

Description

Retrieves a localized string. This method uses the default application locale.



Syntax 12
public static String getString( Locale locale, String name, String[] args );
Parameters
locale
The locale of the value to retrieve.
name
The key name assigned to the element.
Return Value

Returns a named string from a resource.

Description

Retrieves a localized string.



Syntax 13
public static String getString( String name );
Parameters
name
The key name assigned to the element.
Return Value

Returns a named string from a resource.

Description

Retrieves a localized string. This method uses the default application locale.



Syntax 14
public static String getString( Locale locale, String name );
Parameters
local
The local of the value to retrieve.
name
The key name assigned to the element.
Return Value

Returns a named string from a resource.

Description

Retrieves a localized string.