1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 package net.sourceforge.plantumldependency.cli.constants;
26
27 import static java.util.Arrays.asList;
28 import static java.util.regex.Pattern.compile;
29 import static net.sourceforge.plantumldependency.cli.main.option.display.type.argument.DisplayType.ABSTRACT_CLASSES;
30 import static net.sourceforge.plantumldependency.cli.main.option.display.type.argument.DisplayType.ANNOTATIONS;
31 import static net.sourceforge.plantumldependency.cli.main.option.display.type.argument.DisplayType.CLASSES;
32 import static net.sourceforge.plantumldependency.cli.main.option.display.type.argument.DisplayType.ENUMS;
33 import static net.sourceforge.plantumldependency.cli.main.option.display.type.argument.DisplayType.EXTENSIONS;
34 import static net.sourceforge.plantumldependency.cli.main.option.display.type.argument.DisplayType.IMPLEMENTATIONS;
35 import static net.sourceforge.plantumldependency.cli.main.option.display.type.argument.DisplayType.IMPORTS;
36 import static net.sourceforge.plantumldependency.cli.main.option.display.type.argument.DisplayType.INTERFACES;
37 import static net.sourceforge.plantumldependency.cli.main.option.display.type.argument.DisplayType.NATIVE_METHODS;
38 import static net.sourceforge.plantumldependency.cli.main.option.display.type.argument.DisplayType.STATIC_IMPORTS;
39 import static net.sourceforge.plantumldependency.common.color.HTMLColor.YELLOW;
40 import static net.sourceforge.plantumldependency.common.constants.CharacterConstants.COMMA_CHAR;
41 import static net.sourceforge.plantumldependency.common.constants.CommonConstants.BLANK_STRING;
42 import static net.sourceforge.plantumldependency.common.utils.collection.CollectionUtils.collectionToString;
43
44 import java.util.Set;
45 import java.util.TreeSet;
46 import java.util.regex.Pattern;
47
48 import net.sourceforge.plantumldependency.cli.generic.GenericDependency;
49 import net.sourceforge.plantumldependency.cli.generic.impl.GenericDependencyImpl;
50 import net.sourceforge.plantumldependency.cli.generic.type.impl.nativeimpl.NativeDependencyTypeImpl;
51 import net.sourceforge.plantumldependency.cli.main.option.display.type.argument.DisplayType;
52 import net.sourceforge.plantumldependency.cli.plantumldiagram.classes.element.stereotype.PlantUMLStereotype;
53 import net.sourceforge.plantumldependency.cli.plantumldiagram.classes.element.stereotype.impl.PlantUMLSpottedCharacterImpl;
54 import net.sourceforge.plantumldependency.cli.plantumldiagram.classes.element.stereotype.impl.PlantUMLStereotypeImpl;
55
56
57
58
59
60
61
62
63 public final class PlantUMLDependencyConstants {
64
65
66 public static final String DEFAULT_DISPLAY_NAME_OPTIONS_STRING = ".*";
67
68
69 public static final Pattern DEFAULT_DISPLAY_NAME_OPTIONS_PATTERN = compile(DEFAULT_DISPLAY_NAME_OPTIONS_STRING);
70
71
72 public static final String DEFAULT_DISPLAY_PACKAGE_NAME_OPTIONS_STRING = ".*";
73
74
75 public static final Pattern DEFAULT_DISPLAY_PACKAGE_NAME_OPTIONS_PATTERN = compile(DEFAULT_DISPLAY_PACKAGE_NAME_OPTIONS_STRING);
76
77
78 public static final Set < DisplayType > DEFAULT_DISPLAY_TYPES_OPTIONS = new TreeSet < DisplayType >(
79 asList(new DisplayType[] {ABSTRACT_CLASSES, ANNOTATIONS, CLASSES, ENUMS, IMPORTS, INTERFACES,
80 STATIC_IMPORTS, NATIVE_METHODS, IMPLEMENTATIONS, EXTENSIONS}));
81
82
83 public static final String DEFAULT_DISPLAY_TYPES_OPTIONS_STRING = collectionToString(DEFAULT_DISPLAY_TYPES_OPTIONS,
84 COMMA_CHAR, BLANK_STRING, BLANK_STRING);
85
86
87 public static final String DEFAULT_EXCLUDE_OPTIONS = "**/package-info.java";
88
89
90 public static final String DEFAULT_INCLUDE_OPTIONS = "**/*.";
91
92
93 public static final String JAVA_LANG_PACKAGE = "java.lang";
94
95
96 public static final String LOGGING_PROPERTIES_PATH = "net/sourceforge/plantumldependency/cli/log/logging.properties";
97
98
99 public static final String NATIVE_DEPENDENCY_NAME = "NativeCall";
100
101
102 public static final String NATIVE_DEPENDENCY_PACKAGE_NAME = "javax.native";
103
104
105 public static final GenericDependency NATIVE_DEPENDENCY = new GenericDependencyImpl(new NativeDependencyTypeImpl(
106 NATIVE_DEPENDENCY_NAME, NATIVE_DEPENDENCY_PACKAGE_NAME));
107
108
109 public static final PlantUMLStereotype NATIVE_PLANTUML_STEREOTYPE = new PlantUMLStereotypeImpl(
110 new PlantUMLSpottedCharacterImpl('N', YELLOW));
111
112
113
114
115
116
117 private PlantUMLDependencyConstants() {
118 super();
119 }
120 }