@OpenApiAll
public class LinkType
extends java.lang.Object
Constructor and Description |
---|
LinkType(java.lang.Class clazz)
Constructs this relationship type.
|
LinkType(java.lang.Class clazz,
java.util.Set<Stereotype> stereotypes)
Constructs this relationship type.
|
Modifier and Type | Method and Description |
---|---|
static LinkType |
create(Element relationship)
Creates type for a given relationship.
|
boolean |
equals(java.lang.Object o) |
java.lang.Class |
getClazz()
Gets class of the relationship.
|
java.util.Set<Stereotype> |
getStereotypes()
Gets stereotypes of the relationship.
|
int |
hashCode() |
boolean |
isTypeOf(Relationship relationship)
Checks if given relationship is of this type.
|
public LinkType(java.lang.Class clazz, java.util.Set<Stereotype> stereotypes)
clazz
- class of the relationship.stereotypes
- stereotypes of the relationship.public LinkType(java.lang.Class clazz)
clazz
- class of the relationship.public java.lang.Class getClazz()
public java.util.Set<Stereotype> getStereotypes()
public static LinkType create(Element relationship)
relationship
- relationship for which to get the type.public boolean isTypeOf(Relationship relationship)
relationship
- relationship to check.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object