public class MacroCondition extends MacroFunctor
ATTR_DESCRIPTION, ATTR_ICON, ATTR_LABEL, ATTR_TIP| Constructor and Description |
|---|
MacroCondition() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(IElement element) |
IFunctor |
getElseExpression() |
IFunctor |
getIfExpression() |
String |
getLabel()
A short string representation (suitable for example for use with an icon
or menu item).
|
IFunctor |
getThenExpression() |
Object |
perform(IFunctorCall call)
Perform the encapsulated business logic in the context defined in "call".
|
void |
serialize(IElement element)
Serialize the state in
element. |
void |
setContext(Object context) |
void |
setElseExpression(IFunctor step) |
void |
setIfExpression(IFunctor step) |
void |
setThenExpression(IFunctor step) |
getClassLoader, getContainer, getContext, getDescription, getIconName, getTip, setContainerpublic void configure(IElement element) throws ConfigurationException
configure in interface IElementConfigurableconfigure in class MacroFunctorConfigurationExceptionpublic IFunctor getElseExpression()
public IFunctor getIfExpression()
public String getLabel()
IPresentationSupportgetLabel in interface IPresentationSupportgetLabel in class MacroFunctorpublic IFunctor getThenExpression()
public Object perform(IFunctorCall call) throws FunctorInvocationException
IFunctorcall - The call contextFunctorInvocationException - An exception that raised while executing the business logic
will be wrapped in a FunctorInvocationException.public void serialize(IElement element) throws ElementSerializationException
IElementSerializableelement. element
represents the receiver immediately, it contains the state information
directly, not as a child element. This means most of the time you have to
change the element name itself and add child elements.serialize in interface IElementSerializableserialize in class MacroFunctorElementSerializationExceptionpublic void setContext(Object context) throws ConfigurationException
setContext in interface IContextSupportsetContext in class MacroFunctorConfigurationExceptionpublic void setElseExpression(IFunctor step)
public void setIfExpression(IFunctor step)
public void setThenExpression(IFunctor step)
Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.