01: package com.sun.xml.bind.v2.model.annotation;
02:
03: import java.lang.annotation.Annotation;
04: import javax.xml.bind.annotation.XmlElement;
05:
06: final class XmlElementQuick extends Quick implements XmlElement {
07:
08: private final XmlElement core;
09:
10: public XmlElementQuick(Locatable upstream, XmlElement core) {
11: super (upstream);
12: this .core = core;
13: }
14:
15: protected Annotation getAnnotation() {
16: return core;
17: }
18:
19: protected Quick newInstance(Locatable upstream, Annotation core) {
20: return new XmlElementQuick(upstream, ((XmlElement) core));
21: }
22:
23: public Class<XmlElement> annotationType() {
24: return XmlElement.class;
25: }
26:
27: public String name() {
28: return core.name();
29: }
30:
31: public Class type() {
32: return core.type();
33: }
34:
35: public String namespace() {
36: return core.namespace();
37: }
38:
39: public String defaultValue() {
40: return core.defaultValue();
41: }
42:
43: public boolean required() {
44: return core.required();
45: }
46:
47: public boolean nillable() {
48: return core.nillable();
49: }
50:
51: }
|