public interface IParameterDecorator
| Modifier and Type | Field and Description |
|---|---|
static String |
INVERT_FLAG
All expressions are evaluated unless annotation
@DontEval is
added. |
static String |
LATE_FLAG
Force the evaluation at the end of plugin execution.
|
static String |
SILENT_FLAG
Invert evaluation 'silence'.
|
| Modifier and Type | Method and Description |
|---|---|
String |
clear(String name)
Get name cleared.
|
Map<String,Object> |
getAllParameters()
Map of parameters set.
|
Object |
getDecorated()
Gets the decorated object.
|
Object |
getParameter(String name)
Gets a parameter.
|
Map<String,Object> |
getParameters()
Map of parameters set.
|
boolean |
hasParameter(String name)
Check if a parameter name is valid.
|
boolean |
isEval(String name)
Check if a given name has to be evaluated.
|
boolean |
isLate(String name)
Check if a given name has to be evaluated at the end or not.
|
boolean |
isSilent(String name)
Check if a given name has to be evaluated silently or not.
|
void |
setAllParameters(Map<String,Object> allParameters)
Set of all parameters map.
|
void |
setDecorated(Object decorated)
Sets the decorated object.
|
Object |
setParameter(String name,
Object value,
IContext context)
Set a parameter.
|
void |
setParameters(Map<String,Object> parameters)
Set parameters map.
|
static final String INVERT_FLAG
@DontEval is
added. If the attribute has this flag the evaluation behavior is the
opposite: not annotated attributes wont be evaluated, and annotate
attributes will be evaluated.static final String SILENT_FLAG
@Unsilent is specified for the feature.static final String LATE_FLAG
Object getDecorated()
void setDecorated(Object decorated)
decorated - The new decorated object.boolean isEval(String name)
name - The feature name.boolean isSilent(String name)
name - The feature name.boolean isLate(String name)
name - The feature name.String clear(String name)
name - The name.Object setParameter(String name, Object value, IContext context) throws Exception
name - The parameter name.value - The parameter value.context - The context where value is insert.Exception - On evaluation error.Object getParameter(String name)
name - The parameter name.boolean hasParameter(String name)
name - The parameter.Map<String,Object> getParameters()
void setParameters(Map<String,Object> parameters)
parameters - The map.Map<String,Object> getAllParameters()
Copyright © 2016. All rights reserved.