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