1 /*
2 * Copyright (c) 1997, 2012, 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
46 import com.sun.codemodel.internal.JMod;
47 import com.sun.codemodel.internal.JType;
48 import com.sun.tools.internal.xjc.generator.annotation.spec.XmlAnyElementWriter;
49 import com.sun.tools.internal.xjc.generator.annotation.spec.XmlAttributeWriter;
50 import com.sun.tools.internal.xjc.generator.annotation.spec.XmlElementRefWriter;
51 import com.sun.tools.internal.xjc.generator.annotation.spec.XmlElementRefsWriter;
52 import com.sun.tools.internal.xjc.generator.annotation.spec.XmlElementWriter;
53 import com.sun.tools.internal.xjc.generator.annotation.spec.XmlElementsWriter;
54 import com.sun.tools.internal.xjc.generator.annotation.spec.XmlSchemaTypeWriter;
55 import com.sun.tools.internal.xjc.generator.bean.ClassOutlineImpl;
56 import com.sun.tools.internal.xjc.model.CAttributePropertyInfo;
57 import com.sun.tools.internal.xjc.model.CElement;
58 import com.sun.tools.internal.xjc.model.CElementInfo;
59 import com.sun.tools.internal.xjc.model.CElementPropertyInfo;
60 import com.sun.tools.internal.xjc.model.CPropertyInfo;
61 import com.sun.tools.internal.xjc.model.CReferencePropertyInfo;
62 import com.sun.tools.internal.xjc.model.CTypeInfo;
63 import com.sun.tools.internal.xjc.model.CTypeRef;
64 import com.sun.tools.internal.xjc.model.CValuePropertyInfo;
65 import com.sun.tools.internal.xjc.model.nav.NClass;
66 import com.sun.tools.internal.xjc.outline.Aspect;
67 import static com.sun.tools.internal.xjc.outline.Aspect.IMPLEMENTATION;
68 import com.sun.tools.internal.xjc.outline.ClassOutline;
69 import com.sun.tools.internal.xjc.outline.FieldAccessor;
70 import com.sun.tools.internal.xjc.outline.FieldOutline;
71 import com.sun.tools.internal.xjc.reader.TypeUtil;
72 import com.sun.tools.internal.xjc.Options;
73 import com.sun.tools.internal.xjc.api.SpecVersion;
74 import com.sun.xml.internal.bind.api.impl.NameConverter;
75 import com.sun.xml.internal.bind.v2.TODO;
76
77 /**
78 * Useful base class for implementing {@link FieldOutline}.
79 *
80 * <p>
81 * This class just provides a few utility methods and keep some
82 * important variables so that they can be readily accessed any time.
83 *
84 * @author
85 * Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
86 */
87 abstract class AbstractField implements FieldOutline {
|
1 /*
2 * Copyright (c) 1997, 2014, 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
46 import com.sun.codemodel.internal.JMod;
47 import com.sun.codemodel.internal.JType;
48 import com.sun.tools.internal.xjc.generator.annotation.spec.XmlAnyElementWriter;
49 import com.sun.tools.internal.xjc.generator.annotation.spec.XmlAttributeWriter;
50 import com.sun.tools.internal.xjc.generator.annotation.spec.XmlElementRefWriter;
51 import com.sun.tools.internal.xjc.generator.annotation.spec.XmlElementRefsWriter;
52 import com.sun.tools.internal.xjc.generator.annotation.spec.XmlElementWriter;
53 import com.sun.tools.internal.xjc.generator.annotation.spec.XmlElementsWriter;
54 import com.sun.tools.internal.xjc.generator.annotation.spec.XmlSchemaTypeWriter;
55 import com.sun.tools.internal.xjc.generator.bean.ClassOutlineImpl;
56 import com.sun.tools.internal.xjc.model.CAttributePropertyInfo;
57 import com.sun.tools.internal.xjc.model.CElement;
58 import com.sun.tools.internal.xjc.model.CElementInfo;
59 import com.sun.tools.internal.xjc.model.CElementPropertyInfo;
60 import com.sun.tools.internal.xjc.model.CPropertyInfo;
61 import com.sun.tools.internal.xjc.model.CReferencePropertyInfo;
62 import com.sun.tools.internal.xjc.model.CTypeInfo;
63 import com.sun.tools.internal.xjc.model.CTypeRef;
64 import com.sun.tools.internal.xjc.model.CValuePropertyInfo;
65 import com.sun.tools.internal.xjc.model.nav.NClass;
66 import com.sun.tools.internal.xjc.model.Aspect;
67 import static com.sun.tools.internal.xjc.model.Aspect.IMPLEMENTATION;
68 import com.sun.tools.internal.xjc.outline.ClassOutline;
69 import com.sun.tools.internal.xjc.outline.FieldAccessor;
70 import com.sun.tools.internal.xjc.outline.FieldOutline;
71 import com.sun.tools.internal.xjc.reader.TypeUtil;
72 import com.sun.tools.internal.xjc.Options;
73 import com.sun.tools.internal.xjc.api.SpecVersion;
74 import com.sun.xml.internal.bind.api.impl.NameConverter;
75 import com.sun.xml.internal.bind.v2.TODO;
76
77 /**
78 * Useful base class for implementing {@link FieldOutline}.
79 *
80 * <p>
81 * This class just provides a few utility methods and keep some
82 * important variables so that they can be readily accessed any time.
83 *
84 * @author
85 * Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
86 */
87 abstract class AbstractField implements FieldOutline {
|