This class deals with RuleSets for Random name generation
| 27 | * |
| 28 | */ |
| 29 | public class RuleSet extends ArrayList<String> implements DataElement |
| 30 | { |
| 31 | private final List<DataValue> retList = new ArrayList<>(); |
| 32 | private Rule retRule; |
| 33 | private String id; |
| 34 | private String title; |
| 35 | private String usage = "private"; |
| 36 | private final VariableHashMap allVars; |
| 37 | private int weight; |
| 38 | |
| 39 | /** |
| 40 | * Constructor |
| 41 | * |
| 42 | * @param allVars |
| 43 | * @param title |
| 44 | * @param id |
| 45 | * @param weight |
| 46 | */ |
| 47 | public RuleSet(VariableHashMap allVars, String title, String id, int weight) |
| 48 | { |
| 49 | this.allVars = allVars; |
| 50 | this.title = title; |
| 51 | this.id = id; |
| 52 | this.weight = weight; |
| 53 | } |
| 54 | |
| 55 | /** |
| 56 | * Constructor |
| 57 | * |
| 58 | * @param allVars |
| 59 | * @param title |
| 60 | * @param id |
| 61 | * @param usage |
| 62 | */ |
| 63 | public RuleSet(VariableHashMap allVars, String title, String id, String usage) |
| 64 | { |
| 65 | this(allVars, title, id, 1, usage); |
| 66 | } |
| 67 | |
| 68 | /** |
| 69 | * Constructor |
| 70 | * |
| 71 | * @param allVars |
| 72 | * @param title |
| 73 | * @param id |
| 74 | * @param weight |
| 75 | * @param usage |
| 76 | */ |
| 77 | private RuleSet(VariableHashMap allVars, String title, String id, int weight, String usage) |
| 78 | { |
| 79 | this.allVars = allVars; |
| 80 | this.title = title; |
| 81 | this.id = id; |
| 82 | this.weight = weight; |
| 83 | this.usage = usage; |
| 84 | } |
| 85 | |
| 86 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected