01: package com.sun.xml.bind.v2.model.annotation;
02:
03: import java.lang.annotation.Annotation;
04: import javax.xml.bind.annotation.XmlEnum;
05:
06: final class XmlEnumQuick extends Quick implements XmlEnum {
07:
08: private final XmlEnum core;
09:
10: public XmlEnumQuick(Locatable upstream, XmlEnum 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 XmlEnumQuick(upstream, ((XmlEnum) core));
21: }
22:
23: public Class<XmlEnum> annotationType() {
24: return XmlEnum.class;
25: }
26:
27: public Class value() {
28: return core.value();
29: }
30:
31: }
|