Returns the collection of all available variable names, including built-in and external variables. @return the collection of variable names
()
| 208 | * @return the collection of variable names |
| 209 | */ |
| 210 | public Collection<String> getVariableNames() { |
| 211 | Set<String> variableNames = new HashSet<>(); |
| 212 | // These built-in variables are supplied by the mediator (if not over-written by the user) and always exist |
| 213 | variableNames.add("DATE_GMT"); |
| 214 | variableNames.add("DATE_LOCAL"); |
| 215 | variableNames.add("LAST_MODIFIED"); |
| 216 | ssiExternalResolver.addVariableNames(variableNames); |
| 217 | // Remove any variables that are reserved by this class |
| 218 | variableNames.removeIf(this::isNameReserved); |
| 219 | return variableNames; |
| 220 | } |
| 221 | |
| 222 | |
| 223 | /** |
no test coverage detected