Package org.openl.rules.binding
Class MessageSourceResourceMethod
- java.lang.Object
-
- org.openl.rules.binding.MessageSourceResourceMethod
-
- All Implemented Interfaces:
INamedThing,IMethodCaller,Invokable,IOpenMember,IOpenMethod,IOpenMethodHeader
public class MessageSourceResourceMethod extends Object implements IOpenMethod
Virtual method for getting messages from OpenL Rules.
Example:
{ @code // foo.bar = Hello, {0} {1}! // Get message without formatting by code String msg = msg("foo.bar"); // Hello, {0} {1}! // Get message formatter by code String formattedMsg = msg("foo.bar", "Mr.", "John"); // Hello, Mr. John! }- Author:
- Vladyslav Pikus
-
-
Field Summary
-
Fields inherited from interface org.openl.base.INamedThing
EMPTY, LONG, REGULAR, SHORT
-
Fields inherited from interface org.openl.types.IOpenMethod
EMPTY_ARRAY
-
-
Constructor Summary
Constructors Constructor Description MessageSourceResourceMethod()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IOpenClassgetDeclaringClass()StringgetDisplayName(int mode)IMemberMetaInfogetInfo()IOpenMethodgetMethod()StringgetName()IMethodSignaturegetSignature()IOpenClassgetType()Objectinvoke(Object target, Object[] params, IRuntimeEnv env)booleanisConstructor()booleanisStatic()
-
-
-
Method Detail
-
invoke
public Object invoke(Object target, Object[] params, IRuntimeEnv env)
-
getDisplayName
public String getDisplayName(int mode)
- Specified by:
getDisplayNamein interfaceINamedThing
-
getName
public String getName()
- Specified by:
getNamein interfaceINamedThing
-
getMethod
public IOpenMethod getMethod()
- Specified by:
getMethodin interfaceIMethodCaller
-
getType
public IOpenClass getType()
- Specified by:
getTypein interfaceIOpenMember
-
isStatic
public boolean isStatic()
- Specified by:
isStaticin interfaceIOpenMember
-
getInfo
public IMemberMetaInfo getInfo()
- Specified by:
getInfoin interfaceIOpenMember
-
getDeclaringClass
public IOpenClass getDeclaringClass()
- Specified by:
getDeclaringClassin interfaceIOpenMember
-
isConstructor
public boolean isConstructor()
- Specified by:
isConstructorin interfaceIOpenMethod
-
getSignature
public IMethodSignature getSignature()
- Specified by:
getSignaturein interfaceIOpenMethodHeader
-
-