Last change
on this file since 12188 was 12188, checked in by kjdon, 18 years ago |
Initial revision
|
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
377 bytes
|
Line | |
---|
1 | package org.greenstone.gsdl3.gs3build.schema;
|
---|
2 |
|
---|
3 | import java.util.*;
|
---|
4 |
|
---|
5 | public class EnumConstraint
|
---|
6 | {
|
---|
7 | List options;
|
---|
8 |
|
---|
9 | public EnumConstraint()
|
---|
10 | { this.options = new ArrayList();
|
---|
11 | }
|
---|
12 |
|
---|
13 | public void addOption(String option)
|
---|
14 | {
|
---|
15 | this.options.add(option);
|
---|
16 | }
|
---|
17 |
|
---|
18 | public boolean validate(String value)
|
---|
19 | {
|
---|
20 | return this.options.contains(value);
|
---|
21 | }
|
---|
22 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.