Class LinkType
- java.lang.Object
 - 
- com.nomagic.magicdraw.uml.symbols.LinkType
 
 
- 
@OpenApiAll public class LinkType extends java.lang.ObjectHolds 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. 
- 
- 
Field Summary
Fields Modifier and Type Field Description private java.lang.ClassmClazzClass of the relationship.private java.util.Set<Stereotype>mStereotypesStereotypes of the relationship. 
- 
Constructor Summary
Constructors Constructor Description LinkType(java.lang.Class clazz)Constructs this relationship type.LinkType(java.lang.Class clazz, java.util.Set<Stereotype> stereotypes)Constructs this relationship type. 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LinkTypecreate(Element relationship)Creates type for a given relationship.booleanequals(java.lang.Object o)java.lang.ClassgetClazz()Gets class of the relationship.java.util.Set<Stereotype>getStereotypes()Gets stereotypes of the relationship.inthashCode()booleanisTypeOf(Relationship relationship)Checks if given relationship is of this type. 
 - 
 
- 
- 
Field Detail
- 
mClazz
private final java.lang.Class mClazz
Class of the relationship. 
- 
mStereotypes
private final java.util.Set<Stereotype> mStereotypes
Stereotypes of the relationship. 
 - 
 
- 
Constructor Detail
- 
LinkType
public LinkType(java.lang.Class clazz, java.util.Set<Stereotype> stereotypes)Constructs this relationship type.- Parameters:
 clazz- class of the relationship.stereotypes- stereotypes of the relationship.
 
- 
LinkType
public LinkType(java.lang.Class clazz)
Constructs this relationship type.- Parameters:
 clazz- class of the relationship.
 
 - 
 
- 
Method Detail
- 
getClazz
public java.lang.Class getClazz()
Gets class of the relationship.- Returns:
 - class of the relationship.
 
 
- 
getStereotypes
public java.util.Set<Stereotype> getStereotypes()
Gets stereotypes of the relationship.- Returns:
 - stereotypes of the relationship.
 
 
- 
create
public static LinkType create(Element relationship)
Creates type for a given relationship.- Parameters:
 relationship- relationship for which to get the type.- Returns:
 - type of the given relationship.
 
 
- 
isTypeOf
public boolean isTypeOf(Relationship relationship)
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()
- Overrides:
 hashCodein classjava.lang.Object
 
- 
equals
public boolean equals(java.lang.Object o)
- Overrides:
 equalsin classjava.lang.Object
 
 - 
 
 -