org.zkoss.mesg
Class MessageConst.Aide

java.lang.Object
  extended by org.zkoss.mesg.MessageConst.Aide
Enclosing interface:
MessageConst

public static class MessageConst.Aide
extends java.lang.Object

Used to handle the mapping of a message code to a filename.

FUTURE: we might consider to use hashCode or other to represents the identifier such that the client will have the same code as the server.


Constructor Summary
MessageConst.Aide()
           
 
Method Summary
static MessageConst.BundleInfo getBundleInfo(int code)
          Returns the filename with path, but without extension, of the specified message code.
static int register(java.lang.Class klass, java.lang.String filename)
          Registers a message filename, and returns an identifier to represent it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageConst.Aide

public MessageConst.Aide()
Method Detail

register

public static final int register(java.lang.Class klass,
                                 java.lang.String filename)
Registers a message filename, and returns an identifier to represent it.

The path is assumed to be /metainfo/mesg.

Parameters:
filename - the filename without path and extension, e.g, "msgacc"
Returns:
an identifier to represent this message file.

getBundleInfo

public static final MessageConst.BundleInfo getBundleInfo(int code)
Returns the filename with path, but without extension, of the specified message code.



Copyright © 2005-2007 Potix Corporation. All Rights Reserved.