Class RelationType
java.lang.Object
com.aquima.interactions.metamodel.RelationType
- All Implemented Interfaces:
Serializable
This class is used as an enumerated type for the possible types of relations.
- Since:
- 5.0
- Author:
- O. Kerpershoek, F. v.d. Meer
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RelationType
This relation type implies a parent-child relation (part-of relation) between to objects.static final RelationType
This relation type is generic.static final RelationType
A composite relation is a specific kind of aggregation, as the child object of the relation cannot exist without the parent. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
RelationType
(String name, boolean directed, boolean exclusive) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getType()
This method returns the name of the relation type.int
hashCode()
boolean
This method returns a boolean indicating if the relation type represents a parent-child relation.boolean
This method returns a boolean indicating if the child object a directed relation belongs exclusively to the parent.static RelationType
-
Field Details
-
ASSOCIATIVE
This relation type is generic. Two objects related with an associative relation are considered equal to each other, and can exist independently. -
AGGREGATE
This relation type implies a parent-child relation (part-of relation) between to objects. Objects that are related to each other by aggregation may exist independent of each other. -
COMPOSITE
A composite relation is a specific kind of aggregation, as the child object of the relation cannot exist without the parent.
-
-
Constructor Details
-
RelationType
-
-
Method Details
-
valueOf
-
getType
This method returns the name of the relation type.- Returns:
- String containing the name of the relation type.
-
isDirected
public boolean isDirected()This method returns a boolean indicating if the relation type represents a parent-child relation.- Returns:
- boolean indicating if the relation type represents a parent-child relation.
-
isExclusive
public boolean isExclusive()This method returns a boolean indicating if the child object a directed relation belongs exclusively to the parent.- Returns:
- boolean indicating if the child object a directed relation belongs exclusively to the parent.
-
hashCode
public int hashCode() -
equals
-