Class LinkType
java.lang.Object
com.nomagic.magicdraw.uml.symbols.LinkType
Holds information about a possible relationship - its class and stereotypes.
Given this information it is possible to create a relationship and
check whether any relationship is of this type.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic LinkType
Creates type for a given relationship.boolean
getClazz()
Gets class of the relationship.Gets stereotypes of the relationship.int
hashCode()
boolean
isTypeOf
(Relationship relationship) Checks if given relationship is of this type.
-
Constructor Details
-
LinkType
Constructs this relationship type.- Parameters:
clazz
- class of the relationship.stereotypes
- stereotypes of the relationship.
-
LinkType
Constructs this relationship type.- Parameters:
clazz
- class of the relationship.
-
-
Method Details
-
getClazz
Gets class of the relationship.- Returns:
- class of the relationship.
-
getStereotypes
Gets stereotypes of the relationship.- Returns:
- stereotypes of the relationship.
-
create
Creates type for a given relationship.- Parameters:
relationship
- relationship for which to get the type.- Returns:
- type of the given relationship.
-
isTypeOf
Checks if given relationship is of this type.- Parameters:
relationship
- relationship to check.- Returns:
- true if given relationship is of given type, false otherwise.
-
hashCode
public int hashCode() -
equals
-