18 package org.turro.contacts.organigram;
20 import java.util.Collection;
21 import java.util.EnumSet;
22 import org.turro.string.Strings;
23 import org.turro.contacts.BusinessRelation;
24 import org.turro.elephant.util.Images;
25 import org.turro.util.CompareUtil;
47 private final boolean allowJumps;
48 private final String image;
50 private RelationType(
int group,
int level,
boolean allowJumps, String image) {
53 this.allowJumps = allowJumps;
58 return "$" + toString();
74 EnumSet<RelationType> srt = EnumSet.noneOf(
RelationType.class);
84 if(rt !=
null && rt.group == group) {
85 if(allowJumps && rt.
level > level) {
87 }
else if(rt.
level == (level + 1)) {
100 if(rt.getRelationKey().equals(relation)) {
111 public static boolean matches(String relation) {
112 return !Strings.isBlank(relation) && relation.startsWith(getRelationPrefix());
116 EnumSet<RelationType> srt = EnumSet.noneOf(
RelationType.class);
120 }
else if(rt.level == 1) {
static String getImage(String image)