239N/A * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 157N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 157N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 157N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 157N/A * or visit www.oracle.com if you need additional information or have any 0N/A * {@link ReferencePropertyInfo} for the compiler. 0N/A * @author Kohsuke Kawaguchi 0N/A * True if this property can never be absent legally. 0N/A * List of referenced elements. 0N/A// if(wildcard==null && !isMixed()) 0N/A// return getElements(); 0N/A // ugly hack to get the signature right for substitution groups 0N/A // when a class is generated for elements,they don't form a nice type hierarchy, 0N/A // so the Java types of the substitution members need to be taken into account 0N/A // when computing the signature 0N/A // UGLY. element substitution is implemented in a way that 0N/A // the derived elements are not assignable to base elements. 0N/A // so when we compute the signature, we have to take derived types 0N/A // we aren't really adding an AnyType. 0N/A // this is a kind of hack to generate Object as a signature 0N/A * We'll never use a wrapper element in XJC. Always return null. 0N/A * Reference properties refer to elements, and none of the Java primitive type 0N/A * maps to an element. Thus a reference property is always unboxable. 0N/A * A reference property can never be ID/IDREF because they always point to 0N/A * other element classes. 0N/A // TODO: support other DOM handlers 0N/A // in XJC, we never recognize a nillable collection pattern, so this is always false. 0N/A // in XJC, we never recognize a nillable collection pattern, so this is always false. 0N/A // reference property cannot have a type.