@OpenApiAll public class ModelTextCreator extends CoreTextCreator
NEW_LINE_SEPARATOR, TYPE_SEPARATOR, USE_STANDARD_STEREOTYPE_CHAR, VALUE_SEPARATOR| Constructor and Description |
|---|
ModelTextCreator() |
| Modifier and Type | Method and Description |
|---|---|
static TextBuilder |
createActivityEdgeText(ActivityEdge activityEdge,
boolean showWeight,
java.util.function.Supplier<TextBuilder> builderFactory)
Creates string representation of the given
ActivityEdge. |
static TextBuilder |
createActivityParameterNodeText(ActivityParameterNode parameterNode,
boolean showFullType,
java.util.function.Supplier<TextBuilder> builderFactory)
Creates string representation of the given
ActivityParameterNode. |
static TextBuilder |
createAssociationText(Association association,
java.util.function.Supplier<TextBuilder> builderFactory)
Creates string representation of the given
Association. |
static TextBuilder |
createBehaviorText(Behavior behavior,
BehaviorTextParams textParams,
java.util.function.Supplier<TextBuilder> builderFactory)
Creates string representation of the given
Behavior. |
static TextBuilder |
createCombinedFragmentOperatorText(CombinedFragment combinedFragment,
java.util.function.Supplier<TextBuilder> builderFactory)
Creates string representation of the given
CombinedFragment. |
static TextBuilder |
createConstraintsText(java.util.Collection<Constraint> constraints,
ConstraintTextParams textParams,
java.lang.String separator,
java.util.function.Supplier<TextBuilder> builderFactory)
Creates string representation for the given collection of
Constraint elements. |
static TextBuilder |
createConstraintText(Constraint constraint,
ConstraintTextParams textParams,
java.util.function.Supplier<TextBuilder> builderFactory)
Creates string representation of the given
Constraint. |
static TextBuilder |
createEnumerationLiteralText(EnumerationLiteral enumerationLiteral,
MemberTextParams textParams,
java.util.function.Supplier<TextBuilder> builderFactory)
Creates string representation of the given
EnumerationLiteral. |
static TextBuilder |
createEventText(Event event,
EventTextParams textParams,
java.util.function.Supplier<TextBuilder> builderFactory)
Creates string representation of the given
Event. |
static TextBuilder |
createGuardText(Message message,
java.util.function.Supplier<TextBuilder> builderFactory)
Creates string representation of the provided message's guard.
|
static TextBuilder |
createInstanceSpecificationText(InstanceSpecification instance,
com.nomagic.magicdraw.uml.text.InstanceSpecificationTextParams textParams,
java.util.function.Supplier<TextBuilder> builderFactory)
Creates string representation of the given
InstanceSpecification. |
static TextBuilder |
createInteractionUseText(CallBehaviorAction callBehaviorAction,
java.util.function.Supplier<TextBuilder> builderFactory)
Creates string representation of the given
CallBehaviorAction that is displayed as InteractionUse. |
static TextBuilder |
createInteractionUseText(InteractionUse interactionUse,
InteractionUseTextParams textParams,
java.util.function.Supplier<TextBuilder> builderFactory)
Creates string representation of the given
InteractionUse. |
static TextBuilder |
createMessageText(Message message,
MessageTextParams textParams,
java.util.function.Supplier<TextBuilder> builderFactory)
Creates string representation of the given
Message. |
static TextBuilder |
createOperandGuardText(InteractionOperand interactionOperand,
java.util.function.Supplier<TextBuilder> builderFactory)
Creates string representation for the guard of the given
InteractionOperand. |
static TextBuilder |
createOperationText(Operation operation,
OperationTextParams textParams,
java.util.function.Supplier<TextBuilder> builderFactory)
Creates string representation of the given
Operation. |
static TextBuilder |
createParameterDirectionText(ParameterDirectionKind parameterDirection,
Project project,
ParameterDirectionTextParams textParams,
java.util.function.Supplier<TextBuilder> builderFactory)
Creates string representation of the given
ParameterDirectionKind |
static TextBuilder |
createParametersText(java.util.Collection<Parameter> parameters,
com.nomagic.magicdraw.uml.text.ParameterTextParams textParams,
java.util.function.Supplier<TextBuilder> builderFactory)
Creates string representation for the given collection of
Parameter elements, separated by comma |
static TextBuilder |
createParameterText(Parameter parameter,
com.nomagic.magicdraw.uml.text.ParameterTextParams textParams,
java.util.function.Supplier<TextBuilder> builderFactory)
Creates string representation of the given
Parameter. |
static TextBuilder |
createPinText(Pin pin,
PinTextParams textParams,
java.util.function.Supplier<TextBuilder> builderFactory)
Creates string representation of the given
Pin. |
static TextBuilder |
createPropertyText(Property property,
PropertyTextParams textParams,
java.util.function.Supplier<TextBuilder> builderFactory)
Creates string representation of the given
Property. |
static TextBuilder |
createProtocolTransitionText(ProtocolTransition transition,
TransitionTextParams textParams,
java.util.function.Supplier<TextBuilder> builderFactory)
Creates string representation of the given
ProtocolTransition. |
static TextBuilder |
createReceptionText(Reception reception,
ReceptionTextParams textParams,
java.util.function.Supplier<TextBuilder> builderFactory)
Creates string representation of the given
Reception. |
static TextBuilder |
createRelationshipFromToText(Element relationship,
Element clientModelElement,
java.lang.String clientName,
Element supplierModelElement,
java.lang.String supplierName,
boolean addFullQualifiedName,
java.util.function.Supplier<TextBuilder> builderFactory)
Create relation representation text part to represent from what element to what element relation is connected.
|
static TextBuilder |
createSlotsText(java.util.Collection<Slot> slots,
SlotTextParams textParams,
java.lang.String separator,
java.util.function.Supplier<TextBuilder> builderFactory)
Creates string representation of given slots collection (without braces).
|
static TextBuilder |
createSlotsTextWithBraces(java.util.Collection<Slot> slots,
SlotTextParams textParams,
java.lang.String separator,
java.util.function.Supplier<TextBuilder> builderFactory)
Creates string representation of given slots collection, wrapped between '{' and '}'.
|
static TextBuilder |
createSlotText(Slot slot,
SlotTextParams textParams,
java.util.function.Supplier<TextBuilder> builderFactory)
Creates string representation of the given slot.
|
static TextBuilder |
createStateText(State state,
java.util.function.Supplier<TextBuilder> builderFactory)
Creates string representation of the given
State. |
static TextBuilder |
createTemplateBindingText(TemplateBinding templateBinding,
boolean showTemplateParameterInfo,
java.util.function.Supplier<TextBuilder> builderFactory)
Creates string representation of the given
TemplateBinding. |
static TextBuilder |
createTemplateParametersText(java.util.Collection<TemplateParameter> templateParameters,
java.lang.String separator,
java.util.function.Supplier<TextBuilder> builderFactory)
Creates string representation for the given collection of
TemplateParameter elements. |
static TextBuilder |
createTemplateParameterSubstitutionText(TemplateParameterSubstitution parameterSubstitution,
boolean showTemplateParameterInfo,
java.util.function.Supplier<TextBuilder> builderFactory)
Creates string representation of the given
TemplateParameterSubstitution. |
static TextBuilder |
createTemplateParameterText(TemplateParameter templateParameter,
java.util.function.Supplier<TextBuilder> builderFactory)
Creates string representation of the given
TemplateParameter. |
static TextBuilder |
createTransitionText(Transition transition,
TransitionTextParams textParams,
java.util.function.Supplier<TextBuilder> builderFactory)
Creates string representation of the given Transition.
|
static TextBuilder |
createTriggersText(java.util.Collection<?> triggers,
TriggerTextParams textParams,
java.util.function.Supplier<TextBuilder> builderFactory)
Creates string representation for the given collection of
Trigger elements, separated by comma. |
static TextBuilder |
createTriggerText(Trigger trigger,
TriggerTextParams textParams,
java.util.function.Supplier<TextBuilder> builderFactory)
Creates string representation of the given
Trigger. |
static TextBuilder |
createTypedElementText(TypedElement typedElement,
TypedElementTextParams textParams,
java.util.function.Supplier<TextBuilder> builderFactory)
Creates string representation of the given
TypedElement. |
containsParentheses, createElementNumberText, createMultiplicityRangeText, createMultiplicityText, createMultiplicityText, createMultiplicityText, createMultiplicityText, createMultiplicityText, createMultiplicityText, createNamedElementListText, createStereotypesText, createStereotypesText, createStereotypeText, createStereotypeText, createStringCollectionText, createStyledTypeText, createStyledTypeTextWithSeparator, createTypeText, createTypeText, createValueSpecificationText, createValueSpecificationText, createVisibilityText, joinpublic static TextBuilder createActivityEdgeText(ActivityEdge activityEdge, boolean showWeight, java.util.function.Supplier<TextBuilder> builderFactory)
ActivityEdge.activityEdge - element to create representation text forshowWeight - when true, weight information will be included to the textbuilderFactory - provides @{link com.nomagic.text.builders.TextBuilder} to append the created text topublic static TextBuilder createConstraintsText(java.util.Collection<Constraint> constraints, ConstraintTextParams textParams, java.lang.String separator, java.util.function.Supplier<TextBuilder> builderFactory)
Constraint elements.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 - provides @{link com.nomagic.text.builders.TextBuilder} to append the created text tocreateConstraintText(Constraint, ConstraintTextParams, Supplier)public static TextBuilder createConstraintText(@CheckForNull Constraint constraint, ConstraintTextParams textParams, java.util.function.Supplier<TextBuilder> builderFactory)
Constraint.constraint - element to create representation text fortextParams - configuration that defines what to include in the text of the constraintbuilderFactory - provides @{link com.nomagic.text.builders.TextBuilder} to append the created text topublic static TextBuilder createPinText(Pin pin, PinTextParams textParams, java.util.function.Supplier<TextBuilder> builderFactory)
Pin.pin - element to create representation text fortextParams - configuration that defines what to include in the text of the pinbuilderFactory - provides @{link com.nomagic.text.builders.TextBuilder} to append the created text topublic static TextBuilder createCombinedFragmentOperatorText(CombinedFragment combinedFragment, java.util.function.Supplier<TextBuilder> builderFactory)
CombinedFragment.combinedFragment - element to create representation text forbuilderFactory - provides @{link com.nomagic.text.builders.TextBuilder} to append the created text topublic static TextBuilder createOperandGuardText(InteractionOperand interactionOperand, java.util.function.Supplier<TextBuilder> builderFactory)
InteractionOperand.interactionOperand - element to create representation text forbuilderFactory - provides @{link com.nomagic.text.builders.TextBuilder} to append the created text topublic static TextBuilder createTransitionText(Transition transition, TransitionTextParams textParams, java.util.function.Supplier<TextBuilder> builderFactory)
Transition: trigger[guard]/effect.ProtocolTransition: [precondition]trigger/[postcondition].transition - element to create representation text fortextParams - configuration that defines what to include in the text of the ?builderFactory - provides @{link com.nomagic.text.builders.TextBuilder} to append the created text topublic static TextBuilder createProtocolTransitionText(ProtocolTransition transition, TransitionTextParams textParams, java.util.function.Supplier<TextBuilder> builderFactory)
ProtocolTransition.
Syntax: [precondition]trigger/[postcondition].transition - element to create representation text fortextParams - configuration that defines what to include in the text of the ?builderFactory - provides @{link com.nomagic.text.builders.TextBuilder} to append the created text topublic static TextBuilder createTriggersText(java.util.Collection<?> triggers, TriggerTextParams textParams, java.util.function.Supplier<TextBuilder> builderFactory)
Trigger elements, separated by comma.triggers - collection of trigger elements to create representation text fortextParams - configuration that defines what to include in the text of the triggerbuilderFactory - provides @{link com.nomagic.text.builders.TextBuilder} to append the created text tocreateTriggerText(Trigger, TriggerTextParams, Supplier)public static TextBuilder createTriggerText(Trigger trigger, TriggerTextParams textParams, java.util.function.Supplier<TextBuilder> builderFactory)
Trigger.trigger - element to create representation text fortextParams - configuration that defines what to include in the text of the triggerbuilderFactory - provides @{link com.nomagic.text.builders.TextBuilder} to append the created text topublic static TextBuilder createEventText(Event event, EventTextParams textParams, java.util.function.Supplier<TextBuilder> builderFactory)
Event.event - element to create representation text fortextParams - configuration that defines what to include in the text of the eventbuilderFactory - provides @{link com.nomagic.text.builders.TextBuilder} to append the created text topublic static TextBuilder createBehaviorText(Behavior behavior, BehaviorTextParams textParams, java.util.function.Supplier<TextBuilder> builderFactory)
Behavior.behavior - element to create representation text fortextParams - configuration that defines what to include in the text of the behaviorbuilderFactory - provides @{link com.nomagic.text.builders.TextBuilder} to append the created text topublic static TextBuilder createInteractionUseText(InteractionUse interactionUse, InteractionUseTextParams textParams, java.util.function.Supplier<TextBuilder> builderFactory)
InteractionUse.interactionUse - element to create representation text fortextParams - configuration that defines what to include in the text of the interactionUsebuilderFactory - provides @{link com.nomagic.text.builders.TextBuilder} to append the created text topublic static TextBuilder createInteractionUseText(CallBehaviorAction callBehaviorAction, java.util.function.Supplier<TextBuilder> builderFactory)
CallBehaviorAction that is displayed as InteractionUse.callBehaviorAction - element to create representation text forbuilderFactory - provides @{link com.nomagic.text.builders.TextBuilder} to append the created text topublic static TextBuilder createMessageText(Message message, MessageTextParams textParams, java.util.function.Supplier<TextBuilder> builderFactory)
Message.message - element to create representation text fortextParams - configuration that defines what to include in the text of the messagebuilderFactory - provides @{link com.nomagic.text.builders.TextBuilder} to append the created text topublic static TextBuilder createAssociationText(Association association, java.util.function.Supplier<TextBuilder> builderFactory)
Association.association - element to create representation text forbuilderFactory - provides @{link com.nomagic.text.builders.TextBuilder} to append the created text topublic static TextBuilder createStateText(State state, java.util.function.Supplier<TextBuilder> builderFactory)
State.state - element to create representation text forbuilderFactory - provides @{link com.nomagic.text.builders.TextBuilder} to append the created text topublic static TextBuilder createParametersText(java.util.Collection<Parameter> parameters, com.nomagic.magicdraw.uml.text.ParameterTextParams textParams, java.util.function.Supplier<TextBuilder> builderFactory)
Parameter elements, separated by commaparameters - collection of parameters to create representation text fortextParams - configuration that defines what to include in the text of each parameterbuilderFactory - provides @{link com.nomagic.text.builders.TextBuilder} to append the created text topublic static TextBuilder createParameterText(Parameter parameter, com.nomagic.magicdraw.uml.text.ParameterTextParams textParams, java.util.function.Supplier<TextBuilder> builderFactory)
Parameter.parameter - element to create representation text fortextParams - configuration that defines what to include in the text of the parameterbuilderFactory - provides @{link com.nomagic.text.builders.TextBuilder} to append the created text topublic static TextBuilder createParameterDirectionText(@CheckForNull ParameterDirectionKind parameterDirection, Project project, ParameterDirectionTextParams textParams, java.util.function.Supplier<TextBuilder> builderFactory)
ParameterDirectionKindparameterDirection - direction to create representation text forproject - project to which parameter belongstextParams - configuration that defines what to include in the text of the parameter directionbuilderFactory - provides @{link com.nomagic.text.builders.TextBuilder} to append the created text topublic static TextBuilder createOperationText(Operation operation, OperationTextParams textParams, java.util.function.Supplier<TextBuilder> builderFactory)
Operation.operation - element to create representation text fortextParams - configuration that defines what to include in the text of the operationbuilderFactory - provides @{link com.nomagic.text.builders.TextBuilder} to append the created text topublic static TextBuilder createReceptionText(Reception reception, ReceptionTextParams textParams, java.util.function.Supplier<TextBuilder> builderFactory)
Reception.reception - element to create representation text fortextParams - configuration that defines what to include in the text of the receptionbuilderFactory - provides @{link com.nomagic.text.builders.TextBuilder} to append the created text topublic static TextBuilder createPropertyText(Property property, PropertyTextParams textParams, java.util.function.Supplier<TextBuilder> builderFactory)
Property.property - element to create representation text fortextParams - configuration that defines what to include in the text of the propertybuilderFactory - provides @{link com.nomagic.text.builders.TextBuilder} to append the created text topublic static TextBuilder createActivityParameterNodeText(ActivityParameterNode parameterNode, boolean showFullType, java.util.function.Supplier<TextBuilder> builderFactory)
ActivityParameterNode.parameterNode - element to create representation text forshowFullType - true if qualified name should be included in the text of node's typebuilderFactory - provides @{link com.nomagic.text.builders.TextBuilder} to append the created text topublic static TextBuilder createGuardText(Message message, java.util.function.Supplier<TextBuilder> builderFactory)
message - element for which guard representation text has to be createdbuilderFactory - provides @{link com.nomagic.text.builders.TextBuilder} to append the created text topublic static TextBuilder createEnumerationLiteralText(EnumerationLiteral enumerationLiteral, MemberTextParams textParams, java.util.function.Supplier<TextBuilder> builderFactory)
EnumerationLiteral.enumerationLiteral - element to create representation text fortextParams - configuration that defines what to include in the text of the enumeration literalbuilderFactory - provides @{link com.nomagic.text.builders.TextBuilder} to append the created text topublic static TextBuilder createTemplateParameterText(TemplateParameter templateParameter, java.util.function.Supplier<TextBuilder> builderFactory)
TemplateParameter.templateParameter - element to create representation text forbuilderFactory - provides @{link com.nomagic.text.builders.TextBuilder} to append the created text topublic static TextBuilder createTemplateParametersText(java.util.Collection<TemplateParameter> templateParameters, java.lang.String separator, java.util.function.Supplier<TextBuilder> builderFactory)
TemplateParameter elements.templateParameters - collection of template parameter elements to create representation text forseparator - symbol(s) to separate each parameter's text withbuilderFactory - provides @{link com.nomagic.text.builders.TextBuilder} to append the created text tocreateTemplateParameterText(TemplateParameter, Supplier)public static TextBuilder createTemplateBindingText(TemplateBinding templateBinding, boolean showTemplateParameterInfo, java.util.function.Supplier<TextBuilder> builderFactory)
TemplateBinding.templateBinding - element to create representation text forshowTemplateParameterInfo - indicates if full template parameter notation should be used.builderFactory - provides @{link com.nomagic.text.builders.TextBuilder} to append the created text topublic static TextBuilder createTemplateParameterSubstitutionText(TemplateParameterSubstitution parameterSubstitution, boolean showTemplateParameterInfo, java.util.function.Supplier<TextBuilder> builderFactory)
TemplateParameterSubstitution.parameterSubstitution - element to create representation text forshowTemplateParameterInfo - indicates if full template parameter notation should be used.builderFactory - provides @{link com.nomagic.text.builders.TextBuilder} to append the created text topublic static TextBuilder createInstanceSpecificationText(InstanceSpecification instance, com.nomagic.magicdraw.uml.text.InstanceSpecificationTextParams textParams, java.util.function.Supplier<TextBuilder> builderFactory)
InstanceSpecification.instance - element to create representation text fortextParams - configuration that defines what to include in the text of the instancebuilderFactory - provides @{link com.nomagic.text.builders.TextBuilder} to append the created text topublic static TextBuilder createRelationshipFromToText(Element relationship, @CheckForNull Element clientModelElement, java.lang.String clientName, @CheckForNull Element supplierModelElement, java.lang.String supplierName, boolean addFullQualifiedName, java.util.function.Supplier<TextBuilder> builderFactory)
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 - provides @{link com.nomagic.text.builders.TextBuilder} to append the created text topublic static TextBuilder createTypedElementText(TypedElement typedElement, TypedElementTextParams textParams, java.util.function.Supplier<TextBuilder> builderFactory)
TypedElement.typedElement - element to create representation text fortextParams - configuration that defines what to include in the text of the typed elementbuilderFactory - provides @{link com.nomagic.text.builders.TextBuilder} to append the created text topublic static TextBuilder createSlotsTextWithBraces(java.util.Collection<Slot> slots, SlotTextParams textParams, java.lang.String separator, java.util.function.Supplier<TextBuilder> builderFactory)
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 - provides @{link com.nomagic.text.builders.TextBuilder} to append created text topublic static TextBuilder createSlotsText(java.util.Collection<Slot> slots, SlotTextParams textParams, java.lang.String separator, java.util.function.Supplier<TextBuilder> builderFactory)
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 - provides @{link com.nomagic.text.builders.TextBuilder} to append created text topublic static TextBuilder createSlotText(Slot slot, SlotTextParams textParams, java.util.function.Supplier<TextBuilder> builderFactory)
slot - element to create representation text fortextParams - configuration that defines what to include in the text of a slotbuilderFactory - provides @{link com.nomagic.text.builders.TextBuilder} to append created text to