public class EAConnectorEndUtil extends AbstractEAUtil
Constructor and Description |
---|
EAConnectorEndUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addTaggedValue(org.sparx.ConnectorEnd end,
EATaggedValue tv)
Adds the given tagged value to the given connector end, NOT checking for
duplicate tags.
|
static void |
addTaggedValues(org.sparx.ConnectorEnd end,
TaggedValues tvs)
Adds the given collection of tagged values to the given connector end,
NOT checking for duplicate tags.
|
static void |
deleteTaggedValue(org.sparx.ConnectorEnd ce,
String nameOfTVToDelete) |
static SortedMap<String,EATaggedValue> |
getEATaggedValues(org.sparx.ConnectorEnd elmt) |
static String |
message(int mnr) |
static void |
setEAAggregation(org.sparx.ConnectorEnd conEnd,
EAAggregation aggregation) |
static void |
setEAAlias(org.sparx.ConnectorEnd conEnd,
String alias) |
static void |
setEAAllowDuplicates(org.sparx.ConnectorEnd conEnd,
boolean allowDuplicates) |
static void |
setEACardinality(org.sparx.ConnectorEnd conEnd,
String cardinalityAsString) |
static void |
setEAContainment(org.sparx.ConnectorEnd conEnd,
String containment) |
static void |
setEANavigable(org.sparx.ConnectorEnd conEnd,
EANavigable navigable)
Indicates whether the connector end is navigable from the opposite
classifier - Navigable, Non-Navigable or Unspecified.
|
static void |
setEAOrdering(org.sparx.ConnectorEnd conEnd,
boolean isOrdered) |
static void |
setEARole(org.sparx.ConnectorEnd conEnd,
String role) |
static void |
setEARoleNote(org.sparx.ConnectorEnd conEnd,
String note) |
static void |
setEAStereotypeEx(org.sparx.ConnectorEnd conEnd,
String stereotypeEx) |
static void |
setTaggedValue(org.sparx.ConnectorEnd ce,
EATaggedValue tv)
Sets the given tagged value in the given connector end.
|
static void |
setTaggedValue(org.sparx.ConnectorEnd end,
String name,
String value)
Sets the given tagged value in the tagged values of the given connector
end.
|
static void |
setTaggedValues(org.sparx.ConnectorEnd ce,
TaggedValues tvs)
Sets the given tagged values in the given connector end.
|
static String |
taggedValue(org.sparx.ConnectorEnd end,
String tvName)
Retrieves the first tagged value with given name of the given attribute.
|
createMessage, createMessage, createMessage, createMessage, stereotypesCSV
public static void addTaggedValue(org.sparx.ConnectorEnd end, EATaggedValue tv) throws EAException
WARNING: Enterprise Architect may initialize default tagged values for a model element that adheres to a specific UML profile. In that case, adding the same tagged values would lead to duplicates. If duplicates shall be prevented, set the tagged value instead of adding it.
end
- the connector end to which the tagged value shall be addedtv
- tagged value to add, must not be null
EAException
public static void addTaggedValues(org.sparx.ConnectorEnd end, TaggedValues tvs) throws EAException
WARNING: Enterprise Architect may initialize default tagged values for a model element that adheres to a specific UML profile. In that case, adding the same tagged values would lead to duplicates. If duplicates shall be prevented, set the tagged value instead of adding it.
e
- the connector end to which the tagged values shall be addedtvs
- collection of tagged values to addEAException
public static void deleteTaggedValue(org.sparx.ConnectorEnd ce, String nameOfTVToDelete)
public static void setEACardinality(org.sparx.ConnectorEnd conEnd, String cardinalityAsString) throws EAException
EAException
public static void setEARole(org.sparx.ConnectorEnd conEnd, String role) throws EAException
EAException
public static void setEAAlias(org.sparx.ConnectorEnd conEnd, String alias) throws EAException
EAException
public static void setEARoleNote(org.sparx.ConnectorEnd conEnd, String note) throws EAException
EAException
public static void setEAStereotypeEx(org.sparx.ConnectorEnd conEnd, String stereotypeEx) throws EAException
EAException
public static void setEAOrdering(org.sparx.ConnectorEnd conEnd, boolean isOrdered) throws EAException
EAException
public static void setEAAllowDuplicates(org.sparx.ConnectorEnd conEnd, boolean allowDuplicates) throws EAException
EAException
public static void setEAAggregation(org.sparx.ConnectorEnd conEnd, EAAggregation aggregation) throws EAException
EAException
public static void setEAContainment(org.sparx.ConnectorEnd conEnd, String containment) throws EAException
EAException
public static void setEANavigable(org.sparx.ConnectorEnd conEnd, EANavigable navigable) throws EAException
conEnd
- navigable
- 'Navigable', 'Non-Navigable' or 'Unspecified'EAException
public static void setTaggedValue(org.sparx.ConnectorEnd ce, EATaggedValue tv) throws EAException
ce
- the connector end in which the tagged value shall be settv
- tagged value to set, must not be null
EAException
public static void setTaggedValue(org.sparx.ConnectorEnd end, String name, String value) throws EAException
end
- the connector end in which the tagged value shall be setname
- name of the tagged value to set, must not be null
value
- value of the tagged value to set, can be null
EAException
public static String taggedValue(org.sparx.ConnectorEnd end, String tvName)
att
- attribute that contains the tagged values to searchtvName
- name of the tagged value to retrievenull
if the tagged value was not found. If there are multiple values
with the tag only the first is provided.public static void setTaggedValues(org.sparx.ConnectorEnd ce, TaggedValues tvs) throws EAException
ce
- the connector end in which the tagged values shall be settvs
- tagged values to set, must not be null
EAException
public static SortedMap<String,EATaggedValue> getEATaggedValues(org.sparx.ConnectorEnd elmt)
elmt
- null
public static String message(int mnr)
Copyright © 2018. All rights reserved.