01: package com.sun.xml.bind.v2.model.annotation;
02:
03: import java.lang.annotation.Annotation;
04: import javax.xml.bind.annotation.XmlElementRef;
05: import javax.xml.bind.annotation.XmlElementRefs;
06:
07: final class XmlElementRefsQuick extends Quick implements XmlElementRefs {
08:
09: private final XmlElementRefs core;
10:
11: public XmlElementRefsQuick(Locatable upstream, XmlElementRefs core) {
12: super (upstream);
13: this .core = core;
14: }
15:
16: protected Annotation getAnnotation() {
17: return core;
18: }
19:
20: protected Quick newInstance(Locatable upstream, Annotation core) {
21: return new XmlElementRefsQuick(upstream,
22: ((XmlElementRefs) core));
23: }
24:
25: public Class<XmlElementRefs> annotationType() {
26: return XmlElementRefs.class;
27: }
28:
29: public XmlElementRef[] value() {
30: return core.value();
31: }
32:
33: }
|