doc / ch.tutteli.atrium.logic.creating.transformers.impl.subjectchanger / DescriptionRepresentationStepImpl / withDescriptionAndRepresentation

withDescriptionAndRepresentation

fun withDescriptionAndRepresentation(description: Translatable, representation: Any?): SubjectChangerBuilder.TransformationStep<T> (source)

Overrides DescriptionRepresentationStep.withDescriptionAndRepresentation

Uses the given description and representation to represent the change. Moreover, subsequent options in the building step allow to define rules when the change cannot be applied, in such a case an alternative description and representation might be used (depending on the implementation and chosen options).

Notice, if you want to use text (a String which is treated as raw string in reporting) as representation, then wrap it into a Text and pass it instead.