Uses of Class
com.winterhavenmc.library.messagebuilder.pipeline.maps.MacroObjectMap
Packages that use MacroObjectMap
Package
Description
Contains the sealed
Message
interface and its implementations, which represent composed messages ready for macro
substitution and delivery.Defines the final stage in the message processing pipeline, responsible for converting a structured
ValidMessageRecord
into a fully resolved
FinalMessageRecord
.Contains interfaces and classes responsible for replacing macros in message strings
using resolved values from a
MacroObjectMap
.Provides a hierarchy of
Resolver
implementations responsible for converting macro-related input values into string representations
for use in templated messages.-
Uses of MacroObjectMap in com.winterhavenmc.library.messagebuilder.model.message
Methods in com.winterhavenmc.library.messagebuilder.model.message that return MacroObjectMapModifier and TypeMethodDescriptionInvalidMessage.getObjectMap()
Message.getObjectMap()
Returns theMacroObjectMap
of macro values bound to this message.ValidMessage.getObjectMap()
-
Uses of MacroObjectMap in com.winterhavenmc.library.messagebuilder.pipeline.processor
Methods in com.winterhavenmc.library.messagebuilder.pipeline.processor with parameters of type MacroObjectMapModifier and TypeMethodDescriptionMessageProcessor.process
(ValidMessageRecord messageRecord, MacroObjectMap macroObjectMap) Processes aValidMessageRecord
by replacing all macros in its fields using the providedMacroObjectMap
.Processor.process
(ValidMessageRecord messageRecord, MacroObjectMap macroObjectMap) Processes a valid message record by replacing all macros using the provided macro object map. -
Uses of MacroObjectMap in com.winterhavenmc.library.messagebuilder.pipeline.replacer
Methods in com.winterhavenmc.library.messagebuilder.pipeline.replacer with parameters of type MacroObjectMapModifier and TypeMethodDescriptionMacroReplacer.replace
(MacroObjectMap macroObjectMap, String messageString) Replaces all macro placeholders found in the given message string using the providedMacroObjectMap
.Replacer.replace
(MacroObjectMap macroObjectMap, String messageString) Replaces all macro placeholders in the provided message string using values from the given macro object map. -
Uses of MacroObjectMap in com.winterhavenmc.library.messagebuilder.pipeline.resolvers
Methods in com.winterhavenmc.library.messagebuilder.pipeline.resolvers with parameters of type MacroObjectMapModifier and TypeMethodDescriptionAtomicResolver.resolve
(MacroKey macroKey, MacroObjectMap macroObjectMap) Resolves a single value mapped to the providedMacroKey
into a string representation, if the object exists and can be formatted.CompositeResolver.resolve
(MacroKey macroKey, MacroObjectMap macroObjectMap) Resolves aMacroKey
by attempting to adapt the associated object from theMacroObjectMap
using applicableAdapter
instances.FieldResolver.resolve
(MacroKey macroKey, MacroObjectMap macroObjectMap) Resolves aMacroKey
using the available macro objects in the givenMacroObjectMap
, by delegating to each registered resolver in sequence.Resolver.resolve
(MacroKey key, MacroObjectMap macroObjectMap) Resolves a set of string values from the givenMacroObjectMap
for the providedMacroKey
.