if the type of JavaBean property is a collection type of
array, an indexed property, or a parameterized list, and
this annotation is used with XmlElements then,
@XmlElement.type() must be DEFAULT.class since the
collection item type is already known.

A JavaBean property, when annotated with @XmlElement annotation
is mapped to a local element in the XML Schema complex type to
which the containing class is mapped.

name

If the value is "##default", then element name is derived from the
JavaBean property name.

Default:

"##default"

nillable

public abstract boolean nillable

Customize the element declaration to be nillable.

If nillable() is true, then the JavaBean property is
mapped to a XML Schema nillable element declaration.

Default:

false

required

public abstract boolean required

Customize the element declaration to be required.

If required() is true, then Javabean property is mapped to
an XML schema element declaration with minOccurs="1".
maxOccurs is "1" for a single valued property and "unbounded"
for a multivalued property.

If required() is false, then the Javabean property is mapped
to XML Schema element declaration with minOccurs="0".
maxOccurs is "1" for a single valued property and "unbounded"
for a multivalued property.

Default:

false

namespace

public abstract java.lang.String namespace

XML target namespace of the XML Schema element.

If the value is "##default", then the namespace is determined
as follows: