public class TemplateVariableGroup
extends Object
Constructor and Description |
---|
TemplateVariableGroup(String label) |
TemplateVariableGroup(String label,
String[] restrictedVariables) |
Modifier and Type | Method and Description |
---|---|
TemplateVariableDefinition |
addCollectionVariable(String collectionLabel,
Class<?> collectionClazz,
String collectionName,
String itemLabel,
Class<?> itemClazz,
String itemName,
String itemAccessor) |
TemplateVariableDefinition |
addFieldVariable(String label,
Class<?> clazz,
String variableName,
String help,
String dataType,
boolean repeatable,
TemplateVariableCodeHandler templateVariableCodeHandler) |
void |
addServiceLocatorVariables(Class<?>... serviceClasses) |
TemplateVariableDefinition |
addVariable(String label,
Class<?> clazz,
String name) |
TemplateVariableDefinition |
addVariable(String label,
Class<?> clazz,
String name,
String accessor) |
void |
empty() |
String |
getLabel() |
Collection<TemplateVariableDefinition> |
getTemplateVariableDefinitions() |
boolean |
isAutocompleteEnabled() |
boolean |
isEmpty() |
protected boolean |
isRestrictedVariable(String variableName) |
void |
setAutocompleteEnabled(boolean autocompleteEnabled) |
void |
setLabel(String label) |
public TemplateVariableGroup(String label)
public TemplateVariableGroup(String label, String[] restrictedVariables)
public TemplateVariableDefinition addCollectionVariable(String collectionLabel, Class<?> collectionClazz, String collectionName, String itemLabel, Class<?> itemClazz, String itemName, String itemAccessor)
public TemplateVariableDefinition addFieldVariable(String label, Class<?> clazz, String variableName, String help, String dataType, boolean repeatable, TemplateVariableCodeHandler templateVariableCodeHandler)
public void addServiceLocatorVariables(Class<?>... serviceClasses)
public TemplateVariableDefinition addVariable(String label, Class<?> clazz, String name)
public TemplateVariableDefinition addVariable(String label, Class<?> clazz, String name, String accessor)
public void empty()
public String getLabel()
public Collection<TemplateVariableDefinition> getTemplateVariableDefinitions()
public boolean isAutocompleteEnabled()
public boolean isEmpty()
public void setAutocompleteEnabled(boolean autocompleteEnabled)
public void setLabel(String label)
protected boolean isRestrictedVariable(String variableName)