public class AttributeInjectionCodegenPreprocessor extends java.lang.Object implements CodegenPreprocessor
CodegenPreprocessor
that
injects the given attributes into the ConfigRoot
on which it is runConstructor and Description |
---|
AttributeInjectionCodegenPreprocessor() |
AttributeInjectionCodegenPreprocessor(java.util.Map<java.lang.String,java.lang.String> attributes) |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(java.lang.String name,
java.lang.String value) |
java.util.Map<java.lang.String,java.lang.String> |
getAttributes() |
ConfigRoot |
preprocessConfig(ConfigRoot configRoot)
It is recommended that implementations of this method should return
re-factored versions of the referenced configRoot.
|
void |
setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes) |
public AttributeInjectionCodegenPreprocessor()
public AttributeInjectionCodegenPreprocessor(java.util.Map<java.lang.String,java.lang.String> attributes)
public java.util.Map<java.lang.String,java.lang.String> getAttributes()
public void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
public void addAttribute(java.lang.String name, java.lang.String value)
public ConfigRoot preprocessConfig(ConfigRoot configRoot)
CodegenPreprocessor
preprocessConfig
in interface CodegenPreprocessor