1
|
/**
|
2
|
* Copyright (C) 2012 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
|
10
|
package eu.etaxonomy.cdm.api.util;
|
11
|
|
12
|
import java.util.Set;
|
13
|
|
14
|
import eu.etaxonomy.cdm.model.common.RelationshipBase.Direction;
|
15
|
import eu.etaxonomy.cdm.model.taxon.TaxonRelationshipType;
|
16
|
|
17
|
|
18
|
/**
|
19
|
* Holds a ({@link TaxonRelationshipType})
|
20
|
* and gives it a direction which is one of:
|
21
|
* <ul>
|
22
|
* <li>direct, everted: {@link Direction.relatedTo}</li>
|
23
|
* <li>inverse: {@link Direction.relatedFrom}</li>
|
24
|
* <li>bidirectional: {@link Direction.relatedTo} and {@link Direction.relatedFrom}</li>
|
25
|
* </ul>
|
26
|
*
|
27
|
* @author a.kohlbecker
|
28
|
* @since Dec 7, 2012
|
29
|
*
|
30
|
*/
|
31
|
public class TaxonRelationshipEdge extends AbstractRelationshipEdge<TaxonRelationshipType> {
|
32
|
|
33
|
public TaxonRelationshipEdge(Set<TaxonRelationshipType> taxonRelationshipTypes, Direction ... direction) {
|
34
|
super(taxonRelationshipTypes, direction);
|
35
|
}
|
36
|
|
37
|
public TaxonRelationshipEdge(TaxonRelationshipType taxonRelationshipType, Direction ... direction) {
|
38
|
super(taxonRelationshipType, direction);
|
39
|
}
|
40
|
|
41
|
}
|