org.loom.i18n
Class CompiledMessage

java.lang.Object
  extended by org.loom.i18n.CompiledMessage

public class CompiledMessage
extends java.lang.Object

The compiled template of a message.

Author:
Ignacio Coloma

Constructor Summary
CompiledMessage()
           
 
Method Summary
 void addCompiledExpression(java.lang.String expression)
           
 void addString(java.lang.String part)
           
 java.lang.String applyTo()
           
 java.lang.String eval(java.util.Map<java.lang.String,java.lang.Object> params)
           
 java.util.List getParts()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompiledMessage

public CompiledMessage()
Method Detail

eval

public java.lang.String eval(java.util.Map<java.lang.String,java.lang.Object> params)
Returns:
the message after replacing all the parameters with the provided values

addString

public void addString(java.lang.String part)

addCompiledExpression

public void addCompiledExpression(java.lang.String expression)

getParts

public java.util.List getParts()

applyTo

public java.lang.String applyTo()


The Loom Framework 1.6-SNAPSHOT.
Licensed under the Apache License, Version 2.0 by Extrema Sistemas de Informacion S.L.