Last change
on this file was
53,
checked in by zeiss, 14 years ago
|
|
-
Property svn:mime-type set to
text/plain
|
File size:
649 bytes
|
Line | |
---|
1 | package de.ugoe.cs.swe.bnftools.validation;
|
---|
2 |
|
---|
3 | import java.util.ArrayList;
|
---|
4 | import java.util.List;
|
---|
5 |
|
---|
6 | import de.ugoe.cs.swe.bnftools.ebnf.Rule;
|
---|
7 |
|
---|
8 | public class DuplicateEntry {
|
---|
9 | String snippet;
|
---|
10 | List<Rule> rules = new ArrayList<Rule>();
|
---|
11 |
|
---|
12 | public String getSnippet() {
|
---|
13 | return snippet;
|
---|
14 | }
|
---|
15 |
|
---|
16 | public void setSnippet(String snippet) {
|
---|
17 | this.snippet = snippet;
|
---|
18 | }
|
---|
19 |
|
---|
20 | public List<Rule> getRules() {
|
---|
21 | return rules;
|
---|
22 | }
|
---|
23 |
|
---|
24 | public void setRules(List<Rule> rule) {
|
---|
25 | this.rules = rule;
|
---|
26 | }
|
---|
27 |
|
---|
28 | public void addRule(Rule r) {
|
---|
29 | if (!rules.contains(r))
|
---|
30 | rules.add(r);
|
---|
31 | }
|
---|
32 |
|
---|
33 | public int getMatchCount() {
|
---|
34 | return rules.size();
|
---|
35 | }
|
---|
36 |
|
---|
37 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.