Tue, 09 Apr 2013 14:51:13 +0100
8010393: Update JAX-WS RI to 2.2.9-b12941
Reviewed-by: alanb, erikj
Contributed-by: miroslav.kos@oracle.com, martin.grebac@oracle.com
1 /*
2 * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
26 package com.sun.tools.internal.xjc.reader.xmlschema;
28 import com.sun.tools.internal.xjc.model.CElement;
29 import com.sun.xml.internal.xsom.XSAnnotation;
30 import com.sun.xml.internal.xsom.XSAttGroupDecl;
31 import com.sun.xml.internal.xsom.XSAttributeDecl;
32 import com.sun.xml.internal.xsom.XSAttributeUse;
33 import com.sun.xml.internal.xsom.XSComplexType;
34 import com.sun.xml.internal.xsom.XSContentType;
35 import com.sun.xml.internal.xsom.XSElementDecl;
36 import com.sun.xml.internal.xsom.XSFacet;
37 import com.sun.xml.internal.xsom.XSIdentityConstraint;
38 import com.sun.xml.internal.xsom.XSModelGroup;
39 import com.sun.xml.internal.xsom.XSModelGroupDecl;
40 import com.sun.xml.internal.xsom.XSNotation;
41 import com.sun.xml.internal.xsom.XSParticle;
42 import com.sun.xml.internal.xsom.XSSchema;
43 import com.sun.xml.internal.xsom.XSSimpleType;
44 import com.sun.xml.internal.xsom.XSWildcard;
45 import com.sun.xml.internal.xsom.XSXPath;
47 /**
48 * {@link ClassBinder} that delegates the call to another {@link ClassBinder}.
49 *
50 * @author Kohsuke Kawaguchi (kk@kohsuke.org)
51 */
52 abstract class ClassBinderFilter implements ClassBinder {
53 private final ClassBinder core;
55 protected ClassBinderFilter(ClassBinder core) {
56 this.core = core;
57 }
59 public CElement annotation(XSAnnotation xsAnnotation) {
60 return core.annotation(xsAnnotation);
61 }
63 public CElement attGroupDecl(XSAttGroupDecl xsAttGroupDecl) {
64 return core.attGroupDecl(xsAttGroupDecl);
65 }
67 public CElement attributeDecl(XSAttributeDecl xsAttributeDecl) {
68 return core.attributeDecl(xsAttributeDecl);
69 }
71 public CElement attributeUse(XSAttributeUse xsAttributeUse) {
72 return core.attributeUse(xsAttributeUse);
73 }
75 public CElement complexType(XSComplexType xsComplexType) {
76 return core.complexType(xsComplexType);
77 }
79 public CElement schema(XSSchema xsSchema) {
80 return core.schema(xsSchema);
81 }
83 public CElement facet(XSFacet xsFacet) {
84 return core.facet(xsFacet);
85 }
87 public CElement notation(XSNotation xsNotation) {
88 return core.notation(xsNotation);
89 }
91 public CElement simpleType(XSSimpleType xsSimpleType) {
92 return core.simpleType(xsSimpleType);
93 }
95 public CElement particle(XSParticle xsParticle) {
96 return core.particle(xsParticle);
97 }
99 public CElement empty(XSContentType xsContentType) {
100 return core.empty(xsContentType);
101 }
103 public CElement wildcard(XSWildcard xsWildcard) {
104 return core.wildcard(xsWildcard);
105 }
107 public CElement modelGroupDecl(XSModelGroupDecl xsModelGroupDecl) {
108 return core.modelGroupDecl(xsModelGroupDecl);
109 }
111 public CElement modelGroup(XSModelGroup xsModelGroup) {
112 return core.modelGroup(xsModelGroup);
113 }
115 public CElement elementDecl(XSElementDecl xsElementDecl) {
116 return core.elementDecl(xsElementDecl);
117 }
119 public CElement identityConstraint(XSIdentityConstraint xsIdentityConstraint) {
120 return core.identityConstraint(xsIdentityConstraint);
121 }
123 public CElement xpath(XSXPath xsxPath) {
124 return core.xpath(xsxPath);
125 }
126 }