jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/model/core/ElementPropertyInfo.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
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 |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
49 * |
49 * |
50 * <p> |
50 * <p> |
51 * However, in a general case an element property can be heterogeneous, |
51 * However, in a general case an element property can be heterogeneous, |
52 * meaning you can put different types in it, each with a different tag name |
52 * meaning you can put different types in it, each with a different tag name |
53 * (and a few other settings.) |
53 * (and a few other settings.) |
54 * <pre> |
54 * <pre><code> |
55 * // list can contain String or Integer. |
55 * // list can contain String or Integer. |
56 * @XmlElements({ |
56 * {@literal @}XmlElements({ |
57 * @XmlElement(name="a",type=String.class), |
57 * {@literal @}XmlElement(name="a",type=String.class), |
58 * @XmlElement(name="b",type=Integer.class), |
58 * {@literal @}XmlElement(name="b",type=Integer.class), |
59 * }) {@code |
59 * }) |
60 * List<Object> abc; |
60 * {@literal List<Object>} abc; |
61 * }</pre> |
61 * </code></pre> |
62 * <p> |
62 * <p> |
63 * In this case this method returns a list of two {@link TypeRef}s. |
63 * In this case this method returns a list of two {@link TypeRef}s. |
64 * |
64 * |
65 * |
65 * |
66 * @return |
66 * @return |