01: package com.sun.xml.bind.v2.model.annotation;
02:
03: import java.lang.annotation.Annotation;
04: import javax.xml.bind.annotation.XmlNs;
05: import javax.xml.bind.annotation.XmlNsForm;
06: import javax.xml.bind.annotation.XmlSchema;
07:
08: final class XmlSchemaQuick extends Quick implements XmlSchema {
09:
10: private final XmlSchema core;
11:
12: public XmlSchemaQuick(Locatable upstream, XmlSchema core) {
13: super (upstream);
14: this .core = core;
15: }
16:
17: protected Annotation getAnnotation() {
18: return core;
19: }
20:
21: protected Quick newInstance(Locatable upstream, Annotation core) {
22: return new XmlSchemaQuick(upstream, ((XmlSchema) core));
23: }
24:
25: public Class<XmlSchema> annotationType() {
26: return XmlSchema.class;
27: }
28:
29: public String location() {
30: return core.location();
31: }
32:
33: public String namespace() {
34: return core.namespace();
35: }
36:
37: public XmlNs[] xmlns() {
38: return core.xmlns();
39: }
40:
41: public XmlNsForm elementFormDefault() {
42: return core.elementFormDefault();
43: }
44:
45: public XmlNsForm attributeFormDefault() {
46: return core.attributeFormDefault();
47: }
48:
49: }
|