01: package com.sun.xml.bind.v2.model.annotation;
02:
03: import java.lang.annotation.Annotation;
04: import javax.xml.bind.annotation.XmlElementDecl;
05:
06: final class XmlElementDeclQuick extends Quick implements XmlElementDecl {
07:
08: private final XmlElementDecl core;
09:
10: public XmlElementDeclQuick(Locatable upstream, XmlElementDecl 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 XmlElementDeclQuick(upstream,
21: ((XmlElementDecl) core));
22: }
23:
24: public Class<XmlElementDecl> annotationType() {
25: return XmlElementDecl.class;
26: }
27:
28: public String name() {
29: return core.name();
30: }
31:
32: public String namespace() {
33: return core.namespace();
34: }
35:
36: public String defaultValue() {
37: return core.defaultValue();
38: }
39:
40: public Class scope() {
41: return core.scope();
42: }
43:
44: public String substitutionHeadNamespace() {
45: return core.substitutionHeadNamespace();
46: }
47:
48: public String substitutionHeadName() {
49: return core.substitutionHeadName();
50: }
51:
52: }
|