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 */
25
26 package com.sun.xml.internal.bind.v2.model.impl;
27
28 import javax.xml.namespace.QName;
29 import javax.xml.bind.annotation.XmlIDREF;
30
31 import com.sun.xml.internal.bind.v2.runtime.Location;
32 import com.sun.xml.internal.bind.v2.model.core.NonElement;
33 import com.sun.xml.internal.bind.v2.model.core.TypeInfo;
34 import com.sun.xml.internal.bind.v2.model.nav.Navigator;
35 import com.sun.xml.internal.bind.v2.model.annotation.Locatable;
36
37 /**
38 * {@link TypeInfo} implementation for <tt>xs:anyType</tt>.
39 *
40 * @author Kohsuke Kawaguchi
41 */
42 class AnyTypeImpl<T,C> implements NonElement<T,C> {
43
44 private final T type;
45 private final Navigator<T,C,?,?> nav;
46
47 public AnyTypeImpl(Navigator<T,C,?,?> nav) {
48 this.type = nav.ref(Object.class);
49 this.nav = nav;
50 }
51
52 public QName getTypeName() {
53 return ANYTYPE_NAME;
54 }
55
56 public T getType() {
57 return type;
58 }
|
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 */
25
26 package com.sun.xml.internal.bind.v2.model.impl;
27
28 import javax.xml.namespace.QName;
29 import javax.xml.bind.annotation.XmlIDREF;
30
31 import com.sun.xml.internal.bind.v2.runtime.Location;
32 import com.sun.xml.internal.bind.v2.model.core.NonElement;
33 import com.sun.xml.internal.bind.v2.model.core.TypeInfo;
34 import com.sun.xml.internal.bind.v2.model.nav.Navigator;
35 import com.sun.xml.internal.bind.v2.model.annotation.Locatable;
36
37 /**
38 * {@link TypeInfo} implementation for {@code xs:anyType}.
39 *
40 * @author Kohsuke Kawaguchi
41 */
42 class AnyTypeImpl<T,C> implements NonElement<T,C> {
43
44 private final T type;
45 private final Navigator<T,C,?,?> nav;
46
47 public AnyTypeImpl(Navigator<T,C,?,?> nav) {
48 this.type = nav.ref(Object.class);
49 this.nav = nav;
50 }
51
52 public QName getTypeName() {
53 return ANYTYPE_NAME;
54 }
55
56 public T getType() {
57 return type;
58 }
|