< prev index next >

src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/model/core/ElementPropertyInfo.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 2012, 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) 1997, 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
*** 49,66 **** * * <p> * However, in a general case an element property can be heterogeneous, * meaning you can put different types in it, each with a different tag name * (and a few other settings.) ! * <pre> * // list can contain String or Integer. ! * @XmlElements({ ! * @XmlElement(name="a",type=String.class), ! * @XmlElement(name="b",type=Integer.class), ! * }) {@code ! * List<Object> abc; ! * }</pre> * <p> * In this case this method returns a list of two {@link TypeRef}s. * * * @return --- 49,66 ---- * * <p> * However, in a general case an element property can be heterogeneous, * meaning you can put different types in it, each with a different tag name * (and a few other settings.) ! * <pre><code> * // list can contain String or Integer. ! * {@literal @}XmlElements({ ! * {@literal @}XmlElement(name="a",type=String.class), ! * {@literal @}XmlElement(name="b",type=Integer.class), ! * }) ! * {@literal List<Object>} abc; ! * </code></pre> * <p> * In this case this method returns a list of two {@link TypeRef}s. * * * @return
< prev index next >