Package com.nomagic.magicdraw.uml.text
Class ModelTextCreator
java.lang.Object
com.nomagic.magicdraw.uml.text.CoreTextCreator
com.nomagic.magicdraw.uml.text.ModelTextCreator
Contains methods to create representation text for various model elements
-
Field Summary
FieldsFields inherited from class com.nomagic.magicdraw.uml.text.CoreTextCreator
NEW_LINE_SEPARATOR, TYPE_SEPARATOR, VALUE_SEPARATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidappendAssociationEnd(Property property, TextBuilder builder) static TextBuildercreateActivityEdgeText(ActivityEdge activityEdge, boolean showWeight, Supplier<TextBuilder> builderFactory) Creates string representation of the givenActivityEdge.static TextBuildercreateActivityParameterNodeText(ActivityParameterNode parameterNode, boolean showFullType, Supplier<TextBuilder> builderFactory) Creates string representation of the givenActivityParameterNode.static TextBuildercreateAssociationText(Association association, Supplier<TextBuilder> builderFactory) Creates string representation of the givenAssociation.static TextBuildercreateBehaviorText(Behavior behavior, BehaviorTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation of the givenBehavior.static TextBuildercreateCombinedFragmentOperatorText(CombinedFragment combinedFragment, Supplier<TextBuilder> builderFactory) Creates string representation of the givenCombinedFragment.static TextBuildercreateConstraintsText(Collection<Constraint> constraints, ConstraintTextParams textParams, String separator, Supplier<TextBuilder> builderFactory) Creates string representation for the given collection ofConstraintelements.static TextBuildercreateConstraintText(Constraint constraint, ConstraintTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation of the givenConstraint.static TextBuildercreateEnumerationLiteralText(EnumerationLiteral enumerationLiteral, MemberTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation of the givenEnumerationLiteral.static TextBuildercreateEventText(Event event, EventTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation of the givenEvent.static TextBuildercreateGuardText(Message message, Supplier<TextBuilder> builderFactory) Creates string representation of the provided message's guard.static TextBuildercreateInstanceSpecificationText(InstanceSpecification instance, InstanceSpecificationTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation of the givenInstanceSpecification.static TextBuildercreateInstanceSpecificationText(InstanceSpecification instance, InstanceSpecificationTextParams textParams, Supplier<TextBuilder> builderFactory, Predicate<Element> classifierFilter) Creates string representation of the givenInstanceSpecification.static TextBuildercreateInteractionUseText(CallBehaviorAction callBehaviorAction, Supplier<TextBuilder> builderFactory) Creates string representation of the givenCallBehaviorActionthat is displayed as InteractionUse.static TextBuildercreateInteractionUseText(InteractionUse interactionUse, InteractionUseTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation of the givenInteractionUse.static TextBuildercreateMessageText(Message message, MessageTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation of the givenMessage.static TextBuildercreateOperandGuardText(InteractionOperand interactionOperand, Supplier<TextBuilder> builderFactory) Creates string representation for the guard of the givenInteractionOperand.static TextBuildercreateOperationText(Operation operation, OperationTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation of the givenOperation.static TextBuildercreateParameterDirectionText(ParameterDirectionKind parameterDirection, com.nomagic.uml2.project.ElementProject project, ParameterDirectionTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation of the givenParameterDirectionKindstatic TextBuildercreateParametersText(Collection<Parameter> parameters, ParameterTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation for the given collection ofParameterelements, separated by commastatic TextBuildercreateParameterText(Parameter parameter, ParameterTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation of the givenParameter.static TextBuildercreatePinText(Pin pin, PinTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation of the givenPin.static TextBuildercreatePropertyText(Property property, PropertyTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation of the givenProperty.static TextBuildercreateProtocolTransitionText(ProtocolTransition transition, TransitionTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation of the givenProtocolTransition.static TextBuildercreateReceptionText(Reception reception, ReceptionTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation of the givenReception.static TextBuildercreateRelationshipFromToText(Element relationship, Element clientModelElement, String clientName, Element supplierModelElement, String supplierName, boolean addFullQualifiedName, Supplier<TextBuilder> builderFactory) Create relation representation text part to represent from what element to what element relation is connected.static TextBuildercreateSlotsText(Collection<Slot> slots, SlotTextParams textParams, String separator, Supplier<TextBuilder> builderFactory) Creates string representation of given slots collection (without braces).static TextBuildercreateSlotsTextWithBraces(Collection<Slot> slots, SlotTextParams textParams, String separator, Supplier<TextBuilder> builderFactory) Creates string representation of given slots collection, wrapped between '{' and '}'.static TextBuildercreateSlotText(Slot slot, SlotTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation of the given slot.static TextBuildercreateSlotText(Slot slot, SlotTextParams textParams, Supplier<TextBuilder> builderFactory, RepTextContext context) Creates string representation of the given slot.static TextBuildercreateStateText(State state, Supplier<TextBuilder> builderFactory) Creates string representation of the givenState.static TextBuildercreateTaggedValuesText(Collection<TaggedValue> taggedValues, TaggedValueTextParams textParams, String separator, Supplier<TextBuilder> builderFactory) Creates string representation of given taggedValues collection (without braces).static TextBuildercreateTaggedValuesTextWithBraces(Collection<TaggedValue> taggedValues, TaggedValueTextParams textParams, String separator, Supplier<TextBuilder> builderFactory) Creates string representation of given taggedValues collection, wrapped between '{' and '}'.static TextBuildercreateTaggedValueText(TaggedValue taggedValue, TaggedValueTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation of the given taggedValue.static TextBuildercreateTaggedValueText(TaggedValue taggedValue, TaggedValueTextParams textParams, Supplier<TextBuilder> builderFactory, RepTextContext context) Creates string representation of the given taggedValue.static TextBuildercreateTemplateBindingText(TemplateBinding templateBinding, boolean showTemplateParameterInfo, Supplier<TextBuilder> builderFactory) Creates string representation of the givenTemplateBinding.static TextBuildercreateTemplateParametersText(Collection<TemplateParameter> templateParameters, String separator, Supplier<TextBuilder> builderFactory) Creates string representation for the given collection ofTemplateParameterelements.static TextBuildercreateTemplateParameterSubstitutionText(TemplateParameterSubstitution parameterSubstitution, boolean showTemplateParameterInfo, Supplier<TextBuilder> builderFactory) Creates string representation of the givenTemplateParameterSubstitution.static TextBuildercreateTemplateParameterText(TemplateParameter templateParameter, Supplier<TextBuilder> builderFactory) Creates string representation of the givenTemplateParameter.static TextBuildercreateTransitionText(Transition transition, TransitionTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation of the given Transition.static TextBuildercreateTriggersText(Collection<?> triggers, TriggerTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation for the given collection ofTriggerelements, separated by comma.static TextBuildercreateTriggerText(Trigger trigger, TriggerTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation of the givenTrigger.static TextBuildercreateTypedElementText(TypedElement typedElement, TypedElementTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation of the givenTypedElement.Methods inherited from class com.nomagic.magicdraw.uml.text.CoreTextCreator
containsParentheses, createElementNumberText, createMultiplicityRangeText, createMultiplicityText, createMultiplicityText, createMultiplicityText, createMultiplicityText, createMultiplicityText, createMultiplicityText, createNamedElementListText, createStereotypesText, createStereotypesText, createStereotypeText, createStereotypeText, createStringCollectionText, createStyledTypeText, createStyledTypeTextWithSeparator, createTypeText, createTypeText, createValueSpecificationText, createValueSpecificationText, createVisibilityText, isUseStandardStereotypeChar, join, setUseStandardStereotypeChar
-
Field Details
-
ELEMENTS_PROPERTY_KEY
- See Also:
-
-
Constructor Details
-
ModelTextCreator
public ModelTextCreator()
-
-
Method Details
-
createActivityEdgeText
public static TextBuilder createActivityEdgeText(ActivityEdge activityEdge, boolean showWeight, Supplier<TextBuilder> builderFactory) Creates string representation of the givenActivityEdge.- Parameters:
activityEdge- element to create representation text forshowWeight- when true, weight information will be included to the textbuilderFactory- providesTextBuilderto append the created text to- Returns:
- builder with the activity edge's text appended
-
createConstraintsText
public static TextBuilder createConstraintsText(Collection<Constraint> constraints, ConstraintTextParams textParams, String separator, Supplier<TextBuilder> builderFactory) Creates string representation for the given collection ofConstraintelements.- Parameters:
constraints- collection of constraint elements to create representation text fortextParams- configuration that defines what to include in the text of the constraintseparator- symbol(s) to separate each constraint's text withbuilderFactory- providesTextBuilderto append the created text to- Returns:
- builder with the constraints' text appended
- See Also:
-
createConstraintText
public static TextBuilder createConstraintText(@CheckForNull Constraint constraint, ConstraintTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation of the givenConstraint.- Parameters:
constraint- element to create representation text fortextParams- configuration that defines what to include in the text of the constraintbuilderFactory- providesTextBuilderto append the created text to- Returns:
- builder with the constraint's text appended
-
createPinText
public static TextBuilder createPinText(Pin pin, PinTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation of the givenPin.- Parameters:
pin- element to create representation text fortextParams- configuration that defines what to include in the text of the pinbuilderFactory- providesTextBuilderto append the created text to- Returns:
- builder with the pin's text appended
-
createCombinedFragmentOperatorText
public static TextBuilder createCombinedFragmentOperatorText(CombinedFragment combinedFragment, Supplier<TextBuilder> builderFactory) Creates string representation of the givenCombinedFragment.- Parameters:
combinedFragment- element to create representation text forbuilderFactory- providesTextBuilderto append the created text to- Returns:
- builder with the combinedFragment's text appended
-
createOperandGuardText
public static TextBuilder createOperandGuardText(InteractionOperand interactionOperand, Supplier<TextBuilder> builderFactory) Creates string representation for the guard of the givenInteractionOperand.- Parameters:
interactionOperand- element to create representation text forbuilderFactory- providesTextBuilderto append the created text to- Returns:
- builder with the guard's text appended
-
createTransitionText
public static TextBuilder createTransitionText(Transition transition, TransitionTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation of the given Transition. Keep in mind that text is different for protocol transition.
Syntax ofTransition:trigger[guard]/effect.
Syntax ofProtocolTransition:[precondition]trigger/[postcondition].- Parameters:
transition- element to create representation text fortextParams- configuration that defines what to include in the text of the ?builderFactory- providesTextBuilderto append the created text to- Returns:
- builder with the transition's text appended
-
createProtocolTransitionText
public static TextBuilder createProtocolTransitionText(ProtocolTransition transition, TransitionTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation of the givenProtocolTransition. Syntax:[precondition]trigger/[postcondition].- Parameters:
transition- element to create representation text fortextParams- configuration that defines what to include in the text of the ?builderFactory- providesTextBuilderto append the created text to- Returns:
- builder with the transition's text appended
-
createTriggersText
public static TextBuilder createTriggersText(Collection<?> triggers, TriggerTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation for the given collection ofTriggerelements, separated by comma.- Parameters:
triggers- collection of trigger elements to create representation text fortextParams- configuration that defines what to include in the text of the triggerbuilderFactory- providesTextBuilderto append the created text to- Returns:
- builder with the trigger's text appended
- See Also:
-
createTriggerText
public static TextBuilder createTriggerText(Trigger trigger, TriggerTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation of the givenTrigger.- Parameters:
trigger- element to create representation text fortextParams- configuration that defines what to include in the text of the triggerbuilderFactory- providesTextBuilderto append the created text to- Returns:
- builder with the trigger's text appended
-
createEventText
public static TextBuilder createEventText(Event event, EventTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation of the givenEvent.- Parameters:
event- element to create representation text fortextParams- configuration that defines what to include in the text of the eventbuilderFactory- providesTextBuilderto append the created text to- Returns:
- builder with the event's text appended
-
createBehaviorText
public static TextBuilder createBehaviorText(Behavior behavior, BehaviorTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation of the givenBehavior.- Parameters:
behavior- element to create representation text fortextParams- configuration that defines what to include in the text of the behaviorbuilderFactory- providesTextBuilderto append the created text to- Returns:
- builder with the behavior's text appended
-
createInteractionUseText
public static TextBuilder createInteractionUseText(InteractionUse interactionUse, InteractionUseTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation of the givenInteractionUse.- Parameters:
interactionUse- element to create representation text fortextParams- configuration that defines what to include in the text of the interactionUsebuilderFactory- providesTextBuilderto append the created text to- Returns:
- builder with the interactionUse's text appended
-
createInteractionUseText
public static TextBuilder createInteractionUseText(CallBehaviorAction callBehaviorAction, Supplier<TextBuilder> builderFactory) Creates string representation of the givenCallBehaviorActionthat is displayed as InteractionUse.- Parameters:
callBehaviorAction- element to create representation text forbuilderFactory- providesTextBuilderto append the created text to- Returns:
- builder with the action's text appended
-
createMessageText
public static TextBuilder createMessageText(Message message, MessageTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation of the givenMessage.- Parameters:
message- element to create representation text fortextParams- configuration that defines what to include in the text of the messagebuilderFactory- providesTextBuilderto append the created text to- Returns:
- builder with the message's text appended
-
createAssociationText
public static TextBuilder createAssociationText(Association association, Supplier<TextBuilder> builderFactory) Creates string representation of the givenAssociation.- Parameters:
association- element to create representation text forbuilderFactory- providesTextBuilderto append the created text to- Returns:
- builder with the association's text appended
-
createStateText
Creates string representation of the givenState.- Parameters:
state- element to create representation text forbuilderFactory- providesTextBuilderto append the created text to- Returns:
- builder with the state's text appended
-
createParametersText
public static TextBuilder createParametersText(Collection<Parameter> parameters, ParameterTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation for the given collection ofParameterelements, separated by comma- Parameters:
parameters- collection of parameters to create representation text fortextParams- configuration that defines what to include in the text of each parameterbuilderFactory- providesTextBuilderto append the created text to- Returns:
- builder with the parameters' text appended
-
createParameterText
public static TextBuilder createParameterText(Parameter parameter, ParameterTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation of the givenParameter.- Parameters:
parameter- element to create representation text fortextParams- configuration that defines what to include in the text of the parameterbuilderFactory- providesTextBuilderto append the created text to- Returns:
- builder with the parameter's text appended
-
createParameterDirectionText
public static TextBuilder createParameterDirectionText(@CheckForNull ParameterDirectionKind parameterDirection, com.nomagic.uml2.project.ElementProject project, ParameterDirectionTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation of the givenParameterDirectionKind- Parameters:
parameterDirection- direction to create representation text forproject- project to which parameter belongstextParams- configuration that defines what to include in the text of the parameter directionbuilderFactory- providesTextBuilderto append the created text to- Returns:
- builder with the parameter direction text appended
-
createOperationText
public static TextBuilder createOperationText(Operation operation, OperationTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation of the givenOperation.- Parameters:
operation- element to create representation text fortextParams- configuration that defines what to include in the text of the operationbuilderFactory- providesTextBuilderto append the created text to- Returns:
- builder with the operation's text appended
-
createReceptionText
public static TextBuilder createReceptionText(Reception reception, ReceptionTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation of the givenReception.- Parameters:
reception- element to create representation text fortextParams- configuration that defines what to include in the text of the receptionbuilderFactory- providesTextBuilderto append the created text to- Returns:
- builder with the reception's text appended
-
createPropertyText
public static TextBuilder createPropertyText(Property property, PropertyTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation of the givenProperty.- Parameters:
property- element to create representation text fortextParams- configuration that defines what to include in the text of the propertybuilderFactory- providesTextBuilderto append the created text to- Returns:
- builder with the property's text appended
-
createActivityParameterNodeText
public static TextBuilder createActivityParameterNodeText(ActivityParameterNode parameterNode, boolean showFullType, Supplier<TextBuilder> builderFactory) Creates string representation of the givenActivityParameterNode.- Parameters:
parameterNode- element to create representation text forshowFullType- true if qualified name should be included in the text of node's typebuilderFactory- providesTextBuilderto append the created text to- Returns:
- builder with the node's text appended
-
createGuardText
Creates string representation of the provided message's guard.- Parameters:
message- element for which guard representation text has to be createdbuilderFactory- providesTextBuilderto append the created text to- Returns:
- builder with the guard's text appended
-
createEnumerationLiteralText
public static TextBuilder createEnumerationLiteralText(EnumerationLiteral enumerationLiteral, MemberTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation of the givenEnumerationLiteral.- Parameters:
enumerationLiteral- element to create representation text fortextParams- configuration that defines what to include in the text of the enumeration literalbuilderFactory- providesTextBuilderto append the created text to- Returns:
- builder with the enumeration literal's text appended
-
createTemplateParameterText
public static TextBuilder createTemplateParameterText(TemplateParameter templateParameter, Supplier<TextBuilder> builderFactory) Creates string representation of the givenTemplateParameter.- Parameters:
templateParameter- element to create representation text forbuilderFactory- providesTextBuilderto append the created text to- Returns:
- builder with the template parameter's text appended
-
createTemplateParametersText
public static TextBuilder createTemplateParametersText(Collection<TemplateParameter> templateParameters, String separator, Supplier<TextBuilder> builderFactory) Creates string representation for the given collection ofTemplateParameterelements.- Parameters:
templateParameters- collection of template parameter elements to create representation text forseparator- symbol(s) to separate each parameter's text withbuilderFactory- providesTextBuilderto append the created text to- Returns:
- builder with the parameters' text appended
- See Also:
-
createTemplateBindingText
public static TextBuilder createTemplateBindingText(TemplateBinding templateBinding, boolean showTemplateParameterInfo, Supplier<TextBuilder> builderFactory) Creates string representation of the givenTemplateBinding.- Parameters:
templateBinding- element to create representation text forshowTemplateParameterInfo- indicates if full template parameter notation should be used.builderFactory- providesTextBuilderto append the created text to- Returns:
- builder with the template binding's text appended
-
createTemplateParameterSubstitutionText
public static TextBuilder createTemplateParameterSubstitutionText(TemplateParameterSubstitution parameterSubstitution, boolean showTemplateParameterInfo, Supplier<TextBuilder> builderFactory) Creates string representation of the givenTemplateParameterSubstitution.- Parameters:
parameterSubstitution- element to create representation text forshowTemplateParameterInfo- indicates if full template parameter notation should be used.builderFactory- providesTextBuilderto append the created text to- Returns:
- builder with the parameter substitution's text appended
-
createInstanceSpecificationText
public static TextBuilder createInstanceSpecificationText(InstanceSpecification instance, InstanceSpecificationTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation of the givenInstanceSpecification.- Parameters:
instance- element to create representation text fortextParams- configuration that defines what to include in the text of the instancebuilderFactory- providesTextBuilderto append the created text to- Returns:
- builder with the instance's text appended
-
createInstanceSpecificationText
public static TextBuilder createInstanceSpecificationText(InstanceSpecification instance, InstanceSpecificationTextParams textParams, Supplier<TextBuilder> builderFactory, Predicate<Element> classifierFilter) Creates string representation of the givenInstanceSpecification.- Parameters:
instance- element to create representation text fortextParams- configuration that defines what to include in the text of the instancebuilderFactory- providesTextBuilderto append the created text toclassifierFilter- provides ability to filter classifiers.- Returns:
- builder with the instance's text appended
-
createRelationshipFromToText
public static TextBuilder createRelationshipFromToText(Element relationship, @CheckForNull Element clientModelElement, String clientName, @CheckForNull Element supplierModelElement, String supplierName, boolean addFullQualifiedName, Supplier<TextBuilder> builderFactory) Create relation representation text part to represent from what element to what element relation is connected. For example if we connect Connector to 2 properties a and b, that are Owned by class Class1. In Containment browser we would see "Connector[Class1::a - Class1::b]" so this method returns the part for the representation "[Class1::a - Class1::b]".- Parameters:
relationship- relationship for which we want the representation partclientModelElement- first (from) elementclientName- name or custom text of first (from) elementsupplierModelElement- second (to) elementsupplierName- name or custom text of second (to) elementaddFullQualifiedName- if true, full qualified name will be added to client and supplier namesbuilderFactory- providesTextBuilderto append the created text to- Returns:
- builder with the relation text appended
-
appendAssociationEnd
-
createTypedElementText
public static TextBuilder createTypedElementText(TypedElement typedElement, TypedElementTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation of the givenTypedElement.- Parameters:
typedElement- element to create representation text fortextParams- configuration that defines what to include in the text of the typed elementbuilderFactory- providesTextBuilderto append the created text to- Returns:
- builder with the typed element's text appended
-
createSlotsTextWithBraces
public static TextBuilder createSlotsTextWithBraces(Collection<Slot> slots, SlotTextParams textParams, String separator, Supplier<TextBuilder> builderFactory) Creates string representation of given slots collection, wrapped between '{' and '}'.- Parameters:
slots- collection of slotstextParams- configuration that defines what to include in the text of a slotseparator- symbol(s) to separate each slot's text withbuilderFactory- providesTextBuilderto append created text to- Returns:
- builder with the slots text appended
-
createSlotsText
public static TextBuilder createSlotsText(Collection<Slot> slots, SlotTextParams textParams, String separator, Supplier<TextBuilder> builderFactory) Creates string representation of given slots collection (without braces).- Parameters:
slots- collection of slotstextParams- configuration that defines what to include in the text of a slotseparator- symbol(s) to separate each slot's text withbuilderFactory- providesTextBuilderto append created text to- Returns:
- builder with the slots text appended
-
createSlotText
public static TextBuilder createSlotText(Slot slot, SlotTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation of the given slot.- Parameters:
slot- element to create representation text fortextParams- configuration that defines what to include in the text of a slotbuilderFactory- providesTextBuilderto append created text to- Returns:
- builder with the slot's text appended
-
createSlotText
public static TextBuilder createSlotText(Slot slot, SlotTextParams textParams, Supplier<TextBuilder> builderFactory, RepTextContext context) Creates string representation of the given slot.- Parameters:
slot- element to create representation text fortextParams- configuration that defines what to include in the text of a slotbuilderFactory- providesTextBuilderto append created text tocontext- representation text creator invoker- Returns:
- builder with the slot's text appended
-
createTaggedValuesText
public static TextBuilder createTaggedValuesText(Collection<TaggedValue> taggedValues, TaggedValueTextParams textParams, String separator, Supplier<TextBuilder> builderFactory) Creates string representation of given taggedValues collection (without braces).- Parameters:
taggedValues- collection of taggedValuestextParams- configuration that defines what to include in the text of a slotseparator- symbol(s) to separate each slot's text withbuilderFactory- providesTextBuilderto append created text to- Returns:
- builder with the taggedValues text appended
-
createTaggedValueText
public static TextBuilder createTaggedValueText(TaggedValue taggedValue, TaggedValueTextParams textParams, Supplier<TextBuilder> builderFactory) Creates string representation of the given taggedValue.- Parameters:
taggedValue- element to create representation text fortextParams- configuration that defines what to include in the text of a taggedValuebuilderFactory- providesTextBuilderto append created text to- Returns:
- builder with the taggedValue's text appended
-
createTaggedValueText
public static TextBuilder createTaggedValueText(TaggedValue taggedValue, TaggedValueTextParams textParams, Supplier<TextBuilder> builderFactory, RepTextContext context) Creates string representation of the given taggedValue.- Parameters:
taggedValue- element to create representation text fortextParams- configuration that defines what to include in the text of a taggedValuebuilderFactory- providesTextBuilderto append created text to- Returns:
- builder with the taggedValue's text appended
-
createTaggedValuesTextWithBraces
public static TextBuilder createTaggedValuesTextWithBraces(Collection<TaggedValue> taggedValues, TaggedValueTextParams textParams, String separator, Supplier<TextBuilder> builderFactory) Creates string representation of given taggedValues collection, wrapped between '{' and '}'.- Parameters:
taggedValues- collection of taggedValuestextParams- configuration that defines what to include in the text of a slotseparator- symbol(s) to separate each slot's text withbuilderFactory- providesTextBuilderto append created text to- Returns:
- builder with the taggedValues text appended
-