Interface MacroType

All Known Implementing Classes:
DemoMacro

public interface MacroType
Macro implementation. All macro classes must implement this interface.
  • Method Details

    • getValue

      Optional<String> getValue(MacroDefinition macroDefinition, ValueProvider valueProvider, FieldContext context)
      Returns the value for a specific macro invocation.
      Parameters:
      macroDefinition - The macro definition
      valueProvider - A value provider that either provides a property backed value or the initial (default) value
      context - The Field context
      Returns:
      An Optional wrapping a string value. If the macro returns Optional.empty(), the field value will be the empty string