|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectabk.text.AResourceKey
abk.text.AMessage
public class AMessage
Implementa un mensaje en estado programático, sin aplicar la localización adecuada para el usuario.
Field Summary | |
---|---|
private Object[] |
iValues
Argumentos que se aplicarán al patrón obtenido a través de la clave del mensaje. |
Constructor Summary | |
---|---|
AMessage(AMessage msg)
|
|
AMessage(AResourceKey key,
Object... args)
|
|
AMessage(boolean resource,
String key,
Object... args)
|
|
AMessage(String key,
Object... args)
Constructor del mensaje. |
|
AMessage(Throwable t)
|
Method Summary | |
---|---|
void |
append(Appendable ap,
Locale locale)
|
boolean |
equals(Object obj)
|
Object |
getValue(int k)
Devuelve el k-ésimo parámetro del mensaje. |
Object[] |
getValues()
Devuelve el vector de parámetros del mensaje. |
int |
hashCode()
|
void |
stringify(StringBuilder sb,
Locale locale)
|
String |
toString()
Convierte el mensaje en una cadena que representa el contenido del mensaje sin procesar. |
String |
toString(Locale locale)
|
Methods inherited from class abk.text.AResourceKey |
---|
$, append, getKey, isResource, stringify, toString, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final Object[] iValues
Constructor Detail |
---|
public AMessage(String key, Object... args)
key
- Clave del mensaje.args
- Parámetros a aplicar al mensaje.
NullPointerException
- si key es nulo.public AMessage(boolean resource, String key, Object... args)
public AMessage(AMessage msg)
public AMessage(AResourceKey key, Object... args)
public AMessage(Throwable t)
Method Detail |
---|
public Object getValue(int k)
k
- Índice, desde cero, del parámetro que se consulta.
IndexOutOfBoundsException
- si k está fuera de rango.public Object[] getValues()
public int hashCode()
hashCode
in class AResourceKey
public boolean equals(Object obj)
equals
in class AResourceKey
public String toString()
toString
in class AResourceKey
${key[,"arg0"[,...]]}
.public String toString(Locale locale)
toString
in class AResourceKey
public void append(Appendable ap, Locale locale) throws IOException
IOException
public void stringify(StringBuilder sb, Locale locale)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |