< prev index next >

src/java.xml.bind/share/classes/javax/xml/bind/annotation/XmlSchemaType.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 64,79 **** * @XmlElement * @XmlSchemaType(name="date") * public XMLGregorianCalendar date; * } * ! * &lt;!-- Example: Local XML Schema element --> ! * &lt;xs:complexType name="USPrice"/> ! * &lt;xs:sequence> ! * &lt;xs:element name="date" type="xs:date"/> ! * &lt;/sequence> ! * &lt;/xs:complexType> * </pre> * * <p> <b> Example 2: </b> Customize mapping of XMLGregorianCalendar at package * level </p> * <pre> --- 64,79 ---- * @XmlElement * @XmlSchemaType(name="date") * public XMLGregorianCalendar date; * } * ! * &lt;!-- Example: Local XML Schema element --&gt; ! * &lt;xs:complexType name="USPrice"/&gt; ! * &lt;xs:sequence&gt; ! * &lt;xs:element name="date" type="xs:date"/&gt; ! * &lt;/sequence&gt; ! * &lt;/xs:complexType&gt; * </pre> * * <p> <b> Example 2: </b> Customize mapping of XMLGregorianCalendar at package * level </p> * <pre>
< prev index next >