public class RelationshipUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static AssociationRelationship |
createNewAggregationRelationship(java.lang.String name,
Element aggregator,
Element aggregated)
Creates the new aggregation relationship.
|
static GeneralizationRelationship |
createNewGeneralizationRelationship(Element child,
Element parent)
Creates the new generalization relationship.
|
static RealizationRelationship |
createNewRealizationRelationship(java.lang.String relationshipName,
Element client,
Element supplier)
Creates the new realization relationship.
|
static UsageRelationship |
createNewUsageRelationship(java.lang.String relationshipName,
Element client,
Element supplier)
Creates the new usage relationship.
|
static Element |
getClientElementFromRelationship(Relationship relationship)
Gets the client element from relationship.
|
static Interface |
getImplementedInterface(Relationship relationship)
Gets the implemented interface.
|
static Element |
getSubElement(Relationship relationship)
Gets the sub element.
|
static Element |
getSuperElement(Relationship relationship)
Gets the super element.
|
static Element |
getUsedElementFromRelationship(Relationship relationship)
Gets the used element from relationship.
|
static void |
moveRelationship(Relationship relationship,
Element client,
Element supplier)
Move relationship.
|
public static Element getUsedElementFromRelationship(Relationship relationship)
relationship
- the relationshippublic static Element getClientElementFromRelationship(Relationship relationship)
relationship
- the relationshippublic static Interface getImplementedInterface(Relationship relationship)
relationship
- the relationshippublic static Element getSuperElement(Relationship relationship)
relationship
- the relationshippublic static Element getSubElement(Relationship relationship)
relationship
- the relationshippublic static void moveRelationship(Relationship relationship, Element client, Element supplier)
relationship
- the relationshipclient
- the clientsupplier
- the supplierpublic static RealizationRelationship createNewRealizationRelationship(java.lang.String relationshipName, Element client, Element supplier)
relationshipName
- the relationship nameclient
- the clientsupplier
- the supplierpublic static GeneralizationRelationship createNewGeneralizationRelationship(Element child, Element parent)
child
- the childparent
- the parentpublic static UsageRelationship createNewUsageRelationship(java.lang.String relationshipName, Element client, Element supplier)
relationshipName
- the relationship nameclient
- the clientsupplier
- the supplierpublic static AssociationRelationship createNewAggregationRelationship(java.lang.String name, Element aggregator, Element aggregated)
name
- the nameaggregator
- the aggregatoraggregated
- the aggregated