be.destin.beans
Class Reflector
java.lang.Object
be.destin.beans.Reflector
public class Reflector
- extends java.lang.Object
Method Summary |
static java.lang.String |
getBeanField(java.lang.Object bean,
java.lang.String fieldName,
java.lang.String userLanguage)
|
static java.lang.String |
substitute(java.lang.Object bean,
java.lang.String input,
java.lang.String userLanguage)
This function returns a message with {field with a getter} substituted with information of this entry
return the message |
static java.lang.String |
substituteAttribute(java.lang.Object bean,
java.lang.String input,
java.lang.String userLanguage)
This function returns a message with {field with a getter} substituted with information of this entry
return the message |
static java.lang.String |
substituteURL(java.lang.String applicationRoot,
java.lang.Object[] beans,
java.lang.String input,
java.lang.String userLanguage)
|
static java.lang.String |
substituteURL(java.lang.String applicationRoot,
java.lang.Object bean,
java.lang.String input,
java.lang.String userLanguage)
This function returns a message with {field with a getter} substituted with information of this entry. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
substBeg
public static final char substBeg
- See Also:
- Constant Field Values
substEnd
public static final char substEnd
- See Also:
- Constant Field Values
Reflector
public Reflector()
getBeanField
public static java.lang.String getBeanField(java.lang.Object bean,
java.lang.String fieldName,
java.lang.String userLanguage)
substitute
public static java.lang.String substitute(java.lang.Object bean,
java.lang.String input,
java.lang.String userLanguage)
- This function returns a message with {field with a getter} substituted with information of this entry
return the message
substituteURL
public static java.lang.String substituteURL(java.lang.String applicationRoot,
java.lang.Object bean,
java.lang.String input,
java.lang.String userLanguage)
- This function returns a message with {field with a getter} substituted with information of this entry.
- Parameters:
applicationRoot
- String with the beginning of URLs for the involved application. Will be inserted for [root]bean
- Object for which attributes can be getinput
- String with the template where [field] references can appearuserLanguage
- Optional parameter to the getters indicating user language
- Returns:
- String with a text where [field] placeholders are replaced in the context of the user language
substituteURL
public static java.lang.String substituteURL(java.lang.String applicationRoot,
java.lang.Object[] beans,
java.lang.String input,
java.lang.String userLanguage)
substituteAttribute
public static java.lang.String substituteAttribute(java.lang.Object bean,
java.lang.String input,
java.lang.String userLanguage)
- This function returns a message with {field with a getter} substituted with information of this entry
return the message