01: package org.kohsuke.rngom.digested;
02:
03: import org.kohsuke.rngom.parse.Context;
04:
05: /**
06: * @author Kohsuke Kawaguchi (kk@kohsuke.org)
07: */
08: public class DValuePattern extends DPattern {
09: private String datatypeLibrary;
10: private String type;
11: private String value;
12: private Context context;
13: private String ns;
14:
15: public DValuePattern(String datatypeLibrary, String type,
16: String value, Context context, String ns) {
17: this .datatypeLibrary = datatypeLibrary;
18: this .type = type;
19: this .value = value;
20: this .context = context;
21: this .ns = ns;
22: }
23:
24: public String getDatatypeLibrary() {
25: return datatypeLibrary;
26: }
27:
28: public String getType() {
29: return type;
30: }
31:
32: public String getValue() {
33: return value;
34: }
35:
36: public Context getContext() {
37: return context;
38: }
39:
40: public String getNs() {
41: return ns;
42: }
43:
44: public boolean isNullable() {
45: return false;
46: }
47:
48: public Object accept(DPatternVisitor visitor) {
49: return visitor.onValue(this);
50: }
51: }
|