1
10
11 package com.sun.xml.bind.v2.model.annotation;
12
13 import java.lang.annotation.Annotation;
14 import javax.xml.bind.annotation.XmlElementDecl;
15
16
17
21 final class XmlElementDeclQuick
22 extends Quick
23 implements XmlElementDecl
24 {
25
26 private final XmlElementDecl core;
27
28 public XmlElementDeclQuick(Locatable upstream, XmlElementDecl core) {
29 super(upstream);
30 this.core = core;
31 }
32
33 protected Annotation getAnnotation() {
34 return core;
35 }
36
37 protected Quick newInstance(Locatable upstream, Annotation core) {
38 return new XmlElementDeclQuick(upstream, ((XmlElementDecl) core));
39 }
40
41 public Class<XmlElementDecl> annotationType() {
42 return XmlElementDecl.class;
43 }
44
45 public String name() {
46 return core.name();
47 }
48
49 public Class scope() {
50 return core.scope();
51 }
52
53 public String namespace() {
54 return core.namespace();
55 }
56
57 public String defaultValue() {
58 return core.defaultValue();
59 }
60
61 public String substitutionHeadNamespace() {
62 return core.substitutionHeadNamespace();
63 }
64
65 public String substitutionHeadName() {
66 return core.substitutionHeadName();
67 }
68
69 }
70