01: package org.kohsuke.rngom.digested;
02:
03: import org.kohsuke.rngom.nc.NameClass;
04:
05: /**
06: * @author Kohsuke Kawaguchi (kk@kohsuke.org)
07: */
08: public abstract class DXmlTokenPattern extends DUnaryPattern {
09: private final NameClass name;
10:
11: public DXmlTokenPattern(NameClass name) {
12: this .name = name;
13: }
14:
15: /**
16: * Gets the name class of this element/attribute.
17: */
18: public NameClass getName() {
19: return name;
20: }
21:
22: public final boolean isNullable() {
23: return false;
24: }
25: }
|