* elementsToTraverseName.
*/
public OutletResult execute(ControllerState controllerState)
throws GeneratorException
{
TokenReplacer tokenReplacer = new TokenReplacer(controllerState);
Outlet outlet;
{
OutletConfiguration outletConfiguration
= controllerState.getUnitConfiguration()
.getOutletConfiguration();
String detokenizedOutletName
= tokenReplacer.process(outletName);
QualifiedName outletQName = new QualifiedName(
detokenizedOutletName,
Namespace.ROOT_NAMESPACE);
outlet = outletConfiguration.getOutlet(outletQName);
if (outlet == null)
{
throw new GeneratorException("TraverseAllAction : The outlet "
+ outletName
+ " does not exist");
}
}
SourceElement currentElement = controllerState.getSourceElement();
String detokenizedElementToTraverseName
= tokenReplacer.process(elementsToTraverseName);
List<SourceElement> selectedElements
= SourcePath.getElements(
currentElement,
detokenizedElementToTraverseName);