parse

willThrowExceptionIfKeyWasNotFound

public boolean willThrowExceptionIfKeyWasNotFound()

Test whether formatter will throw exception if object for key was not found.
If given map does not contain object for key specified, it could
throw an exception. Returns true if throws. If not, key is left unchanged.

setThrowExceptionIfKeyWasNotFound

public void setThrowExceptionIfKeyWasNotFound(boolean flag)

Specify whether formatter will throw exception if object for key was not found.
If given map does not contain object for key specified, it could
throw an exception. If does not throw, key is left unchanged.

Parameters:

flag - If true, formatter throws IllegalArgumentException.

isExactMatch

public boolean isExactMatch()

Test whether both brackets are required in the expression.
If not, use setExactMatch(false) and formatter will ignore missing right
bracket. Advanced feature.

setExactMatch

public void setExactMatch(boolean flag)

Specify whether both brackets are required in the expression.
If not, use setExactMatch(false) and formatter will ignore missing right
bracket. Advanced feature.

setRightBrace

getMap

setMap

Sets argument map
This map should contain key-value pairs with key values used in
formatted string expression. If value for key was not found, formatter leave
key unchanged (except if you've set setThrowExceptionIfKeyWasNotFound(true),
then it fires IllegalArgumentException.