Ableverse™
Platform 6.0

av.msg
Class Message

java.lang.Object
  extended by av.msg.Message

public class Message
extends Object

Message represents compiled message definitions, and are used to produce text results according to particular argument values.

Author:
Compl

Constructor Summary
Message(Meta textMeta)
          Read a message definition from textMeta and compile it.
 
Method Summary
 String format(Locale l, Object... args)
          Note: You must pass 'args' here in pairs!
 String getLocation()
          Get the location from where the message definition was loaded.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Message

public Message(Meta textMeta)
Read a message definition from textMeta and compile it.

Parameters:
textMeta - a meta containing a message definition
Method Detail

format

public String format(Locale l,
                     Object... args)
Note: You must pass 'args' here in pairs!

Parameters:
l - Used to determine currency, percent, date and time formats
See Also:
Messager.format(Locale, String, Object[])

getLocation

public String getLocation()
Get the location from where the message definition was loaded.

Returns:
the message definition location

Ableverse™
Platform 6.0

Copyright© 2006 Ableverse Platform. All rights reserved.