@OpenApiAll public class RepresentationTextCreator extends InheritanceVisitor
| Modifier and Type | Class and Description |
|---|---|
static interface |
RepresentationTextCreator.RepresentationTextProvider
Deprecated.
use RepresentationTextProvider2
|
static interface |
RepresentationTextCreator.RepresentationTextProvider2
Representation text provider extension point.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COLOR_POSTFIX |
static java.lang.String |
COLOR_PREFIX |
static char |
CONJUGATED_SYMBOL |
static java.lang.String |
DEFAULT_VALUE_SEPARATOR |
static java.lang.String |
EMPTY_NAME_NOTATION |
static java.lang.String |
FONT_COLOR_END |
static java.lang.String |
FONT_COLOR_PREFIX |
static java.lang.String |
GRAY_COLOR_STRING |
static java.lang.String |
INHERITED_SIGN |
static java.lang.String |
LEFT_SIGN |
static int |
MAX_TEXT_LENGTH |
static char |
MODULE_VERSION_SEPARATOR |
static java.lang.String |
NEUTRAL_SIGN |
static java.lang.String |
RIGHT_SIGN |
static java.lang.String |
TYPE_SEPARATOR |
| Constructor and Description |
|---|
RepresentationTextCreator() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addProvider(RepresentationTextCreator.RepresentationTextProvider provider)
Registers a new representation text provider.
|
static void |
addProvider(RepresentationTextCreator.RepresentationTextProvider2 provider)
Registers a new representation text provider.
|
static void |
addSpaceAfterUnitBeforeNextValue(java.util.List<ValueSpecification> valueSpecifications,
java.lang.StringBuilder stringBuilder)
Unit symbol is separated from other values if needed by space
|
static void |
appendColor(java.lang.StringBuffer text,
java.awt.Color color)
Set given color to given text.
|
static java.lang.String |
appendColor(java.lang.String text,
java.awt.Color color)
Set given color to given text.
|
static java.lang.String |
appendGrayColor(java.lang.String text)
Set Gray color to given text.
|
static void |
appendGrayColor(java.lang.StringBuffer text)
Set Gray color to given text.
|
static java.lang.String |
appendLockInfo(BaseElement element,
java.lang.String text,
boolean addColorInformation)
Add check out information.
|
static java.lang.String |
appendLockInfo(BaseElement baseElement,
java.lang.String text,
boolean addColorInformation,
boolean addBrackets)
Add check out information.
|
protected void |
cleanResult()
Clears created representation result.
|
static java.lang.String |
constructActivityEdgeText(ActivityEdge activityEdge,
boolean showWeight)
Construct activity edge text
|
static java.lang.String |
constructCombinedFragmentOperatorText(CombinedFragment combinedFragment) |
static java.lang.String |
constructGeneralizationSetText(GeneralizationSet set,
boolean showPowerType) |
static java.lang.String |
constructModuleText(Element element) |
static java.lang.String |
createActivityParameterNodeText(ActivityParameterNode parameter,
boolean showFullType,
boolean addColorInformation)
Creates text which represents activity parameter node.
|
static java.lang.String |
createAssociationText(Association association)
Create Association text.
|
static java.lang.String |
createBehaviorText(Behavior behavior)
Creates behavior text.
|
static java.lang.String |
createBehaviorText(Behavior behavior,
boolean showStereotype,
boolean showProperties,
boolean showInheritedSign,
boolean showSignature,
boolean showFullType,
boolean showConstraintName,
boolean showConstraintExpression,
boolean addColorInformation,
boolean showParameterDirectionKind) |
static java.lang.String |
createBehaviorText(Behavior behavior,
boolean showStereotype,
boolean showProperties,
boolean showInheritedSign,
boolean showSignature,
boolean showFullType,
boolean showConstraintName,
boolean showConstraintExpression,
boolean addColorInformation,
boolean showParameterDirectionKind,
boolean showOpaqueBehaviorBody)
Deprecated.
|
static java.lang.String |
createBehaviorText(Behavior behavior,
boolean showStereotype,
boolean showProperties,
boolean showTaggedValues,
boolean showInheritedSign,
boolean showSignature,
boolean showFullType,
boolean showConstraintName,
boolean showConstraintExpression,
boolean addColorInformation,
boolean showParameterDirectionKind,
boolean showOpaqueBehaviorBody)
Creates behavior text.
|
static java.lang.String |
createClassifierName(Classifier cl,
boolean showFullType,
boolean addColorInformation)
Creates string: classifier name.
|
static java.lang.String |
createClassifiersRepresentation(java.util.Collection classifiers,
boolean showFullType,
boolean addColorInformation)
Returns representation of given classifiers collection
|
static java.lang.String |
createConstraintsText(java.util.Collection<Constraint> constraints,
java.lang.String separator,
boolean useName,
boolean useExpression,
boolean addBrackets)
Build a representation string from given collection of constraints.
|
static java.lang.String |
createConstraintsText(Constraint constraint,
boolean useName,
boolean useExpression,
boolean addBrackets)
Create constraint text.
|
static java.lang.String |
createConstraintsText(ValueSpecification valueSpecification,
boolean addBrackets)
Add constraint text.
|
static java.lang.String |
createConveyedInformationText(java.util.List<Classifier> information,
boolean showAutoIDNumber) |
static java.lang.String |
createDefaultRepresentationText(BaseElement element,
boolean addColor,
boolean fullSignature) |
static java.lang.String |
createDefaultRepresentationText(BaseElement element,
boolean addColor,
boolean fullSignature,
boolean showAutoId)
Gets default (not extended) representation text.
|
static java.lang.String |
createDefaultRepresentationText(BaseElement element,
boolean addColor,
boolean fullSignature,
boolean showAutoId,
LocationInTool locationInTool)
Gets default (not extended) representation text.
|
static java.lang.String |
createElementNameText(Element o)
Creates from element name if available.
|
static java.lang.String |
createEnumerationLiteralText(EnumerationLiteral enumLiteral,
boolean showStereotype,
boolean showProperties,
boolean showConstraintName,
boolean showConstraintExpression)
Deprecated.
|
static java.lang.String |
createEnumerationLiteralText(EnumerationLiteral enumLiteral,
boolean showStereotype,
boolean showProperties,
boolean showConstraintName,
boolean showConstraintExpression,
boolean showInheritedSign)
Deprecated.
|
static java.lang.String |
createEnumerationLiteralText(EnumerationLiteral enumLiteral,
boolean showStereotype,
boolean showProperties,
boolean showTaggedValues,
boolean showConstraintName,
boolean showConstraintExpression,
boolean showInheritedSign) |
static java.lang.String |
createEnumerationLiteralText(EnumerationLiteral enumLiteral,
boolean showStereotype,
boolean showProperties,
boolean showTaggedValues,
boolean showConstraintName,
boolean showConstraintExpression,
boolean showInheritedSign,
boolean addColorInformation)
Constructs enumeration literal text.
|
static java.lang.String |
createEventText(Event event)
Creates textual representation of event.
|
static java.lang.String |
createEventText(Event event,
boolean showOperationsSignature,
boolean useAdvancedColoring) |
static java.lang.String |
createGuardText(Message msg)
Creates Message guard text.
|
static java.lang.String |
createId(Element e,
boolean addColor)
Create the id (number) to be prepended to the text representation of the element
|
static java.lang.String |
createInstanceSpecificationText(InstanceSpecification instance,
boolean showClassifier,
boolean showFullType,
boolean addColorInformation)
Create representation text for instance
|
static java.lang.String |
createInstanceSpecificationText(InstanceSpecification instance,
boolean showClassifier,
boolean showFullType,
boolean addColorInformation,
boolean showAutoID) |
static java.lang.String |
createInteractionUseText(CallBehaviorAction interactionUse)
Create InteractionUse text from representative CallBehaviorAction.
|
static java.lang.String |
createInteractionUseText(InteractionUse interactionUse,
boolean addReferTo,
boolean addArguments)
Create InteractionUse text.
|
static java.lang.String |
createMultiplicityRangeText(java.lang.Integer range)
Creates multiplicity range text.
|
static java.lang.String |
createMultiplicityText(java.lang.Integer lower,
java.lang.Integer upper)
Creates multiplicity text.
|
static java.lang.String |
createMultiplicityText(MultiplicityElement multiplicity,
boolean showOrder,
boolean showUnique,
boolean addBrackets)
Returns text representation of given multiplicity.
|
static java.lang.String |
createMultiplicityText(java.lang.String lower,
java.lang.String upper,
boolean ordered,
boolean unique,
boolean addBrackets)
Returns text representation of given multiplicity.
|
static java.lang.String |
createMultiplicityText(java.lang.String lower,
java.lang.String upper,
ValueSpecification lowerValue,
boolean unique,
boolean ordered,
boolean addBrackets) |
static java.lang.String |
createNamedElementListText(java.util.List<? extends NamedElement> elements)
Creates representation text for a list of named elements.
|
static java.lang.String |
createOperationText(Operation operation,
boolean showSignature,
boolean showVisibility,
boolean showFullType,
boolean showStereotype,
boolean showProperties,
boolean showConstraintName,
boolean showConstraintExpression,
boolean showParameterDirection,
boolean addColorInformation,
boolean showTemplateParameters)
Constructs representation operation text.
|
static java.lang.String |
createOperationText(Operation operation,
boolean showSignature,
boolean showVisibility,
boolean showFullType,
boolean showStereotype,
boolean showProperties,
boolean showConstraintName,
boolean showConstraintExpression,
boolean showParameterDirection,
boolean addColorInformation,
boolean showTemplateParameters,
boolean showParameterDefaultValue)
Constructs representation operation text.
|
static java.lang.String |
createOperationText(Operation operation,
boolean showSignature,
boolean showVisibility,
boolean showFullType,
boolean showStereotype,
boolean showProperties,
boolean showConstraintName,
boolean showConstraintExpression,
boolean showParameterDirection,
boolean addColorInformation,
boolean showTemplateParameters,
boolean showParameterDefaultValue,
boolean showInheritedSign)
Deprecated.
use any one of the other createOperationText methods.
|
static java.lang.String |
createOperationText(Operation operation,
boolean showSignature,
boolean showVisibility,
boolean showFullType,
boolean showStereotype,
boolean showProperties,
boolean showTaggedValues,
boolean showConstraintName,
boolean showConstraintExpression,
boolean showParameterDirection,
boolean addColorInformation,
boolean showTemplateParameters,
boolean showParameterDefaultValue,
boolean showInheritedSign)
Constructs representation operation text.
|
static java.lang.String |
createParameterDirectionText(Project project,
java.lang.Class<? extends Parameter> parameterMetaType,
ParameterDirectionKind parameterDirection,
boolean skipDefaultValue,
boolean showReturnDirection,
boolean addColorInformation)
Creates a text for parameter direction
|
static java.lang.String |
createParametersText(java.util.Collection parameters,
boolean showSignature,
boolean showFullType,
boolean showParameterDirection,
boolean addColorInformation)
Create parameter text.
|
static java.lang.String |
createParametersText(java.util.Collection parameters,
boolean showSignature,
boolean showFullType,
boolean showParameterDirection,
boolean addColorInformation,
boolean showParameterDefaultValue)
Create parameter text.
|
static java.lang.String |
createParameterText(Parameter parameter,
boolean showFullType,
boolean showParameterDirection,
boolean addColorInformation)
Creates text which represents parameter.
|
static java.lang.String |
createParameterText(Parameter parameter,
boolean showFullType,
boolean showParameterDirection,
boolean addColorInformation,
boolean showDefaultValue)
Creates text which represents parameter.
|
static java.lang.String |
createParameterText(Parameter parameter,
boolean showFullType,
boolean showParameterDirection,
boolean addColorInformation,
boolean showDefaultValue,
boolean skipDefaultDirection,
boolean showReturnDirection)
Creates text which represents parameter.
|
static java.lang.String |
createPinText(Pin pin,
boolean showName,
boolean showType,
boolean showMultiplicity,
boolean showFullType,
boolean addColor,
boolean showSynchronizationInfo) |
static java.lang.String |
createPortText(Port port,
boolean showName,
boolean showType,
boolean showMultiplicity,
boolean showFullType,
boolean addColor) |
static java.lang.String |
createPortText(Port port,
boolean showName,
boolean showType,
boolean showMultiplicity,
boolean showFullType,
boolean showInheritedSign,
boolean addColor) |
static java.lang.String |
createPortText(Port port,
boolean showName,
boolean showType,
boolean showMultiplicity,
boolean showFullType,
boolean showTaggedValues,
boolean showInheritedSign,
boolean addColor) |
static void |
createPropertyPropertyStringText(Property property,
java.lang.StringBuffer text) |
static void |
createPropertyPropertyStringText(Property property,
java.lang.StringBuffer text,
java.lang.String separator) |
static java.lang.String |
createPropertyText(Property property,
boolean showName,
boolean showType,
boolean showVisibility,
boolean showFullType,
boolean showInitValue,
boolean showStereotype,
boolean showProperties,
boolean showConstraints,
boolean showMultiplicity,
boolean addColorInformation)
Deprecated.
|
static java.lang.String |
createPropertyText(Property property,
boolean showName,
boolean showType,
boolean showVisibility,
boolean showFullType,
boolean showInitValue,
boolean showStereotype,
boolean showProperties,
boolean showTypeTaggedValues,
boolean showConstraintName,
boolean showConstraintExpression,
boolean showMultiplicity,
boolean addColorInformation)
Deprecated.
|
static java.lang.String |
createPropertyText(Property property,
boolean showName,
boolean showType,
boolean showDerived,
boolean showVisibility,
boolean showFullType,
boolean showInitValue,
boolean showStereotype,
boolean showProperties,
boolean showTypeTaggedValues,
boolean showConstraintName,
boolean showConstraintExpression,
boolean showMultiplicity,
boolean addColorInformation)
Deprecated.
|
static java.lang.String |
createPropertyText(Property property,
boolean showName,
boolean showType,
boolean showDerived,
boolean showVisibility,
boolean showFullType,
boolean showInitValue,
boolean showStereotype,
boolean showProperties,
boolean showTypeTaggedValues,
boolean showConstraintName,
boolean showConstraintExpression,
boolean showMultiplicity,
boolean showInheritedSign,
boolean addColorInformation)
Deprecated.
|
static java.lang.String |
createPropertyText(Property property,
boolean showName,
boolean showType,
boolean showDerived,
boolean showVisibility,
boolean showFullType,
boolean showInitValue,
boolean showStereotype,
boolean showProperties,
boolean showTaggedValues,
boolean showTypeTaggedValues,
boolean showConstraintName,
boolean showConstraintExpression,
boolean showMultiplicity,
boolean showInheritedSign,
boolean addColorInformation)
Deprecated.
|
static java.lang.String |
createPropertyText(PropertyTextParameter propertyTextParameter)
Constructs attribute view text.
|
static java.lang.String |
createProtocolTransitionText(ProtocolTransition transition) |
static java.lang.String |
createProtocolTransitionText(ProtocolTransition transition,
boolean showPort) |
static java.lang.String |
createProtocolTransitionText(ProtocolTransition transition,
boolean showPort,
boolean showOperationsSignature,
boolean useAdvancedColoring)
Constructs text representation of given protocol.
|
static java.lang.String |
createPureSlotsString(java.util.Collection<Slot> cs,
java.lang.String separator,
boolean showHTML,
boolean showEmptyValue)
Returns string representation of given slots collection.
|
static java.lang.String |
createReceptionText(Reception reception,
boolean showSignature,
boolean showVisibility,
boolean showFullType,
boolean showStereotype,
boolean showProperties,
boolean showConstraintName,
boolean showConstraintExpression,
boolean showParameterDirection,
boolean addColorInformation)
Constructs representation reception text.
|
static java.lang.String |
createReceptionText(Reception reception,
boolean showSignature,
boolean showVisibility,
boolean showFullType,
boolean showStereotype,
boolean showProperties,
boolean showConstraintName,
boolean showConstraintExpression,
boolean showParameterDirection,
boolean showInheritedSign,
boolean addColorInformation)
Deprecated.
|
static java.lang.String |
createReceptionText(Reception reception,
boolean showSignature,
boolean showVisibility,
boolean showFullType,
boolean showStereotype,
boolean showProperties,
boolean showTaggedValues,
boolean showConstraintName,
boolean showConstraintExpression,
boolean showParameterDirection,
boolean showInheritedSign,
boolean addColorInformation)
Constructs representation reception text.
|
static java.util.Comparator<BaseElement> |
createRepresentationTextComparator(boolean addColor,
boolean showAutoId)
Creates a comparator for comparing BaseElements by representation text
|
static java.lang.String |
createRoleText(Property property,
char endName)
Creates role text.
|
static java.lang.String |
createRoleText(Property property,
char endName,
int compressTypeNumber)
Creates role text.
|
static java.lang.String |
createSlotsText(java.util.Collection<Slot> cs,
java.lang.String separator,
boolean showHTML,
boolean showEmptyValue)
Returns string representation of given slots collection.
|
static java.lang.String |
createSlotText(Slot slot,
boolean showName,
boolean ignoreTrueValues,
boolean showHTML,
boolean showFeatureType,
boolean showFullType,
boolean addColorInformation,
boolean showEmptyValue,
boolean showQualifiedName)
Returns string representation of given tag definition.
|
static java.lang.String |
createSlotText(Slot slot,
boolean showName,
boolean ignoreTrueValues,
boolean showHTML,
boolean showFeatureType,
boolean showFullType,
boolean showFeatureTypeTaggedValues,
boolean addColorInformation,
boolean showEmptyValue,
boolean showQualifiedName)
Returns string representation of given tag definition.
|
static java.lang.String |
createSlotText(Slot slot,
boolean showName,
boolean ignoreTrueValues,
boolean showHTML,
boolean showFeatureType,
boolean showFullType,
boolean showFeatureTypeTaggedValues,
boolean addColorInformation,
boolean showEmptyValue,
boolean showQualifiedName,
boolean showDerived)
Returns string representation of given tag definition.
|
static java.lang.String |
createSlotText(Slot slot,
boolean showName,
boolean ignoreTrueValues,
boolean showHTML,
boolean showFeatureType,
boolean showFullType,
boolean showFeatureTypeTaggedValues,
boolean addColorInformation,
boolean showEmptyValue,
boolean showQualifiedName,
boolean showDerived,
boolean forEditing,
boolean colorUnitSymbols,
boolean colorTag)
Returns string representation of given tag definition.
|
static java.lang.String |
createStateText(State state)
Creates state name text.
|
static java.lang.String |
createStereotypesText(java.util.Collection<Stereotype> stereotypes,
char separator)
Returns string representation of given.
|
static java.lang.String |
createStereotypesText(java.util.Collection<Stereotype> stereotypes,
char separator,
boolean skipDSL,
boolean useAlias)
Returns string representation of given.
|
static java.lang.String |
createStereotypesText(Element element,
char separator)
Create the representation text of element be assigned stereotype.
|
static java.lang.String |
createStereotypesText(Element element,
char separator,
boolean skipDSL,
boolean useAlias)
Create the representation text of element be assigned stereotype.
|
static java.lang.String |
createStereotypeText(Stereotype stereotype) |
static java.lang.String |
createStereotypeText(Stereotype stereotype,
boolean useAlias) |
static java.lang.String |
createStereotypeText(java.lang.String stereotypeName) |
static java.lang.String |
createTemplateBindingText(TemplateBinding binding)
Constructs given binding element text.
|
static java.lang.String |
createTemplateBindingText(TemplateBinding binding,
boolean attachTemplateParameterInfo)
Constructs given binding element text.
|
static java.lang.String |
createTemplateParametersText(java.util.Collection templateParameters,
java.lang.String separator)
Create the Template Parameters Text.
|
static java.lang.String |
createTemplateParameterSubstitutionText(TemplateParameterSubstitution parameterSubstitution,
boolean attachTemplateParameterInfo)
Create TemplateParameterSubstitution Text.
|
static java.lang.String |
createTemplateParameterText(TemplateParameter tParameter)
Creates TemplateParameter text.
|
static java.lang.String |
createTransitionText(Transition transition,
boolean showEffect) |
static java.lang.String |
createTransitionText(Transition transition,
boolean showEffect,
boolean showPort,
boolean showOpaqueBehaviorBody) |
static java.lang.String |
createTransitionText(Transition transition,
boolean showEffect,
boolean showPort,
boolean showOpaqueBehaviorBody,
boolean showOperationsSignature,
boolean useAdvancedColoring)
Constructs text representation of given transition object.
|
static java.lang.String |
createTriggersText(java.util.Collection triggers) |
static java.lang.String |
createTriggersText(java.util.Collection triggers,
boolean showPort)
Create Triggers text.
|
static java.lang.String |
createTriggersText(java.util.Collection triggers,
boolean showPort,
boolean showOperationsSignature,
boolean useAdvancedColoring)
Create Triggers text.
|
static java.lang.String |
createTriggerText(Trigger trigger) |
static java.lang.String |
createTriggerText(Trigger trigger,
boolean showPort) |
static java.lang.String |
createTriggerText(Trigger trigger,
boolean showPort,
boolean showOperationsSignature,
boolean useAdvancedColoring) |
static java.lang.String |
createTypedElementText(TypedElement typedElement,
boolean showName,
boolean showType,
boolean showMultiplicity,
boolean showFullType,
boolean addColor) |
static java.lang.String |
createTypeName(Type cl,
boolean showFullType,
boolean addColorInformation)
Creates string: classifier name.
|
static java.lang.String |
createValueSpecificationText(ValueSpecification specification)
Create ValueSpecification text.
|
static char |
createVisibilityText(VisibilityKind visibility)
Returns visibility representation(+, # or -)
|
static java.lang.String |
endColorHtmlTag(java.lang.String text)
Return appended colour html end tag to given text.
|
static void |
endColorHtmlTag(java.lang.StringBuilder text) |
static java.lang.String |
getAbsoluteUMLPathToRoot(Element element)
Method returns string representing path from root package to
this object data.
|
static boolean |
getFullName(Element element,
java.lang.StringBuffer path,
java.lang.String separator,
boolean checkTopStereotype)
Get NameElement full name.
|
static boolean |
getFullName(Element element,
java.lang.StringBuffer path,
java.lang.String separator,
boolean checkTopStereotype,
boolean checkTopModelElement)
Get NameElement full name.
|
static java.lang.String |
getFullUMLName(Element element)
Method returns full UML name for object.
|
static java.lang.String |
getFullUMLName(Element element,
boolean doNotAddTopLevels)
Get Full UML Name.
|
static RepresentationTextCreator |
getInstance() |
LocationInTool |
getLocationInTool() |
static java.lang.String |
getModelElementNameWithParentPath(NamedElement namedElement,
boolean addColor)
Get Model element name with parent path.
|
static java.lang.String |
getModelElementParentPath(Element modelElement,
boolean addBrackets)
Get Model Element with parent path.
|
static java.lang.String |
getPathToRoot(Element element)
Get Path of given element to root of element.
|
static java.lang.String |
getPathToRoot(Element element,
boolean checkTop)
Get path to root.
|
static java.lang.String |
getPathToRoot(Element data,
boolean relativeToLibrary,
boolean compactMode)
Calculates qualified name to display in the shape header.
|
static java.lang.String |
getPathToRoot(Element data,
boolean relativeToLibrary,
boolean relativeToModel,
boolean compactMode)
Calculates qualified name to display in the shape header.
|
static java.lang.String |
getPathToRoot(Element element,
boolean toModelLibrary,
boolean toModel,
java.lang.String separator)
Get path to root.
|
static java.lang.String |
getPathToRoot(Element element,
boolean checkTop,
java.lang.String separator)
Get path to root.
|
static RepresentationTextCreator.RepresentationTextProvider2 |
getProvider2For(BaseElement element)
Looks for a provider for a given element.
|
static RepresentationTextCreator.RepresentationTextProvider |
getProviderFor(BaseElement element)
Looks for a provider for a given element.
|
static java.lang.String |
getPureTextFromColoredText(java.lang.String coloredText) |
java.lang.String |
getRelationshipFromToPart(Element relationship,
Element clientModelElement,
Element supplierModelElement) |
java.lang.String |
getRelationshipFromToPart(Relationship o) |
static java.lang.String |
getRelationshipFromToRepresentation(Element relationship,
Element clientModelElement,
java.lang.String clientName,
Element supplierModelElement,
java.lang.String supplierName,
boolean showFullType,
boolean addColor)
Returns relation representation part to represent from what element to what element relation is connected.
|
static java.lang.String |
getRepresentedText(BaseElement el)
Returns representation text for any Element
|
static java.lang.String |
getRepresentedText(BaseElement el,
boolean addColor) |
static java.lang.String |
getRepresentedText(BaseElement el,
boolean addColor,
boolean showAutoId)
Returns representation text for any Element
|
static java.lang.String |
getRepresentedText(BaseElement el,
boolean addColor,
boolean showAutoId,
boolean fullSignature)
Returns representation text for any Element
|
static java.lang.String |
getRepresentedText(BaseElement el,
boolean addColor,
boolean showAutoId,
boolean fullSignature,
boolean noCache)
Returns representation text for any Element
|
static java.lang.String |
getRepresentedText(BaseElement el,
boolean addColor,
boolean showAutoId,
boolean fullSignature,
LocationInTool locationInTool,
boolean noCache)
Returns representation text for any Element
|
protected java.lang.String |
getResult()
Returns created representation result
|
static java.lang.String |
getTemplateParameterTypeAsString(TemplateParameter tParameter)
Get String representation of given TemplateParameter Type.
|
static void |
invalidateRepresentationCache(Project project) |
boolean |
isAddColor()
Test is add color.
|
boolean |
isCreateBoundElementName() |
boolean |
isShowFullType() |
static boolean |
isUseStandardStereotypeKeywordChar() |
static java.lang.String |
putInQuotes(java.lang.String text) |
static void |
removeProvider(RepresentationTextCreator.RepresentationTextProvider provider)
Registers a new representation text provider.
|
static void |
removeProvider(RepresentationTextCreator.RepresentationTextProvider2 provider)
Registers a new representation text provider.
|
static java.lang.String |
removeQuotationMarksFromSlotText(java.lang.String slotText)
Removes quotation marks from given slot representation.
|
void |
resetAutoIdRepresentations(Project project)
clear the cache for all elements that are part of the given project
and are 'numberable'
|
void |
resetCache(BaseElement element)
Reset all cached information about given element
|
void |
resetCache(java.util.Collection<? extends BaseElement> elements)
Reset all cached information about given elements
|
static java.lang.String |
resetColor(java.lang.String text)
Reset text color.
|
static void |
resetColor(java.lang.StringBuffer text)
Reset text color.
|
void |
setAddColor(boolean addColor)
Set new add color value.
|
void |
setCreateBoundElementName(boolean createBoundElementName) |
void |
setLocationInTool(LocationInTool locationInTool) |
void |
setShowFullType(boolean value)
Set show full type.
|
static void |
setUseStandardStereotypeKeywordChar(boolean useStandard)
Forces to use standard stereotype keyword char or a double <>>
|
static void |
startColorHtmlTag(java.lang.StringBuilder text,
java.awt.Color color) |
static java.lang.String |
startColorHtmlTag(java.lang.String text,
java.awt.Color color)
Returns appended colour html start tag to given text.
|
void |
visitAcceptEventAction(AcceptEventAction element,
VisitorContext context)
Visitor method for
AcceptEventAction. |
void |
visitActivityEdge(ActivityEdge o,
VisitorContext context)
Visitor method for
ActivityEdge. |
void |
visitActivityParameterNode(ActivityParameterNode activityParameterNode,
VisitorContext visitorContext)
Visitor method for
ActivityParameterNode. |
void |
visitActivityPartition(ActivityPartition activityPartition,
VisitorContext visitorContext)
Visitor method for
ActivityPartition. |
void |
visitAssociationClass(AssociationClass element,
VisitorContext context)
Visitor method for
AssociationClass. |
void |
visitBaseElement(BaseElement o)
Method visits given object.
|
void |
visitBehavior(Behavior element,
VisitorContext cnt)
Visitor method for
Behavior. |
void |
visitBehavioredClassifier(BehavioredClassifier element,
VisitorContext context)
Visitor method for
BehavioredClassifier. |
void |
visitCallBehaviorAction(CallBehaviorAction callBehaviorAction,
VisitorContext visitorContext)
Visitor method for
CallBehaviorAction. |
void |
visitCallOperationAction(CallOperationAction callOperationAction,
VisitorContext visitorContext)
Visitor method for
CallOperationAction. |
void |
visitClass(Class aClass,
VisitorContext visitorContext)
Visitor method for
Class. |
void |
visitCollaborationUse(CollaborationUse element,
VisitorContext context)
Visitor method for
CollaborationUse. |
void |
visitCombinedFragment(CombinedFragment element,
VisitorContext context)
Visitor method for
CombinedFragment. |
void |
visitComment(Comment comment,
VisitorContext visitorContext)
Visitor method for
Comment. |
void |
visitConnector(Connector o,
VisitorContext context)
Visitor method for
Connector. |
void |
visitConnectorEnd(ConnectorEnd o,
VisitorContext context)
Visitor method for
ConnectorEnd. |
void |
visitConstraint(Constraint constraint,
VisitorContext visitorContext)
Visitor method for
Constraint. |
void |
visitDiagram(Diagram element,
VisitorContext context)
Visitor method for
Diagram. |
void |
visitDiagramPresentationElement(DiagramPresentationElement o)
Visit DiagramPresentationElement
|
void |
visitElementImport(ElementImport element,
VisitorContext context)
Visitor method for
ElementImport. |
void |
visitEnumerationLiteral(EnumerationLiteral element,
VisitorContext context)
Visitor method for
EnumerationLiteral. |
void |
visitEvent(Event event,
VisitorContext visitorContext)
Visitor method for
Event. |
void |
visitExceptionHandler(ExceptionHandler element,
VisitorContext context)
Visitor method for
ExceptionHandler. |
void |
visitGeneralization(Generalization generalization,
VisitorContext visitorContext)
Visitor method for
Generalization. |
void |
visitInstanceSpecification(InstanceSpecification instanceSpecification,
VisitorContext visitorContext)
Visitor method for
InstanceSpecification. |
void |
visitInterface(Interface anInterface,
VisitorContext visitorContext)
Visitor method for
Interface. |
void |
visitLifeline(Lifeline lifeline,
VisitorContext visitorContext)
Visitor method for
Lifeline. |
void |
visitMessage(Message message,
VisitorContext visitorContext)
Visitor method for
Message. |
void |
visitModel(Model element,
VisitorContext context)
Visitor method for
Model. |
void |
visitNamedElement(NamedElement o,
VisitorContext context)
Visitor method for
NamedElement. |
void |
visitOpaqueAction(OpaqueAction element,
VisitorContext context)
Visitor method for
OpaqueAction. |
void |
visitOpaqueBehavior(OpaqueBehavior element,
VisitorContext context)
Visitor method for
OpaqueBehavior. |
void |
visitOperation(Operation operation,
VisitorContext visitorContext)
Visitor method for
Operation. |
void |
visitParameter(Parameter parameter,
VisitorContext visitorContext)
Visitor method for
Parameter. |
void |
visitPin(Pin element,
VisitorContext context)
Visitor method for
Pin. |
void |
visitProperty(Property property,
VisitorContext visitorContext)
Visitor method for
Property. |
void |
visitReception(Reception element,
VisitorContext context)
Visitor method for
Reception. |
void |
visitRelationship(Relationship o,
VisitorContext context)
Visitor method for
Relationship. |
void |
visitSendSignalAction(SendSignalAction sendSignalAction,
VisitorContext context)
Visitor method for
SendSignalAction. |
void |
visitSlot(Slot slot,
VisitorContext visitorContext)
Visitor method for
Slot. |
void |
visitStereotype(Stereotype o,
VisitorContext context)
Visitor method for
Stereotype. |
void |
visitTemplateParameter(TemplateParameter templateParameter,
VisitorContext visitorContext)
Visitor method for
TemplateParameter. |
void |
visitTemplateParameterSubstitution(TemplateParameterSubstitution parameterSubstitution,
VisitorContext visitorContext)
Visitor method for
TemplateParameterSubstitution. |
void |
visitTextBoxView(TextBoxView o) |
void |
visitTransition(Transition element,
VisitorContext context)
Visitor method for
Transition. |
void |
visitTrigger(Trigger element,
VisitorContext context)
Visitor method for
Trigger. |
void |
visitTypedElement(TypedElement element,
VisitorContext context)
Visitor method for
TypedElement. |
void |
visitValueSpecification(ValueSpecification valueSpecification,
VisitorContext visitorContext)
Visitor method for
ValueSpecification. |
void |
visitValueSpecificationAction(ValueSpecificationAction element,
VisitorContext context)
Visitor method for
ValueSpecificationAction. |
visitPathConnector, visitPathElement, visitPresentationElement, visitShapeElementvisitProjectvisitAbstraction, visitAcceptCallAction, visitAction, visitActionExecutionSpecification, visitActionInputPin, visitActivity, visitActivityFinalNode, visitActivityGroup, visitActivityNode, visitActor, visitAddStructuralFeatureValueAction, visitAddVariableValueAction, visitAnyReceiveEvent, visitArtifact, visitAssociation, visitBehavioralFeature, visitBehaviorExecutionSpecification, visitBroadcastSignalAction, visitCallAction, visitCallEvent, visitCentralBufferNode, visitChangeEvent, visitClassifier, visitClassifierTemplateParameter, visitClause, visitClearAssociationAction, visitClearStructuralFeatureAction, visitClearVariableAction, visitCollaboration, visitCommunicationPath, visitComponent, visitComponentRealization, visitConditionalNode, visitConnectableElement, visitConnectableElementTemplateParameter, visitConnectionPointReference, visitConsiderIgnoreFragment, visitContinuation, visitControlFlow, visitControlNode, visitCreateLinkAction, visitCreateLinkObjectAction, visitCreateObjectAction, visitDataStoreNode, visitDataType, visitDecisionNode, visitDependency, visitDeployedArtifact, visitDeployment, visitDeploymentSpecification, visitDeploymentTarget, visitDestroyLinkAction, visitDestroyObjectAction, visitDestructionOccurrenceSpecification, visitDevice, visitDirectedRelationship, visitDuration, visitDurationConstraint, visitDurationInterval, visitDurationObservation, visitElement, visitElementValue, visitEncapsulatedClassifier, visitEnumeration, visitExecutableNode, visitExecutionEnvironment, visitExecutionOccurrenceSpecification, visitExecutionSpecification, visitExpansionNode, visitExpansionRegion, visitExpression, visitExtend, visitExtension, visitExtensionEnd, visitExtensionPoint, visitFeature, visitFinalNode, visitFinalState, visitFlowFinalNode, visitForkNode, visitFunctionBehavior, visitGate, visitGeneralizationSet, visitGeneralOrdering, visitImage, visitInclude, visitInformationFlow, visitInformationItem, visitInitialNode, visitInputPin, visitInstanceValue, visitInteraction, visitInteractionConstraint, visitInteractionFragment, visitInteractionOperand, visitInteractionUse, visitInterfaceRealization, visitInterruptibleActivityRegion, visitInterval, visitIntervalConstraint, visitInvocationAction, visitJoinNode, visitLinkAction, visitLinkEndCreationData, visitLinkEndData, visitLinkEndDestructionData, visitLiteralBoolean, visitLiteralInteger, visitLiteralNull, visitLiteralReal, visitLiteralSpecification, visitLiteralString, visitLiteralUnlimitedNatural, visitLoopNode, visitManifestation, visitMergeNode, visitMessageEnd, visitMessageEvent, visitMessageOccurrenceSpecification, visitMultiplicityElement, visitNamespace, visitNode, visitObjectFlow, visitObjectNode, visitObservation, visitOccurrenceSpecification, visitOpaqueExpression, visitOperationTemplateParameter, visitOutputPin, visitPackage, visitPackageableElement, visitPackageImport, visitPackageMerge, visitParameterableElement, visitParameterSet, visitPartDecomposition, visitPort, visitPrimitiveType, visitProfile, visitProfileApplication, visitProtocolConformance, visitProtocolStateMachine, visitProtocolTransition, visitPseudostate, visitQualifierValue, visitRaiseExceptionAction, visitReadExtentAction, visitReadIsClassifiedObjectAction, visitReadLinkAction, visitReadLinkObjectEndAction, visitReadLinkObjectEndQualifierAction, visitReadSelfAction, visitReadStructuralFeatureAction, visitReadVariableAction, visitRealization, visitReclassifyObjectAction, visitRedefinableElement, visitRedefinableTemplateSignature, visitReduceAction, visitRegion, visitRemoveStructuralFeatureValueAction, visitRemoveVariableValueAction, visitReplyAction, visitSendObjectAction, visitSequenceNode, visitSignal, visitSignalEvent, visitStartClassifierBehaviorAction, visitStartObjectBehaviorAction, visitState, visitStateInvariant, visitStateMachine, visitStringExpression, visitStructuralFeature, visitStructuralFeatureAction, visitStructuredActivityNode, visitStructuredClassifier, visitSubstitution, visitTemplateableElement, visitTemplateBinding, visitTemplateSignature, visitTestIdentityAction, visitTimeConstraint, visitTimeEvent, visitTimeExpression, visitTimeInterval, visitTimeObservation, visitType, visitUnmarshallAction, visitUsage, visitUseCase, visitValuePin, visitVariable, visitVariableAction, visitVertex, visitWriteLinkAction, visitWriteStructuralFeatureAction, visitWriteVariableActionpublic static final char MODULE_VERSION_SEPARATOR
public static final int MAX_TEXT_LENGTH
public static final java.lang.String TYPE_SEPARATOR
public static final java.lang.String DEFAULT_VALUE_SEPARATOR
public static final java.lang.String EMPTY_NAME_NOTATION
public static final java.lang.String INHERITED_SIGN
public static final java.lang.String GRAY_COLOR_STRING
public static final char CONJUGATED_SYMBOL
public static final java.lang.String RIGHT_SIGN
public static final java.lang.String LEFT_SIGN
public static final java.lang.String NEUTRAL_SIGN
public static java.lang.String COLOR_PREFIX
public static java.lang.String FONT_COLOR_PREFIX
public static java.lang.String FONT_COLOR_END
public static java.lang.String COLOR_POSTFIX
public static java.lang.String getRepresentedText(BaseElement el)
el - element which representation text will be created.public static java.lang.String getRepresentedText(BaseElement el, boolean addColor)
public static void invalidateRepresentationCache(Project project)
public static java.lang.String getRepresentedText(BaseElement el, boolean addColor, boolean showAutoId)
el - element which representation text will be created.addColor - add color into representation textshowAutoId - if true will prepend the autoId to the representationpublic static java.lang.String getRepresentedText(BaseElement el, boolean addColor, boolean showAutoId, boolean fullSignature)
el - element which representation text will be created.addColor - add color into representation textshowAutoId - if true will prepend the autoId to the representationfullSignature - show full signature for elementspublic static java.lang.String getRepresentedText(BaseElement el, boolean addColor, boolean showAutoId, boolean fullSignature, boolean noCache)
el - element which representation text will be created.addColor - add color into representation textshowAutoId - if true will prepend the autoId to the representationfullSignature - show full signature for elementsnoCache - flag to indicate to not use cached representation textpublic static java.lang.String getRepresentedText(BaseElement el, boolean addColor, boolean showAutoId, boolean fullSignature, LocationInTool locationInTool, boolean noCache)
el - element which representation text will be created.addColor - add color into representation textshowAutoId - if true will prepend the autoId to the representationfullSignature - show full signature for elementslocationInTool - location in tool where text will be usednoCache - flag to indicate to not use cached representation textpublic static java.lang.String createDefaultRepresentationText(BaseElement element, boolean addColor, boolean fullSignature)
public static java.lang.String createDefaultRepresentationText(BaseElement element, boolean addColor, boolean fullSignature, boolean showAutoId)
element - element for which to retrieve representation text.addColor - indicates if color information be added.fullSignature - indicates if full signature should be provided.showAutoId - adding the AutoId to the representationpublic static java.lang.String createDefaultRepresentationText(BaseElement element, boolean addColor, boolean fullSignature, boolean showAutoId, LocationInTool locationInTool)
element - element for which to retrieve representation text.addColor - indicates if color information be added.fullSignature - indicates if full signature should be provided.showAutoId - adding the AutoId to the representationlocationInTool - location in tool where text will be usedpublic static java.lang.String createId(Element e, boolean addColor)
e - the elementaddColor - if true wrap in grey color tagspublic static RepresentationTextCreator getInstance()
public static java.lang.String getModelElementParentPath(Element modelElement, boolean addBrackets)
modelElement - The giveaddBrackets - True for add brackets to string.public static java.lang.String getModelElementNameWithParentPath(NamedElement namedElement, boolean addColor)
namedElement - The given name element.addColor - Add color flag.public static java.lang.String createElementNameText(Element o)
o - elementpublic static java.lang.String getRelationshipFromToRepresentation(Element relationship, @CheckForNull Element clientModelElement, java.lang.String clientName, @CheckForNull Element supplierModelElement, java.lang.String supplierName, boolean showFullType, boolean addColor)
relationship - relationship for which we want the representation partclientModelElement - first elementclientName - first element namesupplierModelElement - second elementsupplierName - second element nameshowFullType - flag to indicate if we need to show full types of elementsaddColor - flag to indicate if we gray out parent of elementpublic static java.lang.String resetColor(java.lang.String text)
text - The text value.public static java.lang.String appendGrayColor(java.lang.String text)
text - Given text.public static void appendGrayColor(java.lang.StringBuffer text)
text - Given text.public static void resetColor(java.lang.StringBuffer text)
text - The text value.public static void appendColor(java.lang.StringBuffer text,
java.awt.Color color)
text - Given text.color - colorpublic static void startColorHtmlTag(java.lang.StringBuilder text,
java.awt.Color color)
public static java.lang.String startColorHtmlTag(java.lang.String text,
java.awt.Color color)
text - Text to which append colour html start tag.color - Colour to use.public static void endColorHtmlTag(java.lang.StringBuilder text)
public static java.lang.String endColorHtmlTag(java.lang.String text)
text - Text to which append colour html end tag.public static java.lang.String appendColor(java.lang.String text,
java.awt.Color color)
text - Given text.color - colorpublic static java.lang.String getPureTextFromColoredText(java.lang.String coloredText)
public static java.lang.String appendLockInfo(BaseElement element, java.lang.String text, boolean addColorInformation)
element - Element.text - The given text.addColorInformation - True for set color.public static java.lang.String appendLockInfo(BaseElement baseElement, java.lang.String text, boolean addColorInformation, boolean addBrackets)
baseElement - Element.text - The given text.addColorInformation - True for set color.addBrackets - add brackets.@Deprecated public static java.lang.String createPropertyText(Property property, boolean showName, boolean showType, boolean showVisibility, boolean showFullType, boolean showInitValue, boolean showStereotype, boolean showProperties, boolean showConstraints, boolean showMultiplicity, boolean addColorInformation)
createPropertyText(PropertyTextParameter).property - attribute which text will be created.showName - show nameshowType - show typeshowVisibility - flag indicates if method visibility should be shown.showFullType - True for show full type.showInitValue - indicates if initial value of attribute will be shown. @return attribute view text string.showStereotype - show stereotypeshowProperties - show propertiesshowConstraints - show constraintsshowMultiplicity - show multiplicityaddColorInformation - add color@Deprecated public static java.lang.String createPropertyText(Property property, boolean showName, boolean showType, boolean showVisibility, boolean showFullType, boolean showInitValue, boolean showStereotype, boolean showProperties, boolean showTypeTaggedValues, boolean showConstraintName, boolean showConstraintExpression, boolean showMultiplicity, boolean addColorInformation)
createPropertyText(PropertyTextParameter).property - attribute which text will be created.showName - show nameshowType - show typeshowVisibility - flag indicates if method visibility should be shown.showFullType - True for show full type.showInitValue - indicates if initial value of attribute will be shown. @return attribute view text string.showStereotype - show stereotypesshowProperties - show propertiesshowTypeTaggedValues - show tagged valuesshowConstraintName - show constraint nameshowConstraintExpression - show constraint expressionshowMultiplicity - show multiplicityaddColorInformation - add color@Deprecated public static java.lang.String createPropertyText(Property property, boolean showName, boolean showType, boolean showDerived, boolean showVisibility, boolean showFullType, boolean showInitValue, boolean showStereotype, boolean showProperties, boolean showTypeTaggedValues, boolean showConstraintName, boolean showConstraintExpression, boolean showMultiplicity, boolean addColorInformation)
createPropertyText(PropertyTextParameter).property - attribute which text will be created.showName - show nameshowType - show typeshowDerived - show derived signshowVisibility - flag indicates if method visibility should be shown.showFullType - True for show full type.showInitValue - indicates if initial value of attribute will be shown. @return attribute view text string.showStereotype - show stereotypesshowProperties - show propertiesshowTypeTaggedValues - show tagged valuesshowConstraintName - show constraint nameshowConstraintExpression - show constraint expressionshowMultiplicity - show multiplicityaddColorInformation - add color@Deprecated public static java.lang.String createPropertyText(Property property, boolean showName, boolean showType, boolean showDerived, boolean showVisibility, boolean showFullType, boolean showInitValue, boolean showStereotype, boolean showProperties, boolean showTypeTaggedValues, boolean showConstraintName, boolean showConstraintExpression, boolean showMultiplicity, boolean showInheritedSign, boolean addColorInformation)
createPropertyText(PropertyTextParameter).property - attribute which text will be created.showName - show nameshowType - show typeshowDerived - show derived signshowVisibility - flag indicates if method visibility should be shown.showFullType - True for show full type.showInitValue - indicates if initial value of attribute will be shown. @return attribute view text string.showStereotype - show stereotypesshowProperties - show propertiesshowTypeTaggedValues - show tagged valuesshowConstraintName - show constraint nameshowConstraintExpression - show constraint expressionshowMultiplicity - show multiplicityshowInheritedSign - show inherited signaddColorInformation - add color@Deprecated public static java.lang.String createPropertyText(Property property, boolean showName, boolean showType, boolean showDerived, boolean showVisibility, boolean showFullType, boolean showInitValue, boolean showStereotype, boolean showProperties, boolean showTaggedValues, boolean showTypeTaggedValues, boolean showConstraintName, boolean showConstraintExpression, boolean showMultiplicity, boolean showInheritedSign, boolean addColorInformation)
createPropertyText(PropertyTextParameter).property - attribute which text will be created.showName - show nameshowType - show typeshowDerived - show derived signshowVisibility - flag indicates if method visibility should be shown.showFullType - True for show full type.showInitValue - indicates if initial value of attribute will be shown. @return attribute view text string.showStereotype - show stereotypesshowProperties - show propertiesshowTypeTaggedValues - show tagged valuesshowConstraintName - show constraint nameshowConstraintExpression - show constraint expressionshowMultiplicity - show multiplicityshowInheritedSign - show inherited signaddColorInformation - add colorpublic static java.lang.String createPropertyText(PropertyTextParameter propertyTextParameter)
propertyTextParameter - property text parameter objectpublic static void createPropertyPropertyStringText(Property property, java.lang.StringBuffer text)
public static void createPropertyPropertyStringText(Property property, java.lang.StringBuffer text, java.lang.String separator)
public static java.lang.String createOperationText(Operation operation, boolean showSignature, boolean showVisibility, boolean showFullType, boolean showStereotype, boolean showProperties, boolean showConstraintName, boolean showConstraintExpression, boolean showParameterDirection, boolean addColorInformation, boolean showTemplateParameters)
operation - operation which text will be created.showSignature - flag indicates if method parameters should be shown.showVisibility - flag indicates if method visibility should be shown.showFullType - True for show full type.showStereotype - show stereotypeshowProperties - show propertiesshowConstraintName - show constraint nameshowConstraintExpression - show constraint expressionshowParameterDirection - show parameter directionaddColorInformation - add colorshowTemplateParameters - @return method text string.public static java.lang.String createOperationText(Operation operation, boolean showSignature, boolean showVisibility, boolean showFullType, boolean showStereotype, boolean showProperties, boolean showConstraintName, boolean showConstraintExpression, boolean showParameterDirection, boolean addColorInformation, boolean showTemplateParameters, boolean showParameterDefaultValue)
operation - operation which text will be created.showSignature - flag indicates if method parameters should be shown.showVisibility - flag indicates if method visibility should be shown.showFullType - True for show full type.showStereotype - show stereotypeshowProperties - show propertiesshowConstraintName - show constraint nameshowConstraintExpression - show constraint expressionshowParameterDirection - show parameter direction kindaddColorInformation - add colorshowTemplateParameters - indicates if template parameters should be shown.showParameterDefaultValue - indicates if parameter default values should be shown.public static java.lang.String createOperationText(Operation operation, boolean showSignature, boolean showVisibility, boolean showFullType, boolean showStereotype, boolean showProperties, boolean showConstraintName, boolean showConstraintExpression, boolean showParameterDirection, boolean addColorInformation, boolean showTemplateParameters, boolean showParameterDefaultValue, boolean showInheritedSign)
operation - operation which text will be created.showSignature - flag indicates if method parameters should be shown.showVisibility - flag indicates if method visibility should be shown.showFullType - True for show full type.showStereotype - show stereotypeshowProperties - show propertiesshowConstraintName - show constraint nameshowConstraintExpression - show constraint expressionshowParameterDirection - show parameter direction kindaddColorInformation - add colorshowTemplateParameters - indicates if template parameters should be shown.showParameterDefaultValue - indicates if parameter default values should be shown.showInheritedSign - show inherited signpublic static java.lang.String createOperationText(Operation operation, boolean showSignature, boolean showVisibility, boolean showFullType, boolean showStereotype, boolean showProperties, boolean showTaggedValues, boolean showConstraintName, boolean showConstraintExpression, boolean showParameterDirection, boolean addColorInformation, boolean showTemplateParameters, boolean showParameterDefaultValue, boolean showInheritedSign)
operation - operation which text will be created.showSignature - flag indicates if method parameters should be shown.showVisibility - flag indicates if method visibility should be shown.showFullType - True for show full type.showStereotype - show stereotypeshowProperties - show propertiesshowConstraintName - show constraint nameshowConstraintExpression - show constraint expressionshowParameterDirection - show parameter direction kindaddColorInformation - add colorshowTemplateParameters - indicates if template parameters should be shown.showParameterDefaultValue - indicates if parameter default values should be shown.showInheritedSign - show inherited signpublic static java.lang.String createParametersText(java.util.Collection parameters,
boolean showSignature,
boolean showFullType,
boolean showParameterDirection,
boolean addColorInformation)
parameters - The given parameter.showSignature - Is show signature?showFullType - True for show full type.showParameterDirection - Is show parameter direction?addColorInformation - True for set color.public static java.lang.String createParametersText(java.util.Collection parameters,
boolean showSignature,
boolean showFullType,
boolean showParameterDirection,
boolean addColorInformation,
boolean showParameterDefaultValue)
parameters - The given parameter.showSignature - Is show signature?showFullType - True for show full type.showParameterDirection - Is show parameter direction?addColorInformation - True for set color.showParameterDefaultValue - indicates if default value should be shown for parameters.public static java.lang.String createParameterText(Parameter parameter, boolean showFullType, boolean showParameterDirection, boolean addColorInformation, boolean showDefaultValue)
parameter - parameter which text will be created.showFullType - True for show full type.showParameterDirection - indicates if parameter direction should be shown.addColorInformation - indicates if color information should be added to the parameter text.showDefaultValue - indicates if default value should be displayed for parameter.public static java.lang.String createParameterText(Parameter parameter, boolean showFullType, boolean showParameterDirection, boolean addColorInformation, boolean showDefaultValue, boolean skipDefaultDirection, boolean showReturnDirection)
parameter - parameter which text will be created.showFullType - True for show full type.showParameterDirection - indicates if parameter direction should be shown.addColorInformation - indicates if color information should be added to the parameter text.showDefaultValue - indicates if default value should be displayed for parameter.skipDefaultDirection - indicates if direction should be skipped if it is the same as default Parameter direction in project optionsshowReturnDirection - indicates if return direction kind should be shownpublic static java.lang.String createParameterDirectionText(Project project, java.lang.Class<? extends Parameter> parameterMetaType, ParameterDirectionKind parameterDirection, boolean skipDefaultValue, boolean showReturnDirection, boolean addColorInformation)
project - projectparameterMetaType - parameter metatypeparameterDirection - parameter directionskipDefaultValue - skip direction text if direction is the same as default for ParametershowReturnDirection - show return direction textaddColorInformation - use colors in textpublic static java.lang.String createParameterText(Parameter parameter, boolean showFullType, boolean showParameterDirection, boolean addColorInformation)
parameter - parameter which text will be created.showFullType - True for show full type.showParameterDirection - show parameter directionaddColorInformation - add colorpublic static java.lang.String createActivityParameterNodeText(ActivityParameterNode parameter, boolean showFullType, boolean addColorInformation)
parameter - parameter which text will be created.showFullType - True for show full type.addColorInformation - indicates if color information should be added to the parameter text.public static java.lang.String createClassifiersRepresentation(java.util.Collection classifiers,
boolean showFullType,
boolean addColorInformation)
classifiers - ClassshowFullType - True for show full type.addColorInformation - True for set color.public static java.lang.String createClassifierName(Classifier cl, boolean showFullType, boolean addColorInformation)
cl - Given classshowFullType - True for show full type.addColorInformation - True for set color.public static char createVisibilityText(VisibilityKind visibility)
visibility - the given visibility.public static java.lang.String createSlotText(@Nonnull
Slot slot,
boolean showName,
boolean ignoreTrueValues,
boolean showHTML,
boolean showFeatureType,
boolean showFullType,
boolean addColorInformation,
boolean showEmptyValue,
boolean showQualifiedName)
slot - The given slot.showName - Is show name?ignoreTrueValues - Is ignore true values?showHTML - True for show htmshowFeatureType - Is show feature type?showFullType - True for show full type.addColorInformation - True for set color.showEmptyValue - show empty valueshowQualifiedName - show qualified namepublic static java.lang.String createSlotText(@Nonnull
Slot slot,
boolean showName,
boolean ignoreTrueValues,
boolean showHTML,
boolean showFeatureType,
boolean showFullType,
boolean showFeatureTypeTaggedValues,
boolean addColorInformation,
boolean showEmptyValue,
boolean showQualifiedName)
slot - The given slot.showName - Is show name?ignoreTrueValues - Is ignore true values?showHTML - True for show htmshowFeatureType - Is show feature type?showFullType - True for show full type.showFeatureTypeTaggedValues - show feature type tagged valuesaddColorInformation - True for set color.showEmptyValue - show empty valueshowQualifiedName - show qualified namepublic static java.lang.String createSlotText(@Nonnull
Slot slot,
boolean showName,
boolean ignoreTrueValues,
boolean showHTML,
boolean showFeatureType,
boolean showFullType,
boolean showFeatureTypeTaggedValues,
boolean addColorInformation,
boolean showEmptyValue,
boolean showQualifiedName,
boolean showDerived)
slot - The given slot.showName - Is show name?ignoreTrueValues - Is ignore true values?showHTML - True for show htmshowFeatureType - Is show feature type?showFullType - True for show full type.showFeatureTypeTaggedValues - show feature type tagged valuesaddColorInformation - True for set color.showEmptyValue - show empty valueshowQualifiedName - show qualified nameshowDerived - if true returned string will be calculated as derived if possiblepublic static java.lang.String createSlotText(@Nonnull
Slot slot,
boolean showName,
boolean ignoreTrueValues,
boolean showHTML,
boolean showFeatureType,
boolean showFullType,
boolean showFeatureTypeTaggedValues,
boolean addColorInformation,
boolean showEmptyValue,
boolean showQualifiedName,
boolean showDerived,
boolean forEditing,
boolean colorUnitSymbols,
boolean colorTag)
slot - The given slot.showName - Is show name?ignoreTrueValues - Is ignore true values?showHTML - True for show htmshowFeatureType - Is show feature type?showFullType - True for show full type.showFeatureTypeTaggedValues - show feature type tagged valuesaddColorInformation - True for set color.showEmptyValue - show empty valueshowQualifiedName - show qualified nameshowDerived - if true returned string will be calculated as derived if possibleforEditing - flag to indicate that we need text for editiong, so no additional text providers will be usedcolorUnitSymbols - flag to indicate if we need to use color for additional text providers, we can't use addColorInformation, as we use same
provider for instances that don't have color information propertycolorTag - indicates if we need color tag or font color tag if we use in additional text providerspublic static void addSpaceAfterUnitBeforeNextValue(java.util.List<ValueSpecification> valueSpecifications, java.lang.StringBuilder stringBuilder)
valueSpecifications - value specifications to check unit symbol forstringBuilder - text string builderpublic static java.lang.String removeQuotationMarksFromSlotText(java.lang.String slotText)
slotText - slot text@CheckForNull public static java.lang.String createPureSlotsString(java.util.Collection<Slot> cs, java.lang.String separator, boolean showHTML, boolean showEmptyValue)
cs - Slot collection.separator - The separator string?showHTML - TRUE for show html format.showEmptyValue - show empty valuepublic static java.lang.String createSlotsText(java.util.Collection<Slot> cs, java.lang.String separator, boolean showHTML, boolean showEmptyValue)
@CheckForNull
public static java.lang.String createConstraintsText(@CheckForNull
java.util.Collection<Constraint> constraints,
java.lang.String separator,
boolean useName,
boolean useExpression,
boolean addBrackets)
constraints - a collection of Constraints.separator - separator string of every single constraint text(new line, comma)useName - put constraint name into textuseExpression - put constraint condition expression into textaddBrackets - put all text into bracketspublic static java.lang.String createConstraintsText(ValueSpecification valueSpecification, boolean addBrackets)
valueSpecification - Constraint value specification.addBrackets - True for add brackets to string.public static java.lang.String constructActivityEdgeText(ActivityEdge activityEdge, boolean showWeight)
activityEdge - edgeshowWeight - show weight informationpublic static java.lang.String createConstraintsText(Constraint constraint, boolean useName, boolean useExpression, boolean addBrackets)
constraint - The given constraint.useName - put name into representation textuseExpression - put Expression into representation text.addBrackets - True for add brackets to string.public static java.lang.String createGuardText(Message msg)
msg - messagepublic static java.lang.String createValueSpecificationText(@CheckForNull
ValueSpecification specification)
specification - The given Value Specification.public static java.lang.String createTypeName(Type cl, boolean showFullType, boolean addColorInformation)
cl - Type.showFullType - True for show full type.addColorInformation - True for set color.@OpenApi public static java.lang.String getFullUMLName(Element element)
element - elementpublic static java.lang.String getFullUMLName(Element element, boolean doNotAddTopLevels)
element - The given NameElement.doNotAddTopLevels - do not add to top levelpublic static java.lang.String getAbsoluteUMLPathToRoot(Element element)
element - elementpublic static java.lang.String createTransitionText(Transition transition, boolean showEffect)
public static java.lang.String createTransitionText(Transition transition, boolean showEffect, boolean showPort, boolean showOpaqueBehaviorBody)
public static java.lang.String createTransitionText(Transition transition, boolean showEffect, boolean showPort, boolean showOpaqueBehaviorBody, boolean showOperationsSignature, boolean useAdvancedColoring)
transition - the given transition.showEffect - show effect or notshowPort - controls display of port.showOpaqueBehaviorBody - indicates if opaque behavior body should be displayed.showOperationsSignature - show operation signature or notuseAdvancedColoring - use advanced coloring for operations or notcreateProtocolTransitionText(com.nomagic.uml2.ext.magicdraw.statemachines.mdprotocolstatemachines.ProtocolTransition)public static java.lang.String createProtocolTransitionText(ProtocolTransition transition)
public static java.lang.String createProtocolTransitionText(ProtocolTransition transition, boolean showPort)
public static java.lang.String createProtocolTransitionText(ProtocolTransition transition, boolean showPort, boolean showOperationsSignature, boolean useAdvancedColoring)
transition - the given transition.showOperationsSignature - show operation signature or notuseAdvancedColoring - use advanced coloring for operations or notpublic static java.lang.String createTriggersText(java.util.Collection triggers)
public static java.lang.String createTriggersText(java.util.Collection triggers,
boolean showPort)
triggers - The given triggers.showPort - controls display of port.public static java.lang.String createTriggersText(java.util.Collection triggers,
boolean showPort,
boolean showOperationsSignature,
boolean useAdvancedColoring)
triggers - The given triggers.showPort - controls display of port.showOperationsSignature - show operation signature or notuseAdvancedColoring - use advanced coloring for operations or notpublic static java.lang.String createTriggerText(Trigger trigger)
public static java.lang.String createTriggerText(Trigger trigger, boolean showPort)
public static java.lang.String createTriggerText(Trigger trigger, boolean showPort, boolean showOperationsSignature, boolean useAdvancedColoring)
public static java.lang.String createEventText(Event event)
event - The given event.public static java.lang.String createEventText(Event event, boolean showOperationsSignature, boolean useAdvancedColoring)
public static java.lang.String createAssociationText(Association association)
association - Text owner.public static java.lang.String createInstanceSpecificationText(InstanceSpecification instance, boolean showClassifier, boolean showFullType, boolean addColorInformation)
instance - instance specificationshowClassifier - show classifiershowFullType - show full type of classifieraddColorInformation - add colorpublic static java.lang.String createInstanceSpecificationText(InstanceSpecification instance, boolean showClassifier, boolean showFullType, boolean addColorInformation, boolean showAutoID)
@OpenApi
public static java.lang.String createMultiplicityText(java.lang.String lower,
java.lang.String upper,
boolean ordered,
boolean unique,
boolean addBrackets)
lower - Lower valueupper - Upper valueordered - orderedunique - uniqueaddBrackets - add brackets@OpenApi public static java.lang.String createMultiplicityText(MultiplicityElement multiplicity, boolean showOrder, boolean showUnique, boolean addBrackets)
multiplicity - the given multiplicity.showOrder - show ordershowUnique - show unique labeladdBrackets - add bracketspublic static java.lang.String createMultiplicityText(java.lang.String lower,
java.lang.String upper,
@CheckForNull
ValueSpecification lowerValue,
boolean unique,
boolean ordered,
boolean addBrackets)
public static java.lang.String getPathToRoot(Element element)
element - The given element.public static java.lang.String getPathToRoot(Element element, boolean checkTop)
element - The given element.checkTop - True for check the root.public static java.lang.String getPathToRoot(Element data, boolean relativeToLibrary, boolean compactMode)
getPathToRoot(Element, boolean, boolean, boolean)data - model element used to calculate qualified namerelativeToLibrary - if true, then qualified name is calculated from "model library" element, otherwise
qualified name is calculated from root.compactMode - if true, then old MagicDraw notation is used, otherwise uses standard UML notationpublic static java.lang.String getPathToRoot(Element data, boolean relativeToLibrary, boolean relativeToModel, boolean compactMode)
data - model element used to calculate qualified namerelativeToLibrary - if true, then qualified name is calculated from "model library" element, otherwise
qualified name is calculated from root.relativeToModel - if true, then qualified name is calculated from nearest "model" element, otherwise
qualified name is calculated from root.compactMode - - if true, then old MagicDraw notation is used, otherwise uses standard UML notationpublic static java.lang.String getPathToRoot(Element element, boolean checkTop, java.lang.String separator)
getPathToRoot(Element, boolean, boolean, String)element - The given element.checkTop - True for check the root.separator - separator to use to create a pathpublic static java.lang.String getPathToRoot(Element element, boolean toModelLibrary, boolean toModel, java.lang.String separator)
element - The given element.toModelLibrary - if true, stops at model library.toModel - if true, stops at mode element.separator - separator to use to create a pathpublic static java.lang.String createEnumerationLiteralText(EnumerationLiteral enumLiteral, boolean showStereotype, boolean showProperties, boolean showConstraintName, boolean showConstraintExpression)
enumLiteral - The given EnumerationLiteral.showStereotype - True, for show stereotype.showProperties - True, for show Properties.showConstraintName - show constraint nameshowConstraintExpression - show constraint expressionpublic static java.lang.String createEnumerationLiteralText(EnumerationLiteral enumLiteral, boolean showStereotype, boolean showProperties, boolean showConstraintName, boolean showConstraintExpression, boolean showInheritedSign)
enumLiteral - The given EnumerationLiteral.showStereotype - True, for show stereotype.showProperties - True, for show Properties.showConstraintName - show constraint nameshowConstraintExpression - show constraint expressionshowInheritedSign - show inherited signpublic static java.lang.String createEnumerationLiteralText(EnumerationLiteral enumLiteral, boolean showStereotype, boolean showProperties, boolean showTaggedValues, boolean showConstraintName, boolean showConstraintExpression, boolean showInheritedSign)
public static java.lang.String createEnumerationLiteralText(EnumerationLiteral enumLiteral, boolean showStereotype, boolean showProperties, boolean showTaggedValues, boolean showConstraintName, boolean showConstraintExpression, boolean showInheritedSign, boolean addColorInformation)
enumLiteral - The given EnumerationLiteral.showStereotype - True, for show stereotype.showProperties - True, for show Properties.showTaggedValues - True, for show tagged values.showConstraintName - show constraint nameshowConstraintExpression - show constraint expressionshowInheritedSign - show inherited signpublic static java.lang.String createTemplateBindingText(TemplateBinding binding)
binding - The given binding.public static java.lang.String createTemplateBindingText(TemplateBinding binding, boolean attachTemplateParameterInfo)
binding - The given binding.attachTemplateParameterInfo - indicates if full template parameter notation should be used.public static java.lang.String createTemplateParameterSubstitutionText(TemplateParameterSubstitution parameterSubstitution, boolean attachTemplateParameterInfo)
parameterSubstitution - The given ParameterSubstitution.attachTemplateParameterInfo - indicates if full template parameter notation should be used.public static java.lang.String createTemplateParametersText(java.util.Collection templateParameters,
java.lang.String separator)
templateParameters - The given TemplateParameters.separator - The text separatorpublic static java.lang.String createTemplateParameterText(TemplateParameter tParameter)
tParameter - The given TemplateParameterpublic static java.lang.String getTemplateParameterTypeAsString(TemplateParameter tParameter)
tParameter - The given template parameter.public static java.lang.String createStereotypesText(Element element, char separator)
element - The given element.separator - The separator string.public static java.lang.String createStereotypesText(Element element, char separator, boolean skipDSL, boolean useAlias)
element - The given element.separator - The separator string.skipDSL - skip DSL stereotypes or noruseAlias - use DSL alias instead of namepublic static boolean getFullName(Element element, java.lang.StringBuffer path, java.lang.String separator, boolean checkTopStereotype)
getFullName(Element, StringBuffer, String, boolean, boolean).element - The NameElement.path - Path of NameElement.separator - The separator.checkTopStereotype - Is check to stereotype?public static boolean getFullName(Element element, java.lang.StringBuffer path, java.lang.String separator, boolean checkTopStereotype, boolean checkTopModelElement)
element - The NameElement.path - Path of NameElement.separator - The separator.checkTopStereotype - Is check to stereotype?checkTopModelElement - indicates Model model element checkpublic static java.lang.String createStereotypesText(java.util.Collection<Stereotype> stereotypes, char separator)
stereotypes - the collection of stereotypes.separator - the separator of stereotypespublic static java.lang.String createStereotypesText(java.util.Collection<Stereotype> stereotypes, char separator, boolean skipDSL, boolean useAlias)
stereotypes - the collection of stereotypes.separator - the separator of stereotypesskipDSL - skip DSL stereotypes or noruseAlias - use DSL alias instead of namepublic static java.lang.String createStereotypeText(Stereotype stereotype)
public static java.lang.String createStereotypeText(Stereotype stereotype, boolean useAlias)
public static java.lang.String createStereotypeText(@CheckForNull
java.lang.String stereotypeName)
public static java.lang.String createInteractionUseText(InteractionUse interactionUse, boolean addReferTo, boolean addArguments)
interactionUse - The given InteractionUse.addReferTo - Is add refer to text?addArguments - Is add Arguments?public static java.lang.String createInteractionUseText(CallBehaviorAction interactionUse)
interactionUse - The given InteractionUse.public static java.lang.String createPortText(Port port, boolean showName, boolean showType, boolean showMultiplicity, boolean showFullType, boolean addColor)
public static java.lang.String createPortText(Port port, boolean showName, boolean showType, boolean showMultiplicity, boolean showFullType, boolean showTaggedValues, boolean showInheritedSign, boolean addColor)
public static java.lang.String createPortText(Port port, boolean showName, boolean showType, boolean showMultiplicity, boolean showFullType, boolean showInheritedSign, boolean addColor)
public static java.lang.String createBehaviorText(Behavior behavior)
behavior - behavior to represent.public static java.lang.String createBehaviorText(Behavior behavior, boolean showStereotype, boolean showProperties, boolean showInheritedSign, boolean showSignature, boolean showFullType, boolean showConstraintName, boolean showConstraintExpression, boolean addColorInformation, boolean showParameterDirectionKind)
public static java.lang.String createBehaviorText(Behavior behavior, boolean showStereotype, boolean showProperties, boolean showInheritedSign, boolean showSignature, boolean showFullType, boolean showConstraintName, boolean showConstraintExpression, boolean addColorInformation, boolean showParameterDirectionKind, boolean showOpaqueBehaviorBody)
behavior - behavior to represent.showStereotype - indicates if stereotypes should be displayed.showProperties - indicates if properties and tagged values should be displayed.showInheritedSign - indicates if inherited sign should be displayed.showSignature - indicates if behavior signature should be displayed.showFullType - indicates if full qualified type name should be displayed.showConstraintName - indicates if constraint name should be displayed.showConstraintExpression - indicates if constraint expression should be displayed.addColorInformation - indicates if color information should be added to the representation text.showParameterDirectionKind - indicates if parameter direction kind should be displayed.showOpaqueBehaviorBody - indicates if opaque behavior body should be displayedpublic static java.lang.String createBehaviorText(Behavior behavior, boolean showStereotype, boolean showProperties, boolean showTaggedValues, boolean showInheritedSign, boolean showSignature, boolean showFullType, boolean showConstraintName, boolean showConstraintExpression, boolean addColorInformation, boolean showParameterDirectionKind, boolean showOpaqueBehaviorBody)
behavior - behavior to represent.showStereotype - indicates if stereotypes should be displayed.showProperties - indicates if properties and tagged values should be displayed.showInheritedSign - indicates if inherited sign should be displayed.showSignature - indicates if behavior signature should be displayed.showFullType - indicates if full qualified type name should be displayed.showConstraintName - indicates if constraint name should be displayed.showConstraintExpression - indicates if constraint expression should be displayed.addColorInformation - indicates if color information should be added to the representation text.showParameterDirectionKind - indicates if parameter direction kind should be displayed.showOpaqueBehaviorBody - indicates if opaque behavior body should be displayedpublic static java.lang.String createTypedElementText(TypedElement typedElement, boolean showName, boolean showType, boolean showMultiplicity, boolean showFullType, boolean addColor)
public static java.lang.String createPinText(Pin pin, boolean showName, boolean showType, boolean showMultiplicity, boolean showFullType, boolean addColor, boolean showSynchronizationInfo)
public static java.lang.String constructGeneralizationSetText(GeneralizationSet set, boolean showPowerType)
public static java.lang.String constructCombinedFragmentOperatorText(CombinedFragment combinedFragment)
public static java.lang.String putInQuotes(java.lang.String text)
public static java.lang.String createConveyedInformationText(java.util.List<Classifier> information, boolean showAutoIDNumber)
public static java.lang.String createNamedElementListText(java.util.List<? extends NamedElement> elements)
elements - - list of named elements.public static java.lang.String createReceptionText(Reception reception, boolean showSignature, boolean showVisibility, boolean showFullType, boolean showStereotype, boolean showProperties, boolean showConstraintName, boolean showConstraintExpression, boolean showParameterDirection, boolean addColorInformation)
reception - reception which text will be created.showSignature - flag indicates if method parameters should be shown.showVisibility - flag indicates if method visibility should be shown.showFullType - True for show full type.showStereotype - show stereotypesshowProperties - show propertiesshowConstraintName - show constraint nameshowConstraintExpression - show constraint expressionshowParameterDirection - show parameter directionaddColorInformation - add colorpublic static java.lang.String createReceptionText(Reception reception, boolean showSignature, boolean showVisibility, boolean showFullType, boolean showStereotype, boolean showProperties, boolean showConstraintName, boolean showConstraintExpression, boolean showParameterDirection, boolean showInheritedSign, boolean addColorInformation)
reception - reception which text will be created.showSignature - flag indicates if method parameters should be shown.showVisibility - flag indicates if method visibility should be shown.showFullType - True for show full type.showStereotype - show stereotypesshowProperties - show propertiesshowConstraintName - show constraint nameshowConstraintExpression - show constraint expressionshowParameterDirection - show parameter directionshowInheritedSign - show inherited signaddColorInformation - add colorpublic static java.lang.String createReceptionText(Reception reception, boolean showSignature, boolean showVisibility, boolean showFullType, boolean showStereotype, boolean showProperties, boolean showTaggedValues, boolean showConstraintName, boolean showConstraintExpression, boolean showParameterDirection, boolean showInheritedSign, boolean addColorInformation)
reception - reception which text will be created.showSignature - flag indicates if method parameters should be shown.showVisibility - flag indicates if method visibility should be shown.showFullType - True for show full type.showStereotype - show stereotypesshowProperties - show propertiesshowConstraintName - show constraint nameshowConstraintExpression - show constraint expressionshowParameterDirection - show parameter directionshowInheritedSign - show inherited signaddColorInformation - add colorpublic static java.lang.String createStateText(State state)
state - the state to create text for.public static void addProvider(RepresentationTextCreator.RepresentationTextProvider provider)
provider - providerpublic static void removeProvider(RepresentationTextCreator.RepresentationTextProvider provider)
provider - providerpublic static void addProvider(RepresentationTextCreator.RepresentationTextProvider2 provider)
provider - providerpublic static void removeProvider(RepresentationTextCreator.RepresentationTextProvider2 provider)
provider - provider@CheckForNull public static RepresentationTextCreator.RepresentationTextProvider getProviderFor(BaseElement element)
element - given element@CheckForNull public static RepresentationTextCreator.RepresentationTextProvider2 getProvider2For(BaseElement element)
element - given elementpublic static java.lang.String createRoleText(Property property, char endName)
property - property for which to create role text.endName - name suffix for end identifying in unnamed case.public static java.lang.String createRoleText(Property property, char endName, int compressTypeNumber)
property - property for which to create role text.endName - name suffix for end identifying in unnamed case.compressTypeNumber - number of chars till which to compress type text, -1 if type shouldn't compressed.public static boolean isUseStandardStereotypeKeywordChar()
public static void setUseStandardStereotypeKeywordChar(boolean useStandard)
useStandard - use standard keywordpublic static java.lang.String createMultiplicityText(java.lang.Integer lower,
java.lang.Integer upper)
lower - Lower range.upper - Upper range.public static java.lang.String createMultiplicityRangeText(@CheckForNull
java.lang.Integer range)
range - multiplicity range.public void visitBaseElement(BaseElement o) throws java.lang.Exception
VisitorvisitBaseElement in class Visitoro - object to visit.java.lang.Exceptionpublic void visitNamedElement(NamedElement o, VisitorContext context)
ModelHierarchyVisitorNamedElement.visitNamedElement in interface ModelVisitorvisitNamedElement in class ModelHierarchyVisitoro - that should be visited.context - visitor's context.public void visitModel(Model element, VisitorContext context)
ModelHierarchyVisitorModel.visitModel in interface ModelVisitorvisitModel in class ModelHierarchyVisitorelement - that should be visited.context - visitor's context.public static java.lang.String constructModuleText(Element element)
public void visitRelationship(Relationship o, VisitorContext context)
ModelHierarchyVisitorRelationship.visitRelationship in interface ModelVisitorvisitRelationship in class ModelHierarchyVisitoro - that should be visited.context - visitor's context.public void visitAssociationClass(AssociationClass element, VisitorContext context)
ModelHierarchyVisitorAssociationClass.visitAssociationClass in interface ModelVisitorvisitAssociationClass in class ModelHierarchyVisitorelement - that should be visited.context - visitor's context.public void visitConnector(Connector o, VisitorContext context)
ModelHierarchyVisitorConnector.visitConnector in interface ModelVisitorvisitConnector in class ModelHierarchyVisitoro - that should be visited.context - visitor's context.public void visitConnectorEnd(ConnectorEnd o, VisitorContext context)
ModelHierarchyVisitorConnectorEnd.visitConnectorEnd in interface ModelVisitorvisitConnectorEnd in class ModelHierarchyVisitoro - that should be visited.context - visitor's context.public void visitActivityEdge(ActivityEdge o, VisitorContext context)
ModelHierarchyVisitorActivityEdge.visitActivityEdge in interface ModelVisitorvisitActivityEdge in class ModelHierarchyVisitoro - that should be visited.context - visitor's context.public void visitExceptionHandler(ExceptionHandler element, VisitorContext context)
ModelHierarchyVisitorExceptionHandler.visitExceptionHandler in interface ModelVisitorvisitExceptionHandler in class ModelHierarchyVisitorelement - that should be visited.context - visitor's context.public void visitGeneralization(Generalization generalization, VisitorContext visitorContext)
ModelHierarchyVisitorGeneralization.visitGeneralization in interface ModelVisitorvisitGeneralization in class ModelHierarchyVisitorgeneralization - that should be visited.visitorContext - visitor's context.public void visitTransition(Transition element, VisitorContext context)
ModelHierarchyVisitorTransition.visitTransition in interface ModelVisitorvisitTransition in class ModelHierarchyVisitorelement - that should be visited.context - visitor's context.public void visitTrigger(Trigger element, VisitorContext context)
ModelHierarchyVisitorTrigger.visitTrigger in interface ModelVisitorvisitTrigger in class ModelHierarchyVisitorelement - that should be visited.context - visitor's context.public void visitCollaborationUse(CollaborationUse element, VisitorContext context)
ModelHierarchyVisitorCollaborationUse.visitCollaborationUse in interface ModelVisitorvisitCollaborationUse in class ModelHierarchyVisitorelement - that should be visited.context - visitor's context.public void visitCallBehaviorAction(CallBehaviorAction callBehaviorAction, VisitorContext visitorContext)
ModelHierarchyVisitorCallBehaviorAction.visitCallBehaviorAction in interface ModelVisitorvisitCallBehaviorAction in class ModelHierarchyVisitorcallBehaviorAction - that should be visited.visitorContext - visitor's context.public void visitCallOperationAction(CallOperationAction callOperationAction, VisitorContext visitorContext)
ModelHierarchyVisitorCallOperationAction.visitCallOperationAction in interface ModelVisitorvisitCallOperationAction in class ModelHierarchyVisitorcallOperationAction - that should be visited.visitorContext - visitor's context.public void visitElementImport(ElementImport element, VisitorContext context)
ModelHierarchyVisitorElementImport.visitElementImport in interface ModelVisitorvisitElementImport in class ModelHierarchyVisitorelement - that should be visited.context - visitor's context.public void visitBehavioredClassifier(BehavioredClassifier element, VisitorContext context)
ModelHierarchyVisitorBehavioredClassifier.visitBehavioredClassifier in interface ModelVisitorvisitBehavioredClassifier in class ModelHierarchyVisitorelement - that should be visited.context - visitor's context.public void visitBehavior(Behavior element, VisitorContext cnt)
ModelHierarchyVisitorBehavior.visitBehavior in interface ModelVisitorvisitBehavior in class ModelHierarchyVisitorelement - that should be visited.cnt - visitor's context.public void visitOpaqueBehavior(OpaqueBehavior element, VisitorContext context)
ModelHierarchyVisitorOpaqueBehavior.visitOpaqueBehavior in interface ModelVisitorvisitOpaqueBehavior in class ModelHierarchyVisitorelement - that should be visited.context - visitor's context.public java.lang.String getRelationshipFromToPart(Relationship o)
public java.lang.String getRelationshipFromToPart(Element relationship, Element clientModelElement, Element supplierModelElement)
public void visitProperty(Property property, VisitorContext visitorContext)
ModelHierarchyVisitorProperty.visitProperty in interface ModelVisitorvisitProperty in class ModelHierarchyVisitorproperty - that should be visited.visitorContext - visitor's context.public void visitOperation(Operation operation, VisitorContext visitorContext)
ModelHierarchyVisitorOperation.visitOperation in interface ModelVisitorvisitOperation in class ModelHierarchyVisitoroperation - that should be visited.visitorContext - visitor's context.public void visitReception(Reception element, VisitorContext context)
ModelHierarchyVisitorReception.visitReception in interface ModelVisitorvisitReception in class ModelHierarchyVisitorelement - that should be visited.context - visitor's context.public void visitParameter(Parameter parameter, VisitorContext visitorContext)
ModelHierarchyVisitorParameter.visitParameter in interface ModelVisitorvisitParameter in class ModelHierarchyVisitorparameter - that should be visited.visitorContext - visitor's context.public void visitPin(Pin element, VisitorContext context)
ModelHierarchyVisitorPin.visitPin in interface ModelVisitorvisitPin in class ModelHierarchyVisitorelement - that should be visited.context - visitor's context.public void visitInstanceSpecification(InstanceSpecification instanceSpecification, VisitorContext visitorContext)
ModelHierarchyVisitorInstanceSpecification.visitInstanceSpecification in interface ModelVisitorvisitInstanceSpecification in class ModelHierarchyVisitorinstanceSpecification - that should be visited.visitorContext - visitor's context.public void visitEnumerationLiteral(EnumerationLiteral element, VisitorContext context)
ModelHierarchyVisitorEnumerationLiteral.visitEnumerationLiteral in interface ModelVisitorvisitEnumerationLiteral in class ModelHierarchyVisitorelement - that should be visited.context - visitor's context.public void visitActivityPartition(ActivityPartition activityPartition, VisitorContext visitorContext)
ModelHierarchyVisitorActivityPartition.visitActivityPartition in interface ModelVisitorvisitActivityPartition in class ModelHierarchyVisitoractivityPartition - that should be visited.visitorContext - visitor's context.public void visitMessage(Message message, VisitorContext visitorContext)
ModelHierarchyVisitorMessage.visitMessage in interface ModelVisitorvisitMessage in class ModelHierarchyVisitormessage - that should be visited.visitorContext - visitor's context.public void visitDiagramPresentationElement(DiagramPresentationElement o) throws java.lang.Exception
InheritanceVisitorvisitDiagramPresentationElement in class InheritanceVisitoro - object to visit.java.lang.Exceptionpublic void visitDiagram(Diagram element, VisitorContext context)
ModelHierarchyVisitorDiagram.visitDiagram in interface ModelVisitorvisitDiagram in class ModelHierarchyVisitorelement - that should be visited.context - visitor's context.public boolean isAddColor()
public void setAddColor(boolean addColor)
addColor - Add color flag.public LocationInTool getLocationInTool()
public void setLocationInTool(LocationInTool locationInTool)
public boolean isCreateBoundElementName()
public void setCreateBoundElementName(boolean createBoundElementName)
public boolean isShowFullType()
public void setShowFullType(boolean value)
value - The given value.public void resetAutoIdRepresentations(Project project)
project - projectpublic void resetCache(java.util.Collection<? extends BaseElement> elements)
elements - elementspublic void resetCache(BaseElement element)
element - elementpublic void visitComment(Comment comment, VisitorContext visitorContext)
ModelHierarchyVisitorComment.visitComment in interface ModelVisitorvisitComment in class ModelHierarchyVisitorcomment - that should be visited.visitorContext - visitor's context.public void visitSlot(Slot slot, VisitorContext visitorContext)
ModelHierarchyVisitorSlot.visitSlot in interface ModelVisitorvisitSlot in class ModelHierarchyVisitorslot - that should be visited.visitorContext - visitor's context.public void visitConstraint(Constraint constraint, VisitorContext visitorContext)
ModelHierarchyVisitorConstraint.visitConstraint in interface ModelVisitorvisitConstraint in class ModelHierarchyVisitorconstraint - that should be visited.visitorContext - visitor's context.public void visitStereotype(Stereotype o, VisitorContext context)
ModelHierarchyVisitorStereotype.visitStereotype in interface ModelVisitorvisitStereotype in class ModelHierarchyVisitoro - that should be visited.context - visitor's context.public void visitTextBoxView(TextBoxView o) throws java.lang.Exception
visitTextBoxView in class InheritanceVisitorjava.lang.Exceptionpublic void visitTemplateParameter(TemplateParameter templateParameter, VisitorContext visitorContext)
ModelHierarchyVisitorTemplateParameter.visitTemplateParameter in interface ModelVisitorvisitTemplateParameter in class ModelHierarchyVisitortemplateParameter - that should be visited.visitorContext - visitor's context.public void visitTemplateParameterSubstitution(TemplateParameterSubstitution parameterSubstitution, VisitorContext visitorContext)
ModelHierarchyVisitorTemplateParameterSubstitution.visitTemplateParameterSubstitution in interface ModelVisitorvisitTemplateParameterSubstitution in class ModelHierarchyVisitorparameterSubstitution - that should be visited.visitorContext - visitor's context.public void visitValueSpecification(ValueSpecification valueSpecification, VisitorContext visitorContext)
ModelHierarchyVisitorValueSpecification.visitValueSpecification in interface ModelVisitorvisitValueSpecification in class ModelHierarchyVisitorvalueSpecification - that should be visited.visitorContext - visitor's context.public void visitInterface(Interface anInterface, VisitorContext visitorContext)
ModelHierarchyVisitorInterface.visitInterface in interface ModelVisitorvisitInterface in class ModelHierarchyVisitoranInterface - that should be visited.visitorContext - visitor's context.public void visitClass(Class aClass, VisitorContext visitorContext)
ModelHierarchyVisitorClass.visitClass in interface ModelVisitorvisitClass in class ModelHierarchyVisitoraClass - that should be visited.visitorContext - visitor's context.public void visitLifeline(Lifeline lifeline, VisitorContext visitorContext)
ModelHierarchyVisitorLifeline.visitLifeline in interface ModelVisitorvisitLifeline in class ModelHierarchyVisitorlifeline - that should be visited.visitorContext - visitor's context.public void visitTypedElement(TypedElement element, VisitorContext context)
ModelHierarchyVisitorTypedElement.visitTypedElement in interface ModelVisitorvisitTypedElement in class ModelHierarchyVisitorelement - that should be visited.context - visitor's context.public void visitActivityParameterNode(ActivityParameterNode activityParameterNode, VisitorContext visitorContext)
ModelHierarchyVisitorActivityParameterNode.visitActivityParameterNode in interface ModelVisitorvisitActivityParameterNode in class ModelHierarchyVisitoractivityParameterNode - that should be visited.visitorContext - visitor's context.public void visitEvent(Event event, VisitorContext visitorContext)
ModelHierarchyVisitorEvent.visitEvent in interface ModelVisitorvisitEvent in class ModelHierarchyVisitorevent - that should be visited.visitorContext - visitor's context.public void visitSendSignalAction(SendSignalAction sendSignalAction, VisitorContext context)
ModelHierarchyVisitorSendSignalAction.visitSendSignalAction in interface ModelVisitorvisitSendSignalAction in class ModelHierarchyVisitorsendSignalAction - that should be visited.context - visitor's context.public void visitValueSpecificationAction(ValueSpecificationAction element, VisitorContext context)
ModelHierarchyVisitorValueSpecificationAction.visitValueSpecificationAction in interface ModelVisitorvisitValueSpecificationAction in class ModelHierarchyVisitorelement - that should be visited.context - visitor's context.public void visitAcceptEventAction(AcceptEventAction element, VisitorContext context)
ModelHierarchyVisitorAcceptEventAction.visitAcceptEventAction in interface ModelVisitorvisitAcceptEventAction in class ModelHierarchyVisitorelement - that should be visited.context - visitor's context.public void visitOpaqueAction(OpaqueAction element, VisitorContext context)
ModelHierarchyVisitorOpaqueAction.visitOpaqueAction in interface ModelVisitorvisitOpaqueAction in class ModelHierarchyVisitorelement - that should be visited.context - visitor's context.public void visitCombinedFragment(CombinedFragment element, VisitorContext context)
ModelHierarchyVisitorCombinedFragment.visitCombinedFragment in interface ModelVisitorvisitCombinedFragment in class ModelHierarchyVisitorelement - that should be visited.context - visitor's context.protected java.lang.String getResult()
protected void cleanResult()
public static java.util.Comparator<BaseElement> createRepresentationTextComparator(boolean addColor, boolean showAutoId)
addColor - add color into representation textshowAutoId - if true will prepend the autoId to the representation