public class SwitchVar extends MultipartVar
The format for this var is one of the following:
The pattern can be any string optionally containing
Since this is a MultipartVar, any variables contained in the result will be recursively resolved.
Likewise, if the arguments contain any variables, those will be resolved before they are passed to this var.
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME
The name of this variable.
|
| Constructor and Description |
|---|
SwitchVar()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
resolve(VarResolverSession session,
String[] args)
The interface that needs to be implemented for this interface.
|
resolveallowNested, allowRecurse, canResolve, doResolve, getNamepublic static final String NAME
public SwitchVar()
public String resolve(VarResolverSession session, String[] args)
MultipartVarresolve in class MultipartVarsession - The session object used for a single instance of a string resolution.args - The arguments inside the variable.Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.