public abstract class ConfigureEipPropertiesStep extends AbstractCamelProjectCommand implements org.jboss.forge.addon.ui.wizard.UIWizardStep
CATEGORY, converterFactory, MAX_OPTIONS, projectFactory
Constructor and Description |
---|
ConfigureEipPropertiesStep(org.jboss.forge.addon.projects.ProjectFactory projectFactory,
org.apache.camel.catalog.CamelCatalog camelCatalog,
String eipName,
String group,
List<org.jboss.forge.addon.ui.input.InputComponent> allInputs,
List<org.jboss.forge.addon.ui.input.InputComponent> inputs,
boolean last,
int index,
int total) |
Modifier and Type | Method and Description |
---|---|
protected abstract org.jboss.forge.addon.ui.result.Result |
addModelXml(String pattern,
List<String> lines,
String lineNumber,
String lineNumberEnd,
String modelXml,
org.jboss.forge.addon.resource.FileResource file,
String xml) |
protected org.jboss.forge.addon.ui.result.Result |
addOrEditModelXml(org.jboss.forge.addon.resource.FileResource file,
String pattern,
String modelXml,
String xml,
String lineNumber,
String lineNumberEnd,
String mode) |
protected int |
calculateIndent(org.jboss.forge.addon.resource.FileResource file,
String lineNumber) |
protected abstract org.jboss.forge.addon.ui.result.Result |
editModelXml(String pattern,
List<String> lines,
String lineNumber,
String lineNumberEnd,
String modelXml,
org.jboss.forge.addon.resource.FileResource file,
String xml) |
org.jboss.forge.addon.ui.result.Result |
execute(org.jboss.forge.addon.ui.context.UIExecutionContext context) |
protected org.jboss.forge.addon.ui.result.Result |
executeXml(org.jboss.forge.addon.ui.context.UIExecutionContext context,
Map<Object,Object> attributeMap) |
String |
getEipName() |
String |
getGroup() |
int |
getIndex() |
org.jboss.forge.addon.ui.metadata.UICommandMetadata |
getMetadata(org.jboss.forge.addon.ui.context.UIContext context) |
int |
getTotal() |
void |
initializeUI(org.jboss.forge.addon.ui.context.UIBuilder builder) |
static String |
mandatoryAttributeValue(Map<Object,Object> attributeMap,
String name)
Returns the mandatory String value of the given name
|
org.jboss.forge.addon.ui.result.NavigationResult |
next(org.jboss.forge.addon.ui.context.UINavigationContext context) |
static String |
optionalAttributeValue(Map<Object,Object> attributeMap,
String name)
Returns the optional String value of the given name
|
asRelativeFile, configureComponentName, configureRouteBuilder, configureXml, configureXmlNode, createCamelCoordinate, createCoordinate, createCurrentLineCompleter, createRouteBuilderCompleter, createRouteBuilderEndpointsCompleter, createRouteBuilderEndpointsCompleter, createXmlEndpointsCompleter, createXmlEndpointsCompleter, createXmlFileCompleter, createXmlFileCompleter, findCamelArtifacts, findCamelCoreDependency, getCamelCatalog, getConverterFactory, getCurrentCursorLine, getCurrentCursorPosition, getOutput, getProjectFactory, getSelectedCamelElementNode, getSelectedFile, getSelectedProjectOrNull, getXmlResourceFile, isCamelProject, isEnabled, isProjectRequired, isRunningInGui, requiresCamelSetup
containsProject, filterValueChoicesFromStack, getSelectedProject, getSelectedProject
public ConfigureEipPropertiesStep(org.jboss.forge.addon.projects.ProjectFactory projectFactory, org.apache.camel.catalog.CamelCatalog camelCatalog, String eipName, String group, List<org.jboss.forge.addon.ui.input.InputComponent> allInputs, List<org.jboss.forge.addon.ui.input.InputComponent> inputs, boolean last, int index, int total)
public String getGroup()
public int getIndex()
public int getTotal()
public String getEipName()
public org.jboss.forge.addon.ui.metadata.UICommandMetadata getMetadata(org.jboss.forge.addon.ui.context.UIContext context)
getMetadata
in interface org.jboss.forge.addon.ui.command.UICommand
getMetadata
in class AbstractCamelProjectCommand
public void initializeUI(org.jboss.forge.addon.ui.context.UIBuilder builder) throws Exception
initializeUI
in interface org.jboss.forge.addon.ui.command.UICommand
Exception
public org.jboss.forge.addon.ui.result.NavigationResult next(org.jboss.forge.addon.ui.context.UINavigationContext context) throws Exception
next
in interface org.jboss.forge.addon.ui.wizard.UIWizard
Exception
public org.jboss.forge.addon.ui.result.Result execute(org.jboss.forge.addon.ui.context.UIExecutionContext context) throws Exception
execute
in interface org.jboss.forge.addon.ui.command.UICommand
Exception
protected org.jboss.forge.addon.ui.result.Result executeXml(org.jboss.forge.addon.ui.context.UIExecutionContext context, Map<Object,Object> attributeMap) throws Exception
Exception
protected int calculateIndent(org.jboss.forge.addon.resource.FileResource file, String lineNumber) throws Exception
Exception
protected org.jboss.forge.addon.ui.result.Result addOrEditModelXml(org.jboss.forge.addon.resource.FileResource file, String pattern, String modelXml, String xml, String lineNumber, String lineNumberEnd, String mode) throws Exception
Exception
protected abstract org.jboss.forge.addon.ui.result.Result addModelXml(String pattern, List<String> lines, String lineNumber, String lineNumberEnd, String modelXml, org.jboss.forge.addon.resource.FileResource file, String xml) throws Exception
Exception
protected abstract org.jboss.forge.addon.ui.result.Result editModelXml(String pattern, List<String> lines, String lineNumber, String lineNumberEnd, String modelXml, org.jboss.forge.addon.resource.FileResource file, String xml) throws Exception
Exception
public static String mandatoryAttributeValue(Map<Object,Object> attributeMap, String name)
IllegalArgumentException
- if the value is not available in the given attribute mapCopyright © 2016 Red Hat. All rights reserved.