325N/A * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. 325N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 325N/A * This code is free software; you can redistribute it and/or modify it 325N/A * under the terms of the GNU General Public License version 2 only, as 325N/A * published by the Free Software Foundation. Oracle designates this 325N/A * particular file as subject to the "Classpath" exception as provided 325N/A * by Oracle in the LICENSE file that accompanied this code. 325N/A * This code is distributed in the hope that it will be useful, but WITHOUT 325N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 325N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 325N/A * version 2 for more details (a copy is included in the LICENSE file that 325N/A * accompanied this code). 325N/A * You should have received a copy of the GNU General Public License version 325N/A * 2 along with this work; if not, write to the Free Software Foundation, 325N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 325N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 325N/A * or visit www.oracle.com if you need additional information or have any 325N/A * Encapsulates the default handling for leaf classes (which are bound 325N/A * to text in XML.) In particular this class knows how to convert 325N/A * the lexical value into the Java class according to this default rule. 325N/A * This represents the spec-defined default handling for the Java 325N/A * type ({@link #getType()}. 325N/A * For those Java classes (such as {@link String} or {@link Boolean}) 325N/A * where the spec designates a specific default handling, there are 325N/A * constants in this class (such as {@link #STRING} or {@link #BOOLEAN}.) 325N/A * The generated type-safe enum classes are also a leaf class, 325N/A * and as such there are {@link CEnumLeafInfo} that represents it 325N/A * as {@link CBuiltinLeafInfo}. 325N/A * This class represents the <b>default handling</b>, and therefore 325N/A * we can only have one instance per one {@link NType}. Handling of 325N/A * other XML Schema types (such as xs:token) are represented as 325N/A * a general {@link TypeUse} objects. 325N/A * @author Kohsuke Kawaguchi 325N/A // no derived class other than the spec-defined ones. definitely not for enum. 325N/A * Gets the code model representation of this type. 325N/A * Since {@link CBuiltinLeafInfo} represents a default binding, 325N/A * it is never a collection. 325N/A * Guaranteed to return this. 325N/A * {@link CBuiltinLeafInfo} never has a default associated MIME type. 325N/A * Creates a {@link TypeUse} that represents a collection of this {@link CBuiltinLeafInfo}. 325N/A * Creates a {@link TypeUse} that represents an adapted use of this {@link CBuiltinLeafInfo}. 325N/A * Creates a {@link TypeUse} that represents a MIME-type assocaited version of this {@link CBuiltinLeafInfo}. 325N/A * {@link CBuiltinLeafInfo} for Java classes that have 325N/A * the spec defined built-in binding semantics. 325N/A * No vendor customization in the built-in classes. 325N/A // XMLGregorianCalendar is mutable, so we can't support default values anyhow. 325N/A // For CALENAR we are uses a most unlikely name so as to avoid potential name 325N/A // conflicts in the furture. 325N/A // TODO: not sure if they should belong here, 325N/A // but I couldn't find other places that fit. 325N/A * boolean restricted to 0 or 1. 325N/A * IDREF is has a whitespace normalization semantics of token, but 325N/A * we don't want {@link XmlJavaTypeAdapter} and {@link XmlIDREF} to interact. 325N/A * For all list of strings, such as NMTOKENS, ENTITIES.