public abstract class AbstractMacro extends Object implements Macro
Macro
.Constructor and Description |
---|
AbstractMacro() |
Modifier and Type | Method and Description |
---|---|
void |
enableLogging(Log log) |
protected static SinkEventAttributes |
getAttributesFromMap(Map<?,?> parameters)
Convert the Map of macro parameters to an AttributeSet.
|
protected Log |
getLog()
Returns a logger for this macro.
|
protected void |
required(String paramName,
String paramValue)
Check if the given parameter is required.
|
public AbstractMacro()
public void enableLogging(Log log)
enableLogging
in interface LogEnabled
protected Log getLog()
protected void required(String paramName, String paramValue)
paramName
- The name of the parameter to check.paramValue
- The parameter value.protected static SinkEventAttributes getAttributesFromMap(Map<?,?> parameters)
parameters
- the macro parameters.Copyright © 2005–2014 The Apache Software Foundation. All rights reserved.