org.mentawai.message
Class AbstractMessageContext

java.lang.Object
  extended by org.mentawai.message.AbstractMessageContext
All Implemented Interfaces:
MessageContext
Direct Known Subclasses:
ClassMessageContext, FileMessageContext

public abstract class AbstractMessageContext
extends Object
implements MessageContext

Author:
Sergio Oliveira

Field Summary
protected  String dir
           
protected  String prefix
           
 
Constructor Summary
AbstractMessageContext()
           
 
Method Summary
 String getDir()
           
 String getMessage(String id, Locale loc)
           
 String getMessage(String id, Locale loc, boolean noPrefix)
           
protected abstract  String getPath()
           
 void setPrefix(String prefix)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

dir

protected String dir

prefix

protected String prefix
Constructor Detail

AbstractMessageContext

public AbstractMessageContext()
Method Detail

getDir

public String getDir()

setPrefix

public void setPrefix(String prefix)

getPath

protected abstract String getPath()

getMessage

public String getMessage(String id,
                         Locale loc)
Specified by:
getMessage in interface MessageContext

getMessage

public String getMessage(String id,
                         Locale loc,
                         boolean noPrefix)
Specified by:
getMessage in interface MessageContext

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.