public class LangProperty
extends java.lang.Object
en.en: English en.fr: French en.lbl.myfield: My field numbered {0} en.msg.empty-field-ml: Field {0} must not be empty in {1}. fr.en: Anglais fr.fr: Français fr.lbl.myfield: Mon champ numéroté {0} fr.msg.empty-field-ml: Le champ {0} ne doit pas être vide en {1}.This code:
String fieldName = "myfield"; String missingFieldLang = "fr"; JcmsUtil.glp(userLang, "msg.empty-field-ml", new LangProperty(fieldName, new Integer(42)), new LangProperty(missingFieldLang));Would output those messages :
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object[] |
arguments |
protected java.lang.String |
name |
static java.lang.String |
REVISION |
Constructor and Description |
---|
LangProperty(java.lang.String name) |
LangProperty(java.lang.String name,
java.lang.Object arg1) |
LangProperty(java.lang.String name,
java.lang.Object[] arguments) |
LangProperty(java.lang.String name,
java.lang.Object arg1,
java.lang.Object arg2) |
LangProperty(java.lang.String name,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object[] |
getArguments() |
java.lang.String |
getName() |
public static final java.lang.String REVISION
protected final java.lang.String name
protected final java.lang.Object[] arguments
public LangProperty(java.lang.String name, java.lang.Object[] arguments)
public LangProperty(java.lang.String name)
public LangProperty(java.lang.String name, java.lang.Object arg1)
public LangProperty(java.lang.String name, java.lang.Object arg1, java.lang.Object arg2)
public LangProperty(java.lang.String name, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
Copyright © 2001-2010 Jalios SA. All Rights Reserved.