public class EAConnectorUtil extends AbstractEAUtil
Constructor and Description |
---|
EAConnectorUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addTaggedValues(org.sparx.Connector con,
List<EATaggedValue> tvs)
Adds the given collection of tagged values to the given connector, NOT
checking for duplicate tags.
|
static void |
addTaggedValues(org.sparx.Connector con,
TaggedValues tvs)
Adds the given collection of tagged values to the given connector, NOT
checking for duplicate tags.
|
static void |
deleteTaggedValue(org.sparx.Connector con,
String nameOfTVToDelete) |
static SortedMap<String,EATaggedValue> |
getEATaggedValues(org.sparx.Connector conn) |
static String |
message(int mnr) |
static void |
setEAAlias(org.sparx.Connector con,
String aliasName) |
static void |
setEAAssociationClass(org.sparx.Connector con,
org.sparx.Element classElement)
NOTE: only works with EA 12 Java API, not the previous API.
|
static void |
setEADirection(org.sparx.Connector con,
EADirection direction) |
static void |
setEAName(org.sparx.Connector con,
String name) |
static void |
setEANotes(org.sparx.Connector con,
String notes) |
static void |
setEAStereotype(org.sparx.Connector con,
String stereotype) |
static void |
setEAStereotypeEx(org.sparx.Connector con,
String stereotypeEx) |
static void |
setEAStyleEx(org.sparx.Connector con,
String styleEx) |
static void |
setEASupplierID(org.sparx.Connector con,
int supplierID) |
static void |
setTaggedValues(org.sparx.Connector con,
List<EATaggedValue> tvs)
Sets the given tagged values in the given connector.
|
static void |
setTaggedValues(org.sparx.Connector con,
TaggedValues tvs)
Sets the given tagged values in the given connector.
|
createMessage, createMessage, createMessage, createMessage, stereotypesCSV
public static void addTaggedValues(org.sparx.Connector con, List<EATaggedValue> 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.
con
- the connector to which the tagged values shall be addedtvs
- collection of tagged values to addEAException
public static void addTaggedValues(org.sparx.Connector con, 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.
con
- the connector to which the tagged values shall be addedtvs
- collection of tagged values to addEAException
public static void deleteTaggedValue(org.sparx.Connector con, String nameOfTVToDelete)
public static void setEAAssociationClass(org.sparx.Connector con, org.sparx.Element classElement) throws EAException
con
- classElement
- EAException
public static void setEAAlias(org.sparx.Connector con, String aliasName) throws EAException
EAException
public static void setEANotes(org.sparx.Connector con, String notes) throws EAException
EAException
public static void setEAName(org.sparx.Connector con, String name) throws EAException
EAException
public static void setEAStereotype(org.sparx.Connector con, String stereotype) throws EAException
EAException
public static void setEAStereotypeEx(org.sparx.Connector con, String stereotypeEx) throws EAException
EAException
public static void setEAStyleEx(org.sparx.Connector con, String styleEx) throws EAException
EAException
public static void setEADirection(org.sparx.Connector con, EADirection direction) throws EAException
EAException
public static void setEASupplierID(org.sparx.Connector con, int supplierID) throws EAException
EAException
public static void setTaggedValues(org.sparx.Connector con, List<EATaggedValue> tvs) throws EAException
con
- the connector in which the tagged values shall be settvs
- tagged values to set, must not be null
EAException
public static void setTaggedValues(org.sparx.Connector con, TaggedValues tvs) throws EAException
con
- the connector 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.Connector conn)
elmt
- null
public static String message(int mnr)
Copyright © 2018. All rights reserved.