< prev index next >
src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/model/core/ElementPropertyInfo.java
Print this page
*** 54,66 ****
* <pre>
* // list can contain String or Integer.
* @XmlElements({
* @XmlElement(name="a",type=String.class),
* @XmlElement(name="b",type=Integer.class),
! * })
! * List<Object> abc;
! * </pre>
* <p>
* In this case this method returns a list of two {@link TypeRef}s.
*
*
* @return
--- 54,66 ----
* <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
*** 105,115 ****
*
* <p>
* If {@link #isCollection()}==false, this property is always false.
*
* <p>
! * When this flag is true, <tt>getTypes().size()==1</tt> always holds.
*/
boolean isValueList();
/**
* Returns true if this element is mandatory.
--- 105,115 ----
*
* <p>
* If {@link #isCollection()}==false, this property is always false.
*
* <p>
! * When this flag is true, {@code getTypes().size()==1} always holds.
*/
boolean isValueList();
/**
* Returns true if this element is mandatory.
< prev index next >