1 package org.andromda.translation.ocl.validation;
2
3 import java.util.Arrays;
4 import java.util.Collection;
5 import org.apache.commons.lang.StringUtils;
6
7
8
9
10
11
12
13 class OCLPredicateFeatures
14 {
15
16
17
18 private static final String[] PREDICATE_FEATURES = new String[]{"one", "forAll", "reject", "select", "any",
19 "exists",};
20
21 private static final Collection features = Arrays.asList(PREDICATE_FEATURES);
22
23
24
25
26
27
28
29 static final boolean isPredicateFeature(final String feature)
30 {
31 return features.contains(StringUtils.trimToEmpty(feature));
32 }
33 }